SpeechToText.viaToken constructor
Creates a SpeechToText interface using a token. You are responsible for updating the token when it expires.
Implementation
factory SpeechToText.viaToken(String typeToken, String token,
{String? cloudSpeechEndpoint}) =>
SpeechToText._(
CallOptions(metadata: {'authorization': '$typeToken $token'}),
cloudSpeechEndpoint: cloudSpeechEndpoint);