Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
fix: streaming mic sample
Browse files Browse the repository at this point in the history
  • Loading branch information
telpirion authored May 27, 2020
1 parent be9820a commit 488c235
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .repo-metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mediatranslation",
"name_pretty": "Cloud Media Translation",
"product_documentation": "https://cloud.google.com/mediatranslation/docs/",
"product_documentation": "https://cloud.google.com/translate/media/docs/",
"client_documentation": "https://googleapis.dev/nodejs/mediatranslation/latest",
"issue_tracker": "https://issuetracker.google.com/savedsearches/559749",
"release_level": "beta",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ Apache Version 2.0
See [LICENSE](https://github.com/googleapis/nodejs-media-translation/blob/master/LICENSE)
[client-docs]: https://googleapis.dev/nodejs/mediatranslation/latest
[product-docs]: https://cloud.google.com/mediatranslation/docs/
[product-docs]: https://cloud.google.com/translate/media/docs/
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
[projects]: https://console.cloud.google.com/project
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
Expand Down
3 changes: 1 addition & 2 deletions linkinator.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"skip": [
"https://codecov.io/gh/googleapis/",
"www.googleapis.com",
"img.shields.io",
"https://cloud.google.com/mediatranslation/docs"
"img.shields.io"
],
"silent": true,
"concurrency": 10
Expand Down
4 changes: 1 addition & 3 deletions samples/translate_from_mic.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ function main(encoding, sampleRateHertz, sourceLanguage, targetLanguage) {
audioContent: chunk.toString('base64'),
};
stream.write(request);
})
.on('error', console.log)
.pipe(stream);
});

console.log('Listening, press Ctrl+C to stop.');
}
Expand Down

0 comments on commit 488c235

Please sign in to comment.