Skip to content

Commit c63ad45

Browse files
Benjamin E. CoeAce Nassri
authored andcommitted
test: switch tests to new resource names (#440)
1 parent 9f68d78 commit c63ad45

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

speech/system-test/betaFeatures.test.js

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@ const stereoFilePath = path.join(resourcePath, 'commercial_stereo.wav');
3131
const multiLanguageFile = path.join(resourcePath, 'multi.wav');
3232
const BrooklynFilePath = path.join(resourcePath, 'brooklyn.flac');
3333

34-
const monoUri = 'gs://cloud-samples-tests/speech/commercial_mono.wav';
35-
const multiUri = 'gs://nodejs-docs-samples/multi_mono.wav';
36-
const brooklynUri = 'gs://cloud-samples-tests/speech/brooklyn.flac';
37-
const stereoUri = 'gs://cloud-samples-tests/speech/commercial_stereo.wav';
34+
const monoUri = 'gs://cloud-samples-data/speech/commercial_mono.wav';
35+
const stereoUri = 'gs://cloud-samples-data/speech/commercial_stereo.wav';
3836

3937
describe(`BetaFeatures`, () => {
4038
it('should run speech diarization on a local file', async () => {
@@ -66,22 +64,11 @@ describe(`BetaFeatures`, () => {
6664
assert.match(output, /Transcription: how are you doing estoy bien e tu/);
6765
});
6866

69-
it('should transcribe multi-language on a GCS bucket', async () => {
70-
const output = execSync(`${cmd} multiLanguageTranscribeGCS -u ${multiUri}`);
71-
assert.match(output, /Transcription: how are you doing estoy bien e tu/);
72-
});
73-
7467
it('should run word Level Confience on a local file', async () => {
7568
const output = execSync(
7669
`${cmd} wordLevelConfidence -f ${BrooklynFilePath}`
7770
);
7871
assert.match(output, /Transcription: how old is the Brooklyn Bridge/);
7972
assert.match(output, /Confidence: \d\.\d/);
8073
});
81-
82-
it('should run word level confidence on a GCS bucket', async () => {
83-
const output = execSync(`${cmd} wordLevelConfidenceGCS -u ${brooklynUri}`);
84-
assert.match(output, /Transcription: how old is the Brooklyn Bridge/);
85-
assert.match(output, /Confidence: \d\.\d/);
86-
});
8774
});

0 commit comments

Comments
 (0)