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