-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add release-please config, fix owlbot-config
- Loading branch information
Showing
11 changed files
with
143 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
[//]: # "This README.md file is auto-generated, all changes to this file will be lost." | ||
[//]: # "To regenerate it, use `python -m synthtool`." | ||
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/> | ||
|
||
# [Cloud Media Translation: Node.js Samples](https://github.com/googleapis/google-cloud-node) | ||
|
||
[![Open in Cloud Shell][shell_img]][shell_link] | ||
|
||
|
||
|
||
## Table of Contents | ||
|
||
* [Before you begin](#before-you-begin) | ||
* [Samples](#samples) | ||
* [Speech_translation_service.streaming_translate_speech](#speech_translation_service.streaming_translate_speech) | ||
|
||
## Before you begin | ||
|
||
Before running the samples, make sure you've followed the steps outlined in | ||
[Using the client library](https://github.com/googleapis/google-cloud-node#using-the-client-library). | ||
|
||
`cd samples` | ||
|
||
`npm install` | ||
|
||
`cd ..` | ||
|
||
## Samples | ||
|
||
|
||
|
||
### Speech_translation_service.streaming_translate_speech | ||
|
||
View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1beta1/speech_translation_service.streaming_translate_speech.js). | ||
|
||
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1beta1/speech_translation_service.streaming_translate_speech.js,samples/README.md) | ||
|
||
__Usage:__ | ||
|
||
|
||
`node /workspace/google-cloud-node/samples/generated/v1beta1/speech_translation_service.streaming_translate_speech.js` | ||
|
||
|
||
|
||
|
||
|
||
|
||
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png | ||
[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=samples/README.md | ||
[product-docs]: https://cloud.google.com/translate/media/docs/ |
59 changes: 59 additions & 0 deletions
59
packages/google-cloud-mediatranslation/samples/quickstart.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"clientLibrary": { | ||
"name": "nodejs-mediatranslation", | ||
"version": "3.0.5", | ||
"language": "TYPESCRIPT", | ||
"apis": [ | ||
{ | ||
"id": "google.cloud.mediatranslation.v1beta1", | ||
"version": "v1beta1" | ||
} | ||
] | ||
}, | ||
"snippets": [ | ||
{ | ||
"regionTag": "mediatranslation_v1beta1_generated_SpeechTranslationService_StreamingTranslateSpeech_async", | ||
"title": "SpeechTranslationService streamingTranslateSpeech Sample", | ||
"origin": "API_DEFINITION", | ||
"description": " Performs bidirectional streaming speech translation: receive results while sending audio. This method is only available via the gRPC API (not REST).", | ||
"canonical": true, | ||
"file": "speech_translation_service.streaming_translate_speech.js", | ||
"language": "JAVASCRIPT", | ||
"segments": [ | ||
{ | ||
"start": 25, | ||
"end": 69, | ||
"type": "FULL" | ||
} | ||
], | ||
"clientMethod": { | ||
"shortName": "StreamingTranslateSpeech", | ||
"fullName": "google.cloud.mediatranslation.v1beta1.SpeechTranslationService.StreamingTranslateSpeech", | ||
"async": true, | ||
"parameters": [ | ||
{ | ||
"name": "streaming_config", | ||
"type": ".google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig" | ||
}, | ||
{ | ||
"name": "audio_content", | ||
"type": "TYPE_BYTES" | ||
} | ||
], | ||
"resultType": ".google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse", | ||
"client": { | ||
"shortName": "SpeechTranslationServiceClient", | ||
"fullName": "google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceClient" | ||
}, | ||
"method": { | ||
"shortName": "StreamingTranslateSpeech", | ||
"fullName": "google.cloud.mediatranslation.v1beta1.SpeechTranslationService.StreamingTranslateSpeech", | ||
"service": { | ||
"shortName": "SpeechTranslationService", | ||
"fullName": "google.cloud.mediatranslation.v1beta1.SpeechTranslationService" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters