diff --git a/packages/google-cloud-node/.vscode/launch.json b/packages/google-cloud-node/.vscode/launch.json new file mode 100644 index 000000000000..a68670074164 --- /dev/null +++ b/packages/google-cloud-node/.vscode/launch.json @@ -0,0 +1,14 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Launch Program", + "program": "${workspaceFolder}/samples/betaFeatures.js" + } + ] +} \ No newline at end of file diff --git a/packages/google-cloud-node/CONTRIBUTORS b/packages/google-cloud-node/CONTRIBUTORS index 403c40a8bd2d..525d8704c0d2 100644 --- a/packages/google-cloud-node/CONTRIBUTORS +++ b/packages/google-cloud-node/CONTRIBUTORS @@ -6,7 +6,14 @@ Ace Nassri Alexander Fenster Ali Ijaz Sheikh +Chris Frater +Chris Frater +Chris Frater +Christopher Wilcox +Christopher Wilcox +DPE bot Dan Aharon +Daniel Ruf Daryush Laqab Dave Gramlich Eric Uldall @@ -14,14 +21,19 @@ Ernest Landrito Gus Class Jason Dobry Jerjou +Jonathan Lui Jun Mukai +Justin Beckwith Luke Sneeringer Philippe Sultan Pierre Fritsch Puneith Kaul Rebecca Taylor +Shahin Song Wang Stephen Sawchuk Tim Swast +cfrater greenkeeper[bot] +renovate[bot] wanacode diff --git a/packages/google-cloud-node/README.md b/packages/google-cloud-node/README.md index 71f388874519..ebd59210f3d1 100644 --- a/packages/google-cloud-node/README.md +++ b/packages/google-cloud-node/README.md @@ -1,3 +1,5 @@ +[//]: # "This README.md file is auto-generated, all changes to this file will be lost." +[//]: # "To regenerate it, use `npm run generate-scaffolding`." Google Cloud Platform logo # [Google Cloud Speech API: Node.js Client](https://github.com/googleapis/nodejs-speech) @@ -145,4 +147,4 @@ See [LICENSE](https://github.com/googleapis/nodejs-speech/blob/master/LICENSE) [client-docs]: https://cloud.google.com/nodejs/docs/reference/speech/latest/ [product-docs]: https://cloud.google.com/speech/docs -[shell_img]: //gstatic.com/cloudssh/images/open-btn.png +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png diff --git a/packages/google-cloud-node/package-lock.json b/packages/google-cloud-node/package-lock.json old mode 100644 new mode 100755 diff --git a/packages/google-cloud-node/package.json b/packages/google-cloud-node/package.json index 49fbbbcd619e..aa7c3f3eeca3 100644 --- a/packages/google-cloud-node/package.json +++ b/packages/google-cloud-node/package.json @@ -32,7 +32,14 @@ "Ace Nassri ", "Alexander Fenster ", "Ali Ijaz Sheikh ", + "Chris Frater ", + "Chris Frater ", + "Chris Frater ", + "Christopher Wilcox ", + "Christopher Wilcox ", + "DPE bot ", "Dan Aharon ", + "Daniel Ruf ", "Daryush Laqab ", "Dave Gramlich ", "Eric Uldall ", @@ -40,16 +47,21 @@ "Gus Class ", "Jason Dobry ", "Jerjou ", + "Jonathan Lui ", "Jun Mukai ", + "Justin Beckwith ", "Luke Sneeringer ", "Philippe Sultan ", "Pierre Fritsch ", "Puneith Kaul ", "Rebecca Taylor ", + "Shahin ", "Song Wang ", "Stephen Sawchuk ", "Tim Swast ", + "cfrater ", "greenkeeper[bot] ", + "renovate[bot] ", "wanacode " ], "scripts": { diff --git a/packages/google-cloud-node/samples/README.md b/packages/google-cloud-node/samples/README.md index 4b8fb0c9357c..1acc3006fc61 100644 --- a/packages/google-cloud-node/samples/README.md +++ b/packages/google-cloud-node/samples/README.md @@ -1,3 +1,5 @@ +[//]: # "This README.md file is auto-generated, all changes to this file will be lost." +[//]: # "To regenerate it, use `npm run generate-scaffolding`." Google Cloud Platform logo # Google Cloud Speech API: Node.js Samples @@ -78,9 +80,12 @@ __Usage:__ `node recognize.v1p1beta1.js --help` recognize.v1p1beta1.js Commands: - recognize.v1p1beta1.js sync-model Detects speech in a local audio file using provided model. - recognize.v1p1beta1.js sync-model-gcs Detects speech in an audio file located in a Google Cloud - Storage bucket using provided model. + recognize.v1p1beta1.js sync-model Detects speech in a local audio file using provided model. + recognize.v1p1beta1.js sync-model-gcs Detects speech in an audio file located in a Google Cloud + Storage bucket using provided model. + recognize.v1p1beta1.js sync-auto-punctuation Detects speech in a local audio file with auto punctuation. + recognize.v1p1beta1.js sync-metadata Detects speech in a local audio file with metadata. + recognize.v1p1beta1.js sync-enhanced-model Detects speech in a local audio file using an enhanced model. Options: --version Show version number [boolean] @@ -92,6 +97,9 @@ Options: Examples: node recognize.v1p1beta1.js sync-model ./resources/Google_Gnome.wav video -e LINEAR16 -r 16000 node recognize.v1p1beta1.js sync-model-gcs gs://gcs-test-data/Google_Gnome.wav phone_call -e FLAC -r 16000 + node recognize.v1p1beta1.js sync-auto-punctuation ./resources/commercial_mono.wav + node recognize.v1p1beta1.js sync-metadata ./resources/commercial_mono.wav + node recognize.v1p1beta1.js sync-enhanced-model ./resources/commercial_mono.wav For more information, see https://cloud.google.com/speech/docs ``` @@ -99,5 +107,53 @@ For more information, see https://cloud.google.com/speech/docs [recognize.v1p1beta1_1_docs]: https://cloud.google.com/speech/docs [recognize.v1p1beta1_1_code]: recognize.v1p1beta1.js +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png +[shell_img]: //gstatic.com/cloudssh/images/open-btn.png +[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/README.md + +### Speech Recognition betaFeatures + +View the [source code][betaFeatures_code]. + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/betaFeatures.js,samples/README.md) + +__Usage:__ `node betaFeatures.js --help` + +``` +betaFeatures.js + +Commands: + betaFeatures.js Diarization Isolate distinct speakers in an audio file + betaFeatures.js DiarizationGCS Isolate distinct speakers in an audio file located in a Google Cloud + Storage bucket. + betaFeatures.js multiChannelTranscribe Differentiates input by audio channel in local audio file. + betaFeatures.js multiChannelTranscribeGCS Differentiates input by audio channe from GCS audio file. + betaFeatures.js multiLanguageTranscribe Transcribes multiple languages from local audio file. + betaFeatures.js multiLanguageTranscribeGCS Transcribes multiple languages from GCS audio file. + betaFeatures.js wordLevelConfidence Detects word level confidence from local audio file. + betaFeatures.js wordLevelConfidenceGCS Detects word level confidence from GCS audio file. + +Options: + --version Show version number [boolean] + --speechFile, -f [string] + --gcsUri, -u [string] + --help Show help [boolean] + +Examples: + node betaFeatures.js Diarization -f ./resources/commercial_mono.wav + node betaFeatures.js DiarizationGCS -u gs://cloud-samples-tests/speech/commercial_mono.wav + node betaFeatures.js multiChannelTranscribe -f ./resources/commercial_stereo.wav + node betaFeatures.js multiChannelTranscribeGCS -u gs://cloud-samples-tests/speech/commercial_stereo.wav + node betaFeatures.js multiLanguageTranscribe -f ./resources/multi.wav + node betaFeatures.js multiLanguageTranscribeGCS -u gs://nodejs-docs-samples/multi_mono.wav + node betaFeatures.js wordLevelConfidence -f ./resources/brooklyn.flac + node betaFeatures.js wordLevelConfidenceGCS -u gs://cloud-samples-tests/speech/brooklyn.flac + +For more information, see https://cloud.google.com/speech/docs +``` + +[betaFeatures_docs]: https://cloud.google.com/speech/docs +[betaFeatures_code]: recognize.v1p1beta1.js + [shell_img]: //gstatic.com/cloudssh/images/open-btn.png [shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/README.md diff --git a/packages/google-cloud-node/samples/package.json b/packages/google-cloud-node/samples/package.json old mode 100644 new mode 100755