SpeechToText.viaServiceAccount constructor
SpeechToText.viaServiceAccount(
- ServiceAccount account, {
- String? cloudSpeechEndpoint,
- Map<
String, String> ? metadata,
Creates a SpeechToText interface using a service account.
Implementation
factory SpeechToText.viaServiceAccount(
ServiceAccount account, {
String? cloudSpeechEndpoint,
Map<String, String>? metadata,
}) =>
SpeechToText._(
account.callOptions.mergedWith(CallOptions(metadata: metadata ?? {})),
cloudSpeechEndpoint: cloudSpeechEndpoint);