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