Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Code Samples for new v1p1beta1 features #118

Merged
merged 53 commits into from
Jul 31, 2018
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
b823117
MicrophoneStreamTest, and basic .ava tests-
Jun 8, 2018
53cd4f0
Just cosmetic, removed some notes, added note about Event style for t…
Jun 11, 2018
d13734f
removed .test, cleaned up yaaarghs
Jun 12, 2018
709638b
Cleaned up test within MicStream.js, .ava tests forthcoming
Jun 13, 2018
a27324c
Merge branch 'master' into master
JustinBeckwith Jun 13, 2018
6c452f7
Pruned down to core streaming function, yaargs rebuilt, .ava upcoming
Jun 14, 2018
b6add2d
Merge branch 'master' of https://github.com/CallistoCF/nodejs-speech
Jun 14, 2018
6f44c0c
newest .ava test, just makes sure yaargs loads, comments addressed
Jun 15, 2018
9e0bf4c
Added Readme
CallistoCF Jul 17, 2018
ad8007c
BetaFeatures for Test, fixed from yesterday
Jul 18, 2018
3e77731
Updated Readme
CallistoCF Jul 18, 2018
3504280
Updated Readme, fixed old paths used in testing
CallistoCF Jul 18, 2018
2974091
Updated Readme again
CallistoCF Jul 18, 2018
be3869f
Updated Yaargs Examples to fit readme
CallistoCF Jul 18, 2018
0fbba57
Fixed Diarization bug
Jul 19, 2018
554af87
Merge branch 'BetaFeatures' of https://github.com/CallistoCF/nodejs-s…
Jul 19, 2018
0cad177
Merge branch 'master' into BetaFeatures
CallistoCF Jul 20, 2018
e0caf82
Merge branch 'master' of https://github.com/CallistoCF/nodejs-speech …
Jul 20, 2018
950844e
Speech Fixes
Jul 23, 2018
c365046
Merge branch 'BetaFeatures' of https://github.com/CallistoCF/nodejs-s…
Jul 23, 2018
27b42dc
fixing eslint settings to merge
Jul 23, 2018
e583e2e
eslint again
Jul 23, 2018
c3840eb
testing lint quick fix
Jul 23, 2018
054e7f8
more ESlint shennanigans
Jul 23, 2018
b3174dd
cleaned up region tags
Jul 23, 2018
37ae0a6
Removed audiochannelGCS
Jul 23, 2018
3c5ae14
Removed Comments, also multiChannel GCS
CallistoCF Jul 24, 2018
da0736f
Removed Comments, GCS MultiChannel
CallistoCF Jul 24, 2018
44d6502
Removed multi Audio Channel
CallistoCF Jul 24, 2018
45418b2
Added mono-channel multi Language file to sample
CallistoCF Jul 24, 2018
6b793e0
removed old console.log
CallistoCF Jul 24, 2018
24cdc11
fixed todos and filename -> fileName
CallistoCF Jul 24, 2018
5487a88
removed docstrings
CallistoCF Jul 24, 2018
7852924
removed enableWordTimeOffsets in WordLvlConfidence
CallistoCF Jul 24, 2018
10bad72
rebuild
Jul 25, 2018
720f8fa
fixed space
Jul 25, 2018
3a18194
Merge branch 'master' into BetaFeatures
CallistoCF Jul 25, 2018
b6fee39
fixed package.lock for node8 circleCI
Jul 26, 2018
b0b0748
Attempted fix for circleCI node 8
Jul 26, 2018
701088b
attempted mime-types fix
Jul 26, 2018
0f4ea7a
possible mime/CLI fix
Jul 31, 2018
832b91d
Merged Latest package chore stuff, for circleCI
Jul 31, 2018
9e67988
Merge branch 'master' into BetaFeatures
JustinBeckwith Jul 31, 2018
e0f9d1d
all outstanding comments, except eslint issue
Jul 31, 2018
e95c8b3
Merge branch 'BetaFeatures' of https://github.com/CallistoCF/nodejs-s…
Jul 31, 2018
cde3b24
confidence test fix
Jul 31, 2018
0331ea0
fixed eslinting in betaFeatures.js
Jul 31, 2018
0340b1e
eslint again
Jul 31, 2018
b024d2e
Fixed MultiChannel transcribe
Jul 31, 2018
f2d15c7
multiChannelGCS test
Jul 31, 2018
1808096
Updated readme
Jul 31, 2018
ed26504
updated readme, scaffolding
Jul 31, 2018
7cf0fa3
readme again
Jul 31, 2018
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
4,766 changes: 2,383 additions & 2,383 deletions package-lock.json

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,58 @@ For more information, see https://cloud.google.com/speech/docs

[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 <command>

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] [default: "./resources/commercial_mono.wav"]
--gcsUri, -u [string] [default: "gs://cloud-samples-tests/speech/commercial_mono.wav"]
--speechFileGnome, --gf [string] [default: "./resources/Google_Gnome.wav"]
--gcsUriStereo, --us [string] [default: "gs://cloud-samples-tests/speech/commercial_stereo.wav"]
--multiSpeechFile, --ms [string] [default: "./resources/multi.wav"]
--multiSpeechUri, --msu [string] [default: "gs://cloud-samples-tests/speech/multi.wav"]
--speechFileStereo, --fs [string] [default: "./samples/resources/commercial_stereo.wav"]
--brooklynBridgeSpeechFile, --bb

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

[string] [default: "./resources/brooklyn.flac"]
--brooklynBridgeSpeechFileURI, --bbu [string] [default: "gs://cloud-samples-tests/speech/brooklyn.flac"]
--help Show help [boolean]

Examples:
node betaFeatures.js Diarization
node betaFeatures.js DiarizationGCS
node betaFeatures.js multiChannelTranscribe
node betaFeatures.js multiChannelTranscribeGCS
node betaFeatures.js multiLanguageTranscribe
node betaFeatures.js multiLanguageTranscribeGCS
node betaFeatures.js wordLevelConfidence
node betaFeatures.js wordLevelConfidenceGCS

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
Loading