Forum Discussion

dhruvsinha06's avatar
dhruvsinha06
Copper Contributor
Jul 31, 2024

Azure Openai Whipser REST endpoints

I wanted to use Whisper deployed through Azure OpenAI but I am having trouble finding the right resources for it.
I am trying to integrate a translator using Whisper in a flutter app that will take multilingual input and give out the output in english.
Right now the transcription is working using this endpoint:

https://<dep>.openai.azure.com/openai/deployments/<name>/audio/transcriptions?api-version=2024-02-01

and structuring the request like:

var uri = Uri.parse(whisperEndpoint);
      var request = http.MultipartRequest('POST', uri)
        ..headers['api-key'] = whisperApiKey
        ..files.add(await http.MultipartFile.fromPath('file', filePath));


What is the endpoint for translation and other services?



2 Replies

  • You can use translations directly.

    According to the official Azure OpenAI documentation, Whisper’s translation endpoint is exactly the same as the transcription endpoint except you just replace /audio/transcriptions with /audio/translations

  • Please use audio/tranclations instead:

     

    https://.openai.azure.com/openai/deployments//audio/translations?api-version=2024-02-01

Resources