Skip to content

chore(cleanup): retire media translate samples #3325

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions mediatranslation/README.md
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion mediatranslation/test/quickstart.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
Expand Down
3 changes: 2 additions & 1 deletion mediatranslation/test/translate_from_file.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
Expand Down