@maxim_mazurok/gapi.client.speech-v1 0.0.20221007 → 0.0.20221028

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 +14 -4
  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: 20221007
12
+ // Revision: 20221028
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -100,6 +100,8 @@ declare namespace gapi.client {
100
100
  requestId?: string;
101
101
  /** Sequential list of transcription results corresponding to sequential portions of audio. */
102
102
  results?: SpeechRecognitionResult[];
103
+ /** Provides information on speech adaptation behavior in response */
104
+ speechAdaptationInfo?: SpeechAdaptationInfo;
103
105
  /** When available, billed audio seconds for the corresponding request. */
104
106
  totalBilledTime?: string;
105
107
  }
@@ -176,9 +178,9 @@ declare namespace gapi.client {
176
178
  */
177
179
  alternativeLanguageCodes?: string[];
178
180
  /**
179
- * The number of channels in the input audio data. ONLY set this for MULTI-CHANNEL recognition. Valid values for LINEAR16 and FLAC are `1`-`8`. Valid values for OGG_OPUS are '1'-'254'.
180
- * Valid value for MULAW, AMR, AMR_WB and SPEEX_WITH_HEADER_BYTE is only `1`. If `0` or omitted, defaults to one channel (mono). Note: We only recognize the first channel by default.
181
- * To perform independent recognition on each channel set `enable_separate_recognition_per_channel` to 'true'.
181
+ * The number of channels in the input audio data. ONLY set this for MULTI-CHANNEL recognition. Valid values for LINEAR16, OGG_OPUS and FLAC are `1`-`8`. Valid value for MULAW, AMR,
182
+ * AMR_WB and SPEEX_WITH_HEADER_BYTE is only `1`. If `0` or omitted, defaults to one channel (mono). Note: We only recognize the first channel by default. To perform independent
183
+ * recognition on each channel set `enable_separate_recognition_per_channel` to 'true'.
182
184
  */
183
185
  audioChannelCount?: number;
184
186
  /**
@@ -301,6 +303,8 @@ declare namespace gapi.client {
301
303
  requestId?: string;
302
304
  /** Sequential list of transcription results corresponding to sequential portions of audio. */
303
305
  results?: SpeechRecognitionResult[];
306
+ /** Provides information on adaptation behavior in response */
307
+ speechAdaptationInfo?: SpeechAdaptationInfo;
304
308
  /** When available, billed audio seconds for the corresponding request. */
305
309
  totalBilledTime?: string;
306
310
  }
@@ -331,6 +335,12 @@ declare namespace gapi.client {
331
335
  /** A collection of phrase sets. To specify the hints inline, leave the phrase set's `name` blank and fill in the rest of its fields. Any phrase set can use any custom class. */
332
336
  phraseSets?: PhraseSet[];
333
337
  }
338
+ interface SpeechAdaptationInfo {
339
+ /** Whether there was a timeout when applying speech adaptation. If true, adaptation had no effect in the response transcript. */
340
+ adaptationTimeout?: boolean;
341
+ /** If set, returns a message specifying which part of the speech adaptation request timed out. */
342
+ timeoutMessage?: string;
343
+ }
334
344
  interface SpeechContext {
335
345
  /**
336
346
  * Hint Boost. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.speech-v1",
3
- "version": "0.0.20221007",
3
+ "version": "0.0.20221028",
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: 20221007
6
+ // Revision: 20221028
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */