Azure Openai Whisper REST endpoints

题意:在Azure平台上或通过Azure可访问的,与OpenAI的Whisper模型相关的RESTful API端点

问题背景:

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:

我想使用通过Azure OpenAI部署的Whisper,但我很难找到适合的资源。我正在尝试在一个Flutter应用中集成一个使用Whisper的翻译器,该应用将接受多语言输入并输出英文。目前,我正在使用这个端点进行转录工作:

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, tts and other services?

对于翻译(Translation)、文本到语音(Text-to-Speech, TTS)和其他服务,它们的端点是什么?

I have tried sending the text transcribed by whisper back to be translated but I'd prefer direct translation by whisper

我已经尝试过将Whisper转录的文本发送回去进行翻译,但我更希望Whisper能直接进行翻译

问题解决:

You can use below endpoint for translation.

你可以使用下面的端点进行翻译。

https://reproaistudio.openai.azure.com/openai/deployments/<deplymentname>/audio/translations?api-version=2024-06-01

And it will convert it into English text.        并且它会将其转换为英文文本。

Here, is the sample output with Bengali as the input file language.

这里是以孟加拉语为输入文件语言的示例输出。

If you want to convert this text to speech then use tts-1 or tts-1-hd models in azure openai.

Make sure you have your open ai resource in supported region of above models

"如果你想要将这段文本转换为语音,那么在Azure OpenAI中使用tts-1tts-1-hd模型。

请确保你的OpenAI资源位于上述模型所支持的区域内。"

  • 16
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

营赢盈英

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值