SpeechToTextBeta.viaApiKey constructor
SpeechToTextBeta.viaApiKey(})
Creates a SpeechToText interface using a API keys.
Implementation
factory SpeechToTextBeta.viaApiKey(
String apiKey, {
String? cloudSpeechEndpoint,
Map<String, String>? metadata,
}) =>
SpeechToTextBeta._(
CallOptions(metadata: {
'X-goog-api-key': '$apiKey',
...?metadata,
}),
cloudSpeechEndpoint: cloudSpeechEndpoint);