Skip to content

Commit 2f33478

Browse files
chore(speech-to-speech): Remove tests related to deleted region tags
1 parent 2ca607e commit 2f33478

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

functions/speech-to-speech/functions/test/index.test.js

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -187,44 +187,4 @@ describe('speechTranslate tests', () => {
187187
});
188188
});
189189
});
190-
191-
describe('GCS bucket tests', () => {
192-
const gcsFilename = `speech-to-speech-${uuid.v4()}`;
193-
194-
describe('call_speech_to_text call_text_to_speech call_text_translation chain_cloud_calls upload_to_cloud_storage validate_request', () => {
195-
it('should transcribe speech, translate it, and synthesize it in another language', async () => {
196-
const response = await gaxios.request({
197-
data: {
198-
filename: gcsFilename,
199-
encoding: 'LINEAR16',
200-
sampleRateHertz: 24000,
201-
languageCode: 'en',
202-
audioContent: fs.readFileSync('test/speech-recording.b64', 'utf8'),
203-
},
204-
});
205-
206-
assert.strictEqual(response.status, 200);
207-
208-
// Test transcription
209-
response.data.translations.forEach(translation => {
210-
assert.ifError(translation.error);
211-
});
212-
assert.strictEqual(
213-
response.data.transcription,
214-
'this is a test please translate this message'
215-
);
216-
217-
// Test speech synthesis + result uploading
218-
assert.ok(outputBucket.file(gcsFilename).exists());
219-
});
220-
});
221-
222-
after(async () => {
223-
try {
224-
await outputBucket.file(gcsFilename).delete();
225-
} catch (err) {
226-
// Delete might fail if the test itself didn't create the file
227-
}
228-
});
229-
});
230190
});

0 commit comments

Comments
 (0)