Azure 认知服务 - 批量听录 API 响应错误消息"The recording URI is invalid."



步骤遵循:

  1. 我在美国西部创建了一个语音服务实例。
  2. 我有正确的标题(Content-Type and Ocp-Apim-Subscription-Key)
  3. 我向https://westus.cris.ai/api/speechtotext/v2.0/transcriptions/提出发布请求
{
  "recordingsUrl": "https://transcribehm97c1.blob.core.windows.net/audio-files/2019-04-04_Blockchain%20explained%20with%20TruStory%27s%20Preethi%20Kasireddy.mp3?st=2019-05-27T12%3A19%3A27Z&se=2019-12-31T12%3A19%3A00Z&sp=rl&sv=2018-03-28&sr=b&sig=HFBvGl1pmCM95MNU9U3yniMNXrUMT6RmPb36F32cxrY%3D",
  "models": [],
  "locale": "en-US",
  "name": "I dont know why this is not working",
  "description": "Someone please send help",
  "properties": {
    "ProfanityFilterMode": "Masked",
    "PunctuationMode": "DictatedAndAutomatic"
  }
}
  1. 我得到了以下标题的" 202接受"响应。这证实了请求主体有效。
location: https://westus.cris.ai/api/speechtotext/v2.0/transcriptions/69b7abf4-6383-4490-88a9-9fd42a77e470
  1. 当我提出上述位置请求时,我会看到此
{
  "recordingsUrl": "https://transcribehm97c1.blob.core.windows.net/audio-files/2019-04-04_Blockchain explained with TruStory's Preethi Kasireddy.mp3?st=2019-05-27T12:19:27Z&se=2019-12-31T12:19:00Z&sp=rl&sv=2018-03-28&sr=b&sig=HFBvGl1pmCM95MNU9U3yniMNXrUMT6RmPb36F32cxrY%3D",
  "resultsUrls": {},
  "models": [“I have removed this for brevity”],
  "statusMessage": "The recordings URI is invalid.",
  "id": "69b7abf4-6383-4490-88a9-9fd42a77e470",
  "createdDateTime": "2019-05-27T12:43:39Z",
  "lastActionDateTime": "2019-05-27T12:43:50Z",
  "status": "Failed",
  "locale": "en-US",
  "name": "I dont know why this is not working",
  "description": "Someone please send help",
  "properties": {
    "ProfanityFilterMode": "Masked",
    "PunctuationMode": "DictatedAndAutomatic"
  }
}
  1. 抄录在某些URL中失败,而在同一存储中为其他斑点传递斑点,尽管它们都是有效的URL。请求中的SAS URI有效直到结束年。
  2. 我已经通过代码和Postman多次重新调整了相同的请求,并且失败了。

链接到Swagger Page :https://westus.cris.ai/swagger/ui/index

问题可能是由于音频文件大小。请参阅REST API的核心功能,因为其余支持仅支持简短的音频。

最新更新