“使用Postman API将视频转换为文本时,显示文本为空。”

huangapple go评论67阅读模式
英文:

The Display Text is null while converting video to text using Postman API

问题

我正在使用 Postman API 使用认知服务,但显示文本未显示。
“使用Postman API将视频转换为文本时,显示文本为空。”

参数-
语言: en-US

头部:
Ocp-Apim-Subscription-Key: 密钥
Content-Type: audio/wav

正文-
二进制: 选择的文件

授权-
Bearer Token: 从认知服务生成的令牌

我已将 Content-Type 更改为 audio/mp4、audio/mp3、audio/vnd.wave,并更改了视频长度,并转换为音频。

英文:

I am using the cognitive services using Postman API but the display text is not appearing.
“使用Postman API将视频转换为文本时,显示文本为空。”

params-
language: en-US

headers:
Ocp-Apim-Subscription-Key: key
Content-Type: audio/wav

body-
binary: selected file

Authorization-
bearer Token: Token generated from cognitive service

I have changed the content-Type as audio/mp4, audio/mp3, audio/vnd.wave and changed the video length and as well converted to audio.

答案1

得分: 1

我在我的环境中尝试并得到了以下结果:

起初,我尝试使用mp3文件格式时得到了相同的响应。

根据这个MS-DOCS ,音频格式可以是WAV或OGG。

当我在Postman中尝试使用WAV文件格式时,成功执行了文本转换。

对于Mp3和其他压缩的输入音频,您需要使用Speech SDK。

参考资料:
如何使用压缩的输入音频 - 语音服务 - Azure Cognitive Services | 微软学习

英文:

I tried in my environment and got the below results:

Initially, I got the same response when I tried with the mp3 file format.

“使用Postman API将视频转换为文本时,显示文本为空。”

According to this MS-DOCS the audio format either may be WAV or OGG .

When I tried with WAV file format in Postman it executed with text successfully.

“使用Postman API将视频转换为文本时,显示文本为空。”

For Mp3 and other compressed input audio, you need to use Speech SDK.

Reference:
How to use compressed input audio - Speech service - Azure Cognitive Services | Microsoft Learn

huangapple
  • 本文由 发表于 2023年4月19日 18:58:31
  • 转载请务必保留本文链接:https://go.coder-hub.com/76053692.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定