How do I authenticate Azure Speech Services with expanded credential settings?

Last reviewed: 3/25/2025

HOW Article ID: H032507

The information in this article applies to:

  • LexiconKit 11
  • SpeechKit 14
  • VoiceMarkupKit 11

Summary

Authenticating Azure Speech Services have expanded to support AuthorizationToken, Endpoint, Host, in addition to Subscription credentials for deploying several client app configurations.

More Information

New Azure Speech Services Recognizer and Synthesizer constructors support several client app deployment configurations:

  • FromAuthorizationToken creates an instance of the speech config with specified authorization token and region. Caller needs to ensure that the authorization token is valid and not expired.
  • FromEndPoint creates an instance of the speech config with specified endpoint
  • FromHost creates an instance of the speech config with specified host. This method is intended only for users who use a non-default service host. Standard resource path will be assumed. For services with a non-standard resource path or no path at all, use FromEndpoint instead
  • FromSubscription Creates an instance of speech configuration with specified subscription key and region. (Default)

Support for the new constructors have been added across language and platforms. Review application integration steps for example syntax of the new constructors: