Skip to content

Commit 117fe85

Browse files
authored
Add Speech API streaming sample. (#144)
* Add Speech API streaming example. * Remove comment. * Add test. * Fix failing test. * Rename variable.
1 parent f6d4b2c commit 117fe85

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

packages/google-cloud-node/samples/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,18 @@ Example:
4242

4343
[recognition_docs]: https://cloud.google.com/speech/
4444
[recognition_code]: recognize.js
45+
46+
### Recognition (Streaming)
47+
48+
View the [documentation][recognition_streaming_docs] or the [source code][recognition_streaming_code].
49+
50+
__Run the sample:__
51+
52+
Usage: `node recognize_streaming <path-to-audio-file>`
53+
54+
Example:
55+
56+
node recognize_streaming "/path/to/audio.file"
57+
58+
[recognition_streaming_docs]: https://cloud.google.com/speech/
59+
[recognition_streaming_code]: recognize_streaming.js

packages/google-cloud-node/samples/package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
"node": ">=0.10.x"
1010
},
1111
"dependencies": {
12-
"googleapis": "^7.1.0"
13-
},
14-
"devDependencies": {
15-
"async": "^1.5.2"
12+
"async": "^1.5.2",
13+
"google-auto-auth": "^0.2.4",
14+
"google-proto-files": "^0.2.4",
15+
"googleapis": "^7.1.0",
16+
"grpc": "^0.15.0"
1617
}
1718
}

0 commit comments

Comments
 (0)