Skip to content

Commit

Permalink
feat: Support output transcript to GCS for LongRunningRecognize. (#708)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 362934100

Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Mar 15 07:18:03 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 72326861be446be27d53af95c87e6e313367c371
Source-Link: googleapis/googleapis@7232686
  • Loading branch information
yoshi-automation authored Mar 16, 2021
1 parent b27e2b3 commit 4bb9fc8
Show file tree
Hide file tree
Showing 5 changed files with 128 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,12 @@ message LongRunningRecognizeResponse {
// Sequential list of transcription results corresponding to
// sequential portions of audio.
repeated SpeechRecognitionResult results = 2;

// Original output config if present in the request.
TranscriptOutputConfig output_config = 6;

// If the transcript output fails this field contains the relevant error.
google.rpc.Status output_error = 7;
}

// Describes the progress of a long-running `LongRunningRecognize` call. It is
Expand All @@ -657,6 +663,9 @@ message LongRunningRecognizeMetadata {
// Output only. The URI of the audio file being transcribed. Empty if the audio was sent
// as byte content.
string uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. A copy of the TranscriptOutputConfig if it was set in the request.
TranscriptOutputConfig output_config = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
}

// `StreamingRecognizeResponse` is the only message returned to the client by
Expand Down
18 changes: 18 additions & 0 deletions packages/google-cloud-speech/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

83 changes: 83 additions & 0 deletions packages/google-cloud-speech/protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions packages/google-cloud-speech/protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/google-cloud-speech/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/nodejs-speech.git",
"sha": "fbcc04bb6fc8e8ecbd90b3559bf2e85210947a37"
"sha": "6abc5ec4c42344161eeefb3d52a249adead407c4"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "b6ebac16c3aecb798d4f25443d96df2f42a965ca",
"internalRef": "362294447"
"sha": "72326861be446be27d53af95c87e6e313367c371",
"internalRef": "362934100"
}
},
{
Expand Down

0 comments on commit 4bb9fc8

Please sign in to comment.