From 62e80356829e34023651ae90fbdf02fa455bc583 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Tue, 1 Sep 2020 14:37:47 -0700 Subject: [PATCH] chore: run CI on Node.js 12, fix GCS file location (#640) --- .../google-cloud-node/system-test/speech_system_test.js | 6 ++++-- .../system-test/speech_system_test_v1.js | 6 ++++-- .../system-test/speech_system_test_v1p1beta1.js | 6 ++++-- .../system-test/speech_typescript_system_test.ts | 8 ++++++-- .../system-test/speech_typescript_system_test_v1.ts | 8 ++++++-- .../speech_typescript_system_test_v1p1beta1.ts | 8 ++++++-- 6 files changed, 30 insertions(+), 12 deletions(-) diff --git a/packages/google-cloud-node/system-test/speech_system_test.js b/packages/google-cloud-node/system-test/speech_system_test.js index f9e4c6c66afc..157287b9e874 100644 --- a/packages/google-cloud-node/system-test/speech_system_test.js +++ b/packages/google-cloud-node/system-test/speech_system_test.js @@ -31,8 +31,9 @@ describe('SpeechClient system test default', () => { languageCode: languageCode, sampleRateHertz: sampleRateHertz, encoding: encoding, + audioChannelCount: 2, }; - const uri = 'gs://gapic-toolkit/hello.flac'; + const uri = 'gs://cloud-samples-data/speech/hello.flac'; const audio = { uri: uri, }; @@ -54,8 +55,9 @@ describe('SpeechClient system test default', () => { languageCode: languageCode, sampleRateHertz: sampleRateHertz, encoding: encoding, + audioChannelCount: 2, }; - const uri = 'gs://gapic-toolkit/hello.flac'; + const uri = 'gs://cloud-samples-data/speech/hello.flac'; const audio = { uri: uri, }; diff --git a/packages/google-cloud-node/system-test/speech_system_test_v1.js b/packages/google-cloud-node/system-test/speech_system_test_v1.js index fa3c5cc48da3..9da3dc9ad594 100644 --- a/packages/google-cloud-node/system-test/speech_system_test_v1.js +++ b/packages/google-cloud-node/system-test/speech_system_test_v1.js @@ -31,8 +31,9 @@ describe('SpeechClient system test v1', () => { languageCode: languageCode, sampleRateHertz: sampleRateHertz, encoding: encoding, + audioChannelCount: 2, }; - const uri = 'gs://gapic-toolkit/hello.flac'; + const uri = 'gs://cloud-samples-data/speech/hello.flac'; const audio = { uri: uri, }; @@ -54,8 +55,9 @@ describe('SpeechClient system test v1', () => { languageCode: languageCode, sampleRateHertz: sampleRateHertz, encoding: encoding, + audioChannelCount: 2, }; - const uri = 'gs://gapic-toolkit/hello.flac'; + const uri = 'gs://cloud-samples-data/speech/hello.flac'; const audio = { uri: uri, }; diff --git a/packages/google-cloud-node/system-test/speech_system_test_v1p1beta1.js b/packages/google-cloud-node/system-test/speech_system_test_v1p1beta1.js index 1f81e0755640..abfe49972a44 100644 --- a/packages/google-cloud-node/system-test/speech_system_test_v1p1beta1.js +++ b/packages/google-cloud-node/system-test/speech_system_test_v1p1beta1.js @@ -31,8 +31,9 @@ describe('SpeechClient system test v1p1beta1', () => { languageCode: languageCode, sampleRateHertz: sampleRateHertz, encoding: encoding, + audioChannelCount: 2, }; - const uri = 'gs://gapic-toolkit/hello.flac'; + const uri = 'gs://cloud-samples-data/speech/hello.flac'; const audio = { uri: uri, }; @@ -54,8 +55,9 @@ describe('SpeechClient system test v1p1beta1', () => { languageCode: languageCode, sampleRateHertz: sampleRateHertz, encoding: encoding, + audioChannelCount: 2, }; - const uri = 'gs://gapic-toolkit/hello.flac'; + const uri = 'gs://cloud-samples-data/speech/hello.flac'; const audio = { uri: uri, }; diff --git a/packages/google-cloud-node/system-test/speech_typescript_system_test.ts b/packages/google-cloud-node/system-test/speech_typescript_system_test.ts index 93af1b6070d4..49cce591381d 100644 --- a/packages/google-cloud-node/system-test/speech_typescript_system_test.ts +++ b/packages/google-cloud-node/system-test/speech_typescript_system_test.ts @@ -27,12 +27,14 @@ describe('SpeechClient TypeScript system test default', () => { const sampleRateHertz = 44100; const encoding = google.cloud.speech.v1.RecognitionConfig.AudioEncoding.FLAC; + const audioChannelCount = 2; const config = { languageCode, sampleRateHertz, encoding, + audioChannelCount, }; - const uri = 'gs://gapic-toolkit/hello.flac'; + const uri = 'gs://cloud-samples-data/speech/hello.flac'; const audio = { uri, }; @@ -54,12 +56,14 @@ describe('SpeechClient TypeScript system test default', () => { const sampleRateHertz = 44100; const encoding = google.cloud.speech.v1.RecognitionConfig.AudioEncoding.FLAC; + const audioChannelCount = 2; const config = { languageCode, sampleRateHertz, encoding, + audioChannelCount, }; - const uri = 'gs://gapic-toolkit/hello.flac'; + const uri = 'gs://cloud-samples-data/speech/hello.flac'; const audio = { uri, }; diff --git a/packages/google-cloud-node/system-test/speech_typescript_system_test_v1.ts b/packages/google-cloud-node/system-test/speech_typescript_system_test_v1.ts index fbb097186140..d84ee4131ed0 100644 --- a/packages/google-cloud-node/system-test/speech_typescript_system_test_v1.ts +++ b/packages/google-cloud-node/system-test/speech_typescript_system_test_v1.ts @@ -27,12 +27,14 @@ describe('SpeechClient TypeScript system test v1', () => { const sampleRateHertz = 44100; const encoding = google.cloud.speech.v1.RecognitionConfig.AudioEncoding.FLAC; + const audioChannelCount = 2; const config = { languageCode, sampleRateHertz, encoding, + audioChannelCount, }; - const uri = 'gs://gapic-toolkit/hello.flac'; + const uri = 'gs://cloud-samples-data/speech/hello.flac'; const audio = { uri, }; @@ -54,12 +56,14 @@ describe('SpeechClient TypeScript system test v1', () => { const sampleRateHertz = 44100; const encoding = google.cloud.speech.v1.RecognitionConfig.AudioEncoding.FLAC; + const audioChannelCount = 2; const config = { languageCode, sampleRateHertz, encoding, + audioChannelCount, }; - const uri = 'gs://gapic-toolkit/hello.flac'; + const uri = 'gs://cloud-samples-data/speech/hello.flac'; const audio = { uri, }; diff --git a/packages/google-cloud-node/system-test/speech_typescript_system_test_v1p1beta1.ts b/packages/google-cloud-node/system-test/speech_typescript_system_test_v1p1beta1.ts index dfba3a46d2f8..288e37ea08df 100644 --- a/packages/google-cloud-node/system-test/speech_typescript_system_test_v1p1beta1.ts +++ b/packages/google-cloud-node/system-test/speech_typescript_system_test_v1p1beta1.ts @@ -27,12 +27,14 @@ describe('SpeechClient TypeScript system test v1p1beta1', () => { const sampleRateHertz = 44100; const encoding = google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.FLAC; + const audioChannelCount = 2; const config = { languageCode, sampleRateHertz, encoding, + audioChannelCount, }; - const uri = 'gs://gapic-toolkit/hello.flac'; + const uri = 'gs://cloud-samples-data/speech/hello.flac'; const audio = { uri, }; @@ -54,12 +56,14 @@ describe('SpeechClient TypeScript system test v1p1beta1', () => { const sampleRateHertz = 44100; const encoding = google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.FLAC; + const audioChannelCount = 2; const config = { languageCode, sampleRateHertz, encoding, + audioChannelCount, }; - const uri = 'gs://gapic-toolkit/hello.flac'; + const uri = 'gs://cloud-samples-data/speech/hello.flac'; const audio = { uri, };