SpeechToTextV2.viaServiceAccount constructor

SpeechToTextV2.viaServiceAccount(
  1. ServiceAccount account, {
  2. required String projectId,
  3. String? cloudSpeechEndpoint,
  4. Map<String, String>? metadata,
})

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);