@maxim_mazurok/gapi.client.speech-v1 0.0.20230213 → 0.0.20230228

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +9 -3
  2. package/package.json +1 -1
  3. package/tests.ts +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://speech.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230213
12
+ // Revision: 20230228
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -313,7 +313,7 @@ declare namespace gapi.client {
313
313
  totalBilledTime?: string;
314
314
  }
315
315
  interface SpeakerDiarizationConfig {
316
- /** If 'true', enables speaker detection for each recognized word in the top alternative of the recognition result using a speaker_tag provided in the WordInfo. */
316
+ /** If 'true', enables speaker detection for each recognized word in the top alternative of the recognition result using a speaker_label provided in the WordInfo. */
317
317
  enableSpeakerDiarization?: boolean;
318
318
  /**
319
319
  * Maximum number of speakers in the conversation. This range gives you more flexibility by allowing the system to automatically determine the correct number of speakers. If not set,
@@ -425,9 +425,15 @@ declare namespace gapi.client {
425
425
  * hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
426
426
  */
427
427
  endTime?: string;
428
+ /**
429
+ * Output only. A label value assigned for every unique speaker within the audio. This field specifies which speaker was detected to have spoken this word. For some models, like
430
+ * medical_conversation this can be actual speaker role, for example "patient" or "provider", but generally this would be a number identifying a speaker. This field is only set if
431
+ * enable_speaker_diarization = 'true' and only for the top alternative.
432
+ */
433
+ speakerLabel?: string;
428
434
  /**
429
435
  * Output only. A distinct integer value is assigned for every speaker within the audio. This field specifies which one of those speakers was detected to have spoken this word. Value
430
- * ranges from '1' to diarization_speaker_count. speaker_tag is set if enable_speaker_diarization = 'true' and only in the top alternative.
436
+ * ranges from '1' to diarization_speaker_count. speaker_tag is set if enable_speaker_diarization = 'true' and only for the top alternative. Note: Use speaker_label instead.
431
437
  */
432
438
  speakerTag?: number;
433
439
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.speech-v1",
3
- "version": "0.0.20230213",
3
+ "version": "0.0.20230228",
4
4
  "description": "TypeScript typings for Cloud Speech-to-Text API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230213
6
+ // Revision: 20230228
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */