Azure Speech Recognition: How to set Region?

129 views
Skip to first unread message

Peter Steinbach

unread,
Jul 31, 2023, 11:13:57 AM7/31/23
to UniMRCP

When trying to test Azure Speech Recognition, I received the following error
2023-07-29 16:08:58:839484 [INFO]   Received HTTP response [401 Access Denied] in 434 msec for <cognitive.subscription.key> [https://api.cognitive.microsoft.com/sts/v1.0/issueToken]

I compared it with my other Azure Cognitive Speech applications and there the Token was issued to the following URL (I am in Germany here)
https://germanywestcentral.api.cognitive.microsoft.com/sts/v1.0/issuetoken
- different Server
- issuetoken instead of issueToken

The URL used by UniMRCP is hardcoded in plugin/umsazuresr.so
I tried to point api.cognitive.microsoft.com via DNS to the same IP as api.cognitive.microsoft.com but then I receive
2023-07-29 16:29:34:604265 [INFO]   Received HTTP response [404 Not Found] in 139 msec for <cognitive.subscription.key> [https://api.cognitive.microsoft.com/sts/v1.0/issueToken]

Anybody has an Idea how to configure the URLs or how to set the region?
I went through all the seetings in the config file and documentation but could not find any hints there.

Arsen Chaloyan

unread,
Aug 5, 2023, 7:55:34 PM8/5/23
to uni...@googlegroups.com
Both auth and service endpoints can explicitly be specified in /opt/unimrcp/data/cognitive.subscription.key



--
You received this message because you are subscribed to the Google Groups "UniMRCP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unimrcp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/unimrcp/7e265b1c-2f07-48c7-855e-47442e4d2e91n%40googlegroups.com.


--
Arsen Chaloyan
Author of UniMRCP
http://www.unimrcp.org
Reply all
Reply to author
Forward
0 new messages