SpeechToText.viaToken constructor
SpeechToText.viaToken(})
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,
Map<String, String>? metadata,
}) =>
SpeechToText._(
CallOptions(metadata: {
'authorization': '$typeToken $token',
...?metadata,
}),
cloudSpeechEndpoint: cloudSpeechEndpoint);