SpeechToTextBeta.viaServiceAccount constructor

SpeechToTextBeta.viaServiceAccount(
  1. ServiceAccount account, {
  2. String? cloudSpeechEndpoint,
  3. Map<String, String>? metadata,
})

Creates a SpeechToText interface using a service account.

Implementation

factory SpeechToTextBeta.viaServiceAccount(
  ServiceAccount account, {
  String? cloudSpeechEndpoint,
  Map<String, String>? metadata,
}) =>
    SpeechToTextBeta._(
        account.callOptions.mergedWith(CallOptions(metadata: metadata ?? {})),
        cloudSpeechEndpoint: cloudSpeechEndpoint);