Closed cecheta closed 3 weeks ago
To add to this, I've done some more testing, particularly with enabling and disabling the disableLocalAuth
property on the speech service resource, and I'm getting mixed results.
For example, it works initially, I then set disableLocalAuth: true
, it stops working, I set disableLocalAuth: false
, and it's still not working
Also, it seems like if you just use the Entra token as authorisation, instead of f"aad#{resource_id}#{token}"
, then it works?
Closing, as getting mixed and inconsistent results
I have been trying to configure Microsoft Entra authentication for the Speech Service, as explained in these docs, yet it only seems to work from the browser.
My setup is Speech Service with public access disabled, and a private endpoint from a VNet. I have then connected to this VNet. The custom domain for the speech service has the same name as the resource itself.
I have run this sample, which uses the custom domain and Microsoft Entra for authentication, and this works well.
I've then tried to copy the same form of authentication in a Node example, but using speech-to-text on a file, but it doesn't work. I get no output.
If I change
to
Then it works, and I get the transcription.
I also tried in Python:
Which gives the following output:
Why does it work from the browser but not when using Node/Python? Is it documented where it does and doesn't work?