Reply to post

Hot!Errors occur when adding a Microsoft Azure API key.

Author
zzhirong
User
  • Total Posts : 0
  • Reward points: 0
  • Joined: 2021/10/17 10:50:02
  • Status: offline
2023/03/27 00:48:04 (permalink)

Errors occur when adding a Microsoft Azure API key.

I haven't used this app in a while because my phone was damaged. I recently bought a new phone and tried to add the Azure API key again, but it gave me an error message saying 'Errors get list of voices.' I remembered that on my previous phone, I had set up the URL with region information, but this time I copied a endpoint URL(https://forvoice.cognitiveservices.azure.com/sts/v1.0/issuetoken) without region information. Did I miss something?
 
Error Screenshoot.

 
My azure resource information page:

I really like this app, and used it to listen a lot of books, so I hope everything will get normal soon, look forward to hear from you. 
 
update: I have just tried two other endpoints found in doucment:
1. https://eastasia.tts.speech.microsoft.com/cognitiveservices/v1 can be verified and saved, but also can't work, i search the output of `adb logcat` and found `Azure getAccessToken() response code = 415` error message.
2. https://eastasia.tts.speech.microsoft.com also can be verified and saved, but result in a `Azure getAccessToken() response code = 404` in the logcat output.
post edited by zzhirong - 2023/03/27 01:42:46

2 Replies Related Threads

    Admin
    Administrator
    • Total Posts : 275
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: Errors occur when adding a Microsoft Azure API key. 2023/03/27 07:30:43 (permalink)
    I really don't know what is wrong there. MS Azure is Microsoft's product, not mine. The endpoint that I use is https://eastus.api.cognitive.microsoft.com/sts/v1.0/issuetoken, however the problem may be also with the API key. For example, some users create a key for another service (maybe voice to text conversion) and try to use it here. You could try to create new key at Azure portal, following the instructions at https://hyperionics.com/atVoice/Azure.html and making sure that these instructions still match the on-screen prompts.
    zzhirong
    User
    • Total Posts : 0
    • Reward points: 0
    • Joined: 2021/10/17 10:50:02
    • Status: offline
    Re: Errors occur when adding a Microsoft Azure API key. 2023/03/27 08:37:36 (permalink)
    I was able to make it work by using the URL you provided with a changed region (https://eastasia.api.cogn.../sts/v1.0/issuetoken). Thank you for that. The endpoint URL shown on my Azure portal is https://forvoice.cognitiv...m/sts/v1.0/issuetoken, but it doesn't work on @Voice. I tracked the HTTPS request from my damaged phone and found that it uses https://eastasia.tts.spee.../cognitiveservices/v1, which also didn't work.
     
    Thank you for sharing your endpoint configuration as it saved me a lot of time in troubleshooting. Finally, I was able to get it working.
    Jump to:
    © 2024 APG vNext Commercial Version 5.1