Azure认知服务-TTS

时间:2019-07-07 09:26:41

标签: azure api postman azure-cognitive-services

我有一个用于Azure认知服务的api键,但找不到任何文档,说明如何通过邮递员调用此服务。有人有经验吗?

1 个答案:

答案 0 :(得分:3)

似乎您正在尝试使用密钥调用Text To Speech服务。有两个步骤。

1。需要访问令牌

您必须以这种格式获取令牌:

Request URL: https://YourResourceEndpoint/sts/v1.0/issuetoken
Method: POST
Hearder: Content-Type:application/x-www-form-urlencoded
Ocp-Apim-Subscription-Key:YourKeys

有关清晰度,请参见屏幕截图:

enter image description here

您可以看看official Docs

2。获取您之前收到的带有令牌的语音列表

您可以请求Text To Speech语音列表,如下所示:

Request URL: https://centralus.tts.speech.microsoft.com/cognitiveservices/voices/list
Method : GET
Authorization: Bearer Token Paste Your Token Here

查看屏幕截图以了解清晰度

enter image description here

您可以找到更多详细信息here

注意:对于您的测试帐户,您可以创建here

enter image description here

更新

我会发送一个请求,以某种方式我收到了uri或我能听到的东西?这可能吗?

是的,有可能。但是在这种情况下,您必须使用sdk。这是complete sample