diff --git a/mediatranslation/README.md b/mediatranslation/README.md new file mode 100644 index 0000000000..90ec9021f7 --- /dev/null +++ b/mediatranslation/README.md @@ -0,0 +1,6 @@ +# Media Translation API deprication + +Media Translation API is [deprecated] and will no longer be available on Google Cloud after July 1, 2024. +All API code samples under this folder are no longer maintained and will be removed after July 1, 2024. + +[deprecated]: https://cloud.google.com/translate/media/docs/deprecations diff --git a/mediatranslation/test/quickstart.test.js b/mediatranslation/test/quickstart.test.js index c031c44129..dc1ac8c258 100644 --- a/mediatranslation/test/quickstart.test.js +++ b/mediatranslation/test/quickstart.test.js @@ -23,8 +23,9 @@ const cmd = 'node quickstart.js'; const filePath = path.join(__dirname, '..', 'resources/audio.raw'); const exec = cmd => execSync(cmd, {encoding: 'utf-8'}); +// skip this test because testing code sample is deprecated describe('Quickstart', () => { - it('should translate from a streamed file', async () => { + it.skip('should translate from a streamed file', async () => { const stdout = exec(`${cmd} ${filePath} linear16 en-US es-ES`); assert.include(stdout, 'Partial translation'); }); diff --git a/mediatranslation/test/translate_from_file.test.js b/mediatranslation/test/translate_from_file.test.js index 193b3b6555..8c93f7daa7 100644 --- a/mediatranslation/test/translate_from_file.test.js +++ b/mediatranslation/test/translate_from_file.test.js @@ -23,8 +23,9 @@ const cmd = 'node translate_from_file.js'; const filePath = path.join(__dirname, '..', 'resources/audio.raw'); const exec = cmd => execSync(cmd, {encoding: 'utf-8'}); +// skip this test because testing code sample is deprecated describe('MediaTranslation', () => { - it('should translate from a streamed file', async () => { + it.skip('should translate from a streamed file', async () => { const stdout = exec(`${cmd} ${filePath} linear16 en-US es-ES`); assert.include(stdout, 'Partial translation'); });