SpeechSynthesizer.setAuthorizationToken(String token) Method

Definition

Sets the authorization token used to communicate with the service. Note: The caller needs to ensure that the authorization token is valid. Before the authorization token expires, the caller needs to refresh it by calling this setter with a new valid token. Otherwise, the synthesizer will encounter errors while speech synthesis.

public void setAuthorizationToken(String token)

Parameters

token
String

Authorization token.

Applies to