diff --git a/packages/google-cloud-speech/.jsdoc.js b/packages/google-cloud-speech/.jsdoc.js index 5b2d2065b87..51d12943d53 100644 --- a/packages/google-cloud-speech/.jsdoc.js +++ b/packages/google-cloud-speech/.jsdoc.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ module.exports = { includePattern: '\\.js$' }, templates: { - copyright: 'Copyright 2024 Google LLC', + copyright: 'Copyright 2025 Google LLC', includeDate: false, sourceFiles: false, systemName: '@google-cloud/speech', diff --git a/packages/google-cloud-speech/.mocharc.js b/packages/google-cloud-speech/.mocharc.js index 7e843ab5a75..eef6173ab44 100644 --- a/packages/google-cloud-speech/.mocharc.js +++ b/packages/google-cloud-speech/.mocharc.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/.prettierrc.js b/packages/google-cloud-speech/.prettierrc.js index 120c6aa3e6e..b189724933b 100644 --- a/packages/google-cloud-speech/.prettierrc.js +++ b/packages/google-cloud-speech/.prettierrc.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/protos/google/cloud/speech/v2/cloud_speech.proto b/packages/google-cloud-speech/protos/google/cloud/speech/v2/cloud_speech.proto index 9dde42f2d9a..4399d3fd79a 100644 --- a/packages/google-cloud-speech/protos/google/cloud/speech/v2/cloud_speech.proto +++ b/packages/google-cloud-speech/protos/google/cloud/speech/v2/cloud_speech.proto @@ -729,35 +729,52 @@ message ExplicitDecodingConfig { // Headerless 8-bit companded alaw samples. ALAW = 3; + + // AMR frames with an rfc4867.5 header. + AMR = 4; + + // AMR-WB frames with an rfc4867.5 header. + AMR_WB = 5; + + // FLAC frames in the "native FLAC" container format. + FLAC = 6; + + // MPEG audio frames with optional (ignored) ID3 metadata. + MP3 = 7; + + // Opus audio frames in an Ogg container. + OGG_OPUS = 8; + + // Opus audio frames in a WebM container. + WEBM_OPUS = 9; + + // AAC audio frames in an MP4 container. + MP4_AAC = 10; + + // AAC audio frames in an M4A container. + M4A_AAC = 11; + + // AAC audio frames in an MOV container. + MOV_AAC = 12; } // Required. Encoding of the audio data sent for recognition. AudioEncoding encoding = 1 [(google.api.field_behavior) = REQUIRED]; - // Sample rate in Hertz of the audio data sent for recognition. Valid - // values are: 8000-48000. 16000 is optimal. For best results, set the + // Optional. Sample rate in Hertz of the audio data sent for recognition. + // Valid values are: 8000-48000. 16000 is optimal. For best results, set the // sampling rate of the audio source to 16000 Hz. If that's not possible, use // the native sample rate of the audio source (instead of re-sampling). - // Supported for the following encodings: - // - // * LINEAR16: Headerless 16-bit signed little-endian PCM samples. - // - // * MULAW: Headerless 8-bit companded mulaw samples. - // - // * ALAW: Headerless 8-bit companded alaw samples. - int32 sample_rate_hertz = 2; + // Note that this field is marked as OPTIONAL for backward compatibility + // reasons. It is (and has always been) effectively REQUIRED. + int32 sample_rate_hertz = 2 [(google.api.field_behavior) = OPTIONAL]; - // Number of channels present in the audio data sent for recognition. - // Supported for the following encodings: - // - // * LINEAR16: Headerless 16-bit signed little-endian PCM samples. - // - // * MULAW: Headerless 8-bit companded mulaw samples. - // - // * ALAW: Headerless 8-bit companded alaw samples. + // Optional. Number of channels present in the audio data sent for + // recognition. Note that this field is marked as OPTIONAL for backward + // compatibility reasons. It is (and has always been) effectively REQUIRED. // // The maximum allowed value is 8. - int32 audio_channel_count = 3; + int32 audio_channel_count = 3 [(google.api.field_behavior) = OPTIONAL]; } // Configuration to enable speaker diarization. @@ -1316,16 +1333,16 @@ message SrtOutputFileFormatConfig {} // Configuration for the format of the results stored to `output`. message OutputFormatConfig { // Configuration for the native output format. If this field is set or if no - // other output format field is set then transcripts will be written to the + // other output format field is set, then transcripts will be written to the // sink in the native format. NativeOutputFileFormatConfig native = 1; - // Configuration for the vtt output format. If this field is set then - // transcripts will be written to the sink in the vtt format. + // Configuration for the VTT output format. If this field is set, then + // transcripts will be written to the sink in the VTT format. VttOutputFileFormatConfig vtt = 2; - // Configuration for the srt output format. If this field is set then - // transcripts will be written to the sink in the srt format. + // Configuration for the SRT output format. If this field is set, then + // transcripts will be written to the sink in the SRT format. SrtOutputFileFormatConfig srt = 3; } diff --git a/packages/google-cloud-speech/protos/protos.d.ts b/packages/google-cloud-speech/protos/protos.d.ts index d863c02098a..de450789d37 100644 --- a/packages/google-cloud-speech/protos/protos.d.ts +++ b/packages/google-cloud-speech/protos/protos.d.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11687,7 +11687,16 @@ export namespace google { AUDIO_ENCODING_UNSPECIFIED = 0, LINEAR16 = 1, MULAW = 2, - ALAW = 3 + ALAW = 3, + AMR = 4, + AMR_WB = 5, + FLAC = 6, + MP3 = 7, + OGG_OPUS = 8, + WEBM_OPUS = 9, + MP4_AAC = 10, + M4A_AAC = 11, + MOV_AAC = 12 } } diff --git a/packages/google-cloud-speech/protos/protos.js b/packages/google-cloud-speech/protos/protos.js index c5235a57880..ce003156687 100644 --- a/packages/google-cloud-speech/protos/protos.js +++ b/packages/google-cloud-speech/protos/protos.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -28453,6 +28453,15 @@ case 1: case 2: case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: break; } if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) @@ -28499,6 +28508,42 @@ case 3: message.encoding = 3; break; + case "AMR": + case 4: + message.encoding = 4; + break; + case "AMR_WB": + case 5: + message.encoding = 5; + break; + case "FLAC": + case 6: + message.encoding = 6; + break; + case "MP3": + case 7: + message.encoding = 7; + break; + case "OGG_OPUS": + case 8: + message.encoding = 8; + break; + case "WEBM_OPUS": + case 9: + message.encoding = 9; + break; + case "MP4_AAC": + case 10: + message.encoding = 10; + break; + case "M4A_AAC": + case 11: + message.encoding = 11; + break; + case "MOV_AAC": + case 12: + message.encoding = 12; + break; } if (object.sampleRateHertz != null) message.sampleRateHertz = object.sampleRateHertz | 0; @@ -28568,6 +28613,15 @@ * @property {number} LINEAR16=1 LINEAR16 value * @property {number} MULAW=2 MULAW value * @property {number} ALAW=3 ALAW value + * @property {number} AMR=4 AMR value + * @property {number} AMR_WB=5 AMR_WB value + * @property {number} FLAC=6 FLAC value + * @property {number} MP3=7 MP3 value + * @property {number} OGG_OPUS=8 OGG_OPUS value + * @property {number} WEBM_OPUS=9 WEBM_OPUS value + * @property {number} MP4_AAC=10 MP4_AAC value + * @property {number} M4A_AAC=11 M4A_AAC value + * @property {number} MOV_AAC=12 MOV_AAC value */ ExplicitDecodingConfig.AudioEncoding = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -28575,6 +28629,15 @@ values[valuesById[1] = "LINEAR16"] = 1; values[valuesById[2] = "MULAW"] = 2; values[valuesById[3] = "ALAW"] = 3; + values[valuesById[4] = "AMR"] = 4; + values[valuesById[5] = "AMR_WB"] = 5; + values[valuesById[6] = "FLAC"] = 6; + values[valuesById[7] = "MP3"] = 7; + values[valuesById[8] = "OGG_OPUS"] = 8; + values[valuesById[9] = "WEBM_OPUS"] = 9; + values[valuesById[10] = "MP4_AAC"] = 10; + values[valuesById[11] = "M4A_AAC"] = 11; + values[valuesById[12] = "MOV_AAC"] = 12; return values; })(); diff --git a/packages/google-cloud-speech/protos/protos.json b/packages/google-cloud-speech/protos/protos.json index 251278b51be..e73efa70dde 100644 --- a/packages/google-cloud-speech/protos/protos.json +++ b/packages/google-cloud-speech/protos/protos.json @@ -3377,11 +3377,17 @@ }, "sampleRateHertz": { "type": "int32", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } }, "audioChannelCount": { "type": "int32", - "id": 3 + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -3390,7 +3396,16 @@ "AUDIO_ENCODING_UNSPECIFIED": 0, "LINEAR16": 1, "MULAW": 2, - "ALAW": 3 + "ALAW": 3, + "AMR": 4, + "AMR_WB": 5, + "FLAC": 6, + "MP3": 7, + "OGG_OPUS": 8, + "WEBM_OPUS": 9, + "MP4_AAC": 10, + "M4A_AAC": 11, + "MOV_AAC": 12 } } } diff --git a/packages/google-cloud-speech/samples/generated/v1/adaptation.create_custom_class.js b/packages/google-cloud-speech/samples/generated/v1/adaptation.create_custom_class.js index 16598b9c997..f7a91e2c9da 100644 --- a/packages/google-cloud-speech/samples/generated/v1/adaptation.create_custom_class.js +++ b/packages/google-cloud-speech/samples/generated/v1/adaptation.create_custom_class.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1/adaptation.create_phrase_set.js b/packages/google-cloud-speech/samples/generated/v1/adaptation.create_phrase_set.js index 4e43c55da9c..ad7724130bc 100644 --- a/packages/google-cloud-speech/samples/generated/v1/adaptation.create_phrase_set.js +++ b/packages/google-cloud-speech/samples/generated/v1/adaptation.create_phrase_set.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1/adaptation.delete_custom_class.js b/packages/google-cloud-speech/samples/generated/v1/adaptation.delete_custom_class.js index 2ac1b366dfd..fb804f9fead 100644 --- a/packages/google-cloud-speech/samples/generated/v1/adaptation.delete_custom_class.js +++ b/packages/google-cloud-speech/samples/generated/v1/adaptation.delete_custom_class.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1/adaptation.delete_phrase_set.js b/packages/google-cloud-speech/samples/generated/v1/adaptation.delete_phrase_set.js index 145988309d4..d9d6a9c9e2b 100644 --- a/packages/google-cloud-speech/samples/generated/v1/adaptation.delete_phrase_set.js +++ b/packages/google-cloud-speech/samples/generated/v1/adaptation.delete_phrase_set.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1/adaptation.get_custom_class.js b/packages/google-cloud-speech/samples/generated/v1/adaptation.get_custom_class.js index 6127e18209e..0ecc0638127 100644 --- a/packages/google-cloud-speech/samples/generated/v1/adaptation.get_custom_class.js +++ b/packages/google-cloud-speech/samples/generated/v1/adaptation.get_custom_class.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1/adaptation.get_phrase_set.js b/packages/google-cloud-speech/samples/generated/v1/adaptation.get_phrase_set.js index 0223b4e2c17..cbed15e15a0 100644 --- a/packages/google-cloud-speech/samples/generated/v1/adaptation.get_phrase_set.js +++ b/packages/google-cloud-speech/samples/generated/v1/adaptation.get_phrase_set.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1/adaptation.list_custom_classes.js b/packages/google-cloud-speech/samples/generated/v1/adaptation.list_custom_classes.js index acc32021bbf..b0346689174 100644 --- a/packages/google-cloud-speech/samples/generated/v1/adaptation.list_custom_classes.js +++ b/packages/google-cloud-speech/samples/generated/v1/adaptation.list_custom_classes.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1/adaptation.list_phrase_set.js b/packages/google-cloud-speech/samples/generated/v1/adaptation.list_phrase_set.js index f64a611d334..1d26f21ab37 100644 --- a/packages/google-cloud-speech/samples/generated/v1/adaptation.list_phrase_set.js +++ b/packages/google-cloud-speech/samples/generated/v1/adaptation.list_phrase_set.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1/adaptation.update_custom_class.js b/packages/google-cloud-speech/samples/generated/v1/adaptation.update_custom_class.js index 4efd54c7b9c..54b2bbbcfa4 100644 --- a/packages/google-cloud-speech/samples/generated/v1/adaptation.update_custom_class.js +++ b/packages/google-cloud-speech/samples/generated/v1/adaptation.update_custom_class.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1/adaptation.update_phrase_set.js b/packages/google-cloud-speech/samples/generated/v1/adaptation.update_phrase_set.js index 96d6c52e330..8bb22ee893f 100644 --- a/packages/google-cloud-speech/samples/generated/v1/adaptation.update_phrase_set.js +++ b/packages/google-cloud-speech/samples/generated/v1/adaptation.update_phrase_set.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1/speech.long_running_recognize.js b/packages/google-cloud-speech/samples/generated/v1/speech.long_running_recognize.js index 8ab3510fb1f..f2887a67c53 100644 --- a/packages/google-cloud-speech/samples/generated/v1/speech.long_running_recognize.js +++ b/packages/google-cloud-speech/samples/generated/v1/speech.long_running_recognize.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1/speech.recognize.js b/packages/google-cloud-speech/samples/generated/v1/speech.recognize.js index 4d5287f364d..1fdc0c79122 100644 --- a/packages/google-cloud-speech/samples/generated/v1/speech.recognize.js +++ b/packages/google-cloud-speech/samples/generated/v1/speech.recognize.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1/speech.streaming_recognize.js b/packages/google-cloud-speech/samples/generated/v1/speech.streaming_recognize.js index 5699c5a552e..7e29fc0819c 100644 --- a/packages/google-cloud-speech/samples/generated/v1/speech.streaming_recognize.js +++ b/packages/google-cloud-speech/samples/generated/v1/speech.streaming_recognize.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.create_custom_class.js b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.create_custom_class.js index 5bbc59086df..dad2dd5b94f 100644 --- a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.create_custom_class.js +++ b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.create_custom_class.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.create_phrase_set.js b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.create_phrase_set.js index ee2e0ddfd8f..bd57fe02ef4 100644 --- a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.create_phrase_set.js +++ b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.create_phrase_set.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.delete_custom_class.js b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.delete_custom_class.js index 955f9b4cbfa..d87b51cc5db 100644 --- a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.delete_custom_class.js +++ b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.delete_custom_class.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.delete_phrase_set.js b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.delete_phrase_set.js index edb3946d34e..de932c57949 100644 --- a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.delete_phrase_set.js +++ b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.delete_phrase_set.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.get_custom_class.js b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.get_custom_class.js index a1970a3f1fc..8b4ed02d0b4 100644 --- a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.get_custom_class.js +++ b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.get_custom_class.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.get_phrase_set.js b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.get_phrase_set.js index 6c54ccd5ea7..ef0d6e0ac0b 100644 --- a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.get_phrase_set.js +++ b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.get_phrase_set.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.list_custom_classes.js b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.list_custom_classes.js index 2dca3d69a49..d02480a5b5c 100644 --- a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.list_custom_classes.js +++ b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.list_custom_classes.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.list_phrase_set.js b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.list_phrase_set.js index b0da2365b4d..e3d6ddb46ef 100644 --- a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.list_phrase_set.js +++ b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.list_phrase_set.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.update_custom_class.js b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.update_custom_class.js index d3959fd50a9..a76a29ded99 100644 --- a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.update_custom_class.js +++ b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.update_custom_class.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.update_phrase_set.js b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.update_phrase_set.js index 7c2aede35e1..1c63d468db8 100644 --- a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.update_phrase_set.js +++ b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.update_phrase_set.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1p1beta1/speech.long_running_recognize.js b/packages/google-cloud-speech/samples/generated/v1p1beta1/speech.long_running_recognize.js index 70a12e26351..5fe33ac00f8 100644 --- a/packages/google-cloud-speech/samples/generated/v1p1beta1/speech.long_running_recognize.js +++ b/packages/google-cloud-speech/samples/generated/v1p1beta1/speech.long_running_recognize.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1p1beta1/speech.recognize.js b/packages/google-cloud-speech/samples/generated/v1p1beta1/speech.recognize.js index 1d2eaa56c91..6c672fea3a2 100644 --- a/packages/google-cloud-speech/samples/generated/v1p1beta1/speech.recognize.js +++ b/packages/google-cloud-speech/samples/generated/v1p1beta1/speech.recognize.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/samples/generated/v1p1beta1/speech.streaming_recognize.js b/packages/google-cloud-speech/samples/generated/v1p1beta1/speech.streaming_recognize.js index d2085ec650f..954ef4a6dfb 100644 --- a/packages/google-cloud-speech/samples/generated/v1p1beta1/speech.streaming_recognize.js +++ b/packages/google-cloud-speech/samples/generated/v1p1beta1/speech.streaming_recognize.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/src/v1/adaptation_client.ts b/packages/google-cloud-speech/src/v1/adaptation_client.ts index 6dd0bbbd921..7794d11f588 100644 --- a/packages/google-cloud-speech/src/v1/adaptation_client.ts +++ b/packages/google-cloud-speech/src/v1/adaptation_client.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -155,7 +155,6 @@ export class AdaptationClient { } // Choose either gRPC or proto-over-HTTP implementation of google-gax. - // @ts-ignore this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. diff --git a/packages/google-cloud-speech/src/v1/index.ts b/packages/google-cloud-speech/src/v1/index.ts index d9490fef5f1..4a66bbeb5ff 100644 --- a/packages/google-cloud-speech/src/v1/index.ts +++ b/packages/google-cloud-speech/src/v1/index.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/src/v1/speech_client.ts b/packages/google-cloud-speech/src/v1/speech_client.ts index 89ff1d35f7f..8d5084c868c 100644 --- a/packages/google-cloud-speech/src/v1/speech_client.ts +++ b/packages/google-cloud-speech/src/v1/speech_client.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -156,7 +156,6 @@ export class SpeechClient { } // Choose either gRPC or proto-over-HTTP implementation of google-gax. - // @ts-ignore this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. diff --git a/packages/google-cloud-speech/src/v1p1beta1/adaptation_client.ts b/packages/google-cloud-speech/src/v1p1beta1/adaptation_client.ts index 32b01d51f73..24ea63f242e 100644 --- a/packages/google-cloud-speech/src/v1p1beta1/adaptation_client.ts +++ b/packages/google-cloud-speech/src/v1p1beta1/adaptation_client.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -155,7 +155,6 @@ export class AdaptationClient { } // Choose either gRPC or proto-over-HTTP implementation of google-gax. - // @ts-ignore this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. diff --git a/packages/google-cloud-speech/src/v1p1beta1/index.ts b/packages/google-cloud-speech/src/v1p1beta1/index.ts index d9490fef5f1..4a66bbeb5ff 100644 --- a/packages/google-cloud-speech/src/v1p1beta1/index.ts +++ b/packages/google-cloud-speech/src/v1p1beta1/index.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/src/v1p1beta1/speech_client.ts b/packages/google-cloud-speech/src/v1p1beta1/speech_client.ts index ea81085f977..8b0fd0cf8f3 100644 --- a/packages/google-cloud-speech/src/v1p1beta1/speech_client.ts +++ b/packages/google-cloud-speech/src/v1p1beta1/speech_client.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -156,7 +156,6 @@ export class SpeechClient { } // Choose either gRPC or proto-over-HTTP implementation of google-gax. - // @ts-ignore this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. diff --git a/packages/google-cloud-speech/src/v2/speech_client.ts b/packages/google-cloud-speech/src/v2/speech_client.ts index 137a29fd64c..5e3e34e1d8b 100644 --- a/packages/google-cloud-speech/src/v2/speech_client.ts +++ b/packages/google-cloud-speech/src/v2/speech_client.ts @@ -161,7 +161,6 @@ export class SpeechClient { } // Choose either gRPC or proto-over-HTTP implementation of google-gax. - // @ts-ignore this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. diff --git a/packages/google-cloud-speech/system-test/fixtures/sample/src/index.js b/packages/google-cloud-speech/system-test/fixtures/sample/src/index.js index a7e9f2a8797..4db97c6235a 100644 --- a/packages/google-cloud-speech/system-test/fixtures/sample/src/index.js +++ b/packages/google-cloud-speech/system-test/fixtures/sample/src/index.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/system-test/fixtures/sample/src/index.ts b/packages/google-cloud-speech/system-test/fixtures/sample/src/index.ts index 4614897858e..3f61a9c89c4 100644 --- a/packages/google-cloud-speech/system-test/fixtures/sample/src/index.ts +++ b/packages/google-cloud-speech/system-test/fixtures/sample/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/system-test/install.ts b/packages/google-cloud-speech/system-test/install.ts index 83b83f332c3..d927b34361d 100644 --- a/packages/google-cloud-speech/system-test/install.ts +++ b/packages/google-cloud-speech/system-test/install.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/test/gapic_adaptation_v1.ts b/packages/google-cloud-speech/test/gapic_adaptation_v1.ts index 0ae847eb9c5..e2d2e24abca 100644 --- a/packages/google-cloud-speech/test/gapic_adaptation_v1.ts +++ b/packages/google-cloud-speech/test/gapic_adaptation_v1.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/test/gapic_adaptation_v1p1beta1.ts b/packages/google-cloud-speech/test/gapic_adaptation_v1p1beta1.ts index afe0e66f2fd..2cee437e54a 100644 --- a/packages/google-cloud-speech/test/gapic_adaptation_v1p1beta1.ts +++ b/packages/google-cloud-speech/test/gapic_adaptation_v1p1beta1.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/test/gapic_speech_v1.ts b/packages/google-cloud-speech/test/gapic_speech_v1.ts index 2770384e9e7..c791908a35d 100644 --- a/packages/google-cloud-speech/test/gapic_speech_v1.ts +++ b/packages/google-cloud-speech/test/gapic_speech_v1.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/test/gapic_speech_v1p1beta1.ts b/packages/google-cloud-speech/test/gapic_speech_v1p1beta1.ts index 7d1fa12d442..94e2afc2e8c 100644 --- a/packages/google-cloud-speech/test/gapic_speech_v1p1beta1.ts +++ b/packages/google-cloud-speech/test/gapic_speech_v1p1beta1.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-speech/tsconfig.json b/packages/google-cloud-speech/tsconfig.json index 5059f3b0608..c78f1c884ef 100644 --- a/packages/google-cloud-speech/tsconfig.json +++ b/packages/google-cloud-speech/tsconfig.json @@ -4,7 +4,6 @@ "rootDir": ".", "outDir": "build", "resolveJsonModule": true, - "allowSyntheticDefaultImports": true, "lib": [ "es2018", "dom"