SpeechServices availability, authorizationToken validation

Peter Krajcik 41 Reputation points
2021-02-27T17:54:26.823+00:00

Hi, I implemented MS speech services in my macOS app (Objective C). Everything works nice. However, I would like to check for speech service availability and check if authorizationToken is valid to inform user, that everything is okay. I would like to recieve notification from the service when it becomes available/unavailable and method to check if service is "online": [SPXSpeechConfiguration isOnline] Similar for authorizationToken / serviceRegion, something like: [SPXSpeechConfiguration isSubscriptionValidFor: authorizationToken region: serviceRegion]; Thank you. Peter

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,471 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,512 questions
{count} votes

Accepted answer
  1. romungi-MSFT 43,366 Reputation points Microsoft Employee
    2021-03-01T09:40:15.527+00:00

    @Peter Krajcik The authorization token or Bearer token is only valid for 10 minutes so if you would like to check the status of validity of the token you can simply request a new token after 10 minutes or use a retry mechanism to request a new token if the call to the speech service fails with an authorization error.

    To check the status or health of your resource you can use the resource manager to implement a notification or alert mechanism with different rules and get notified for the same.

    72946-image.png

    0 comments No comments

0 additional answers

Sort by: Most helpful