Skip to content

Commit

Permalink
fix(stt): update word confidence and timestamps type
Browse files Browse the repository at this point in the history
  • Loading branch information
Hsaylor authored Jan 19, 2022
1 parent 0c1d8b1 commit 9f4d664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions speech-to-text/v1-generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6147,13 +6147,13 @@ namespace SpeechToTextV1 {
* elements: the word followed by its start and end time in seconds, for example:
* `[["hello",0.0,1.2],["world",1.2,2.5]]`. Timestamps are returned only for the best alternative.
*/
timestamps?: [string, number, number];
timestamps?: [string, number, number][];
/** A confidence score for each word of the transcript as a list of lists. Each inner list consists of two
* elements: the word and its confidence score in the range of 0.0 to 1.0, for example:
* `[["hello",0.95],["world",0.866]]`. Confidence scores are returned only for the best alternative and only with
* results marked as final.
*/
word_confidence?: string[];
word_confidence?: [string, number][];
}

/** Component results for a speech recognition request. */
Expand Down

0 comments on commit 9f4d664

Please sign in to comment.