Skip to content

Commit

Permalink
Add Speech API streaming sample. (#144)
Browse files Browse the repository at this point in the history
* Add Speech API streaming example.

* Remove comment.

* Add test.

* Fix failing test.

* Rename variable.
  • Loading branch information
jmdobry committed Jun 30, 2016
1 parent f6d4b2c commit 117fe85
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
15 changes: 15 additions & 0 deletions packages/google-cloud-node/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,18 @@ Example:

[recognition_docs]: https://cloud.google.com/speech/
[recognition_code]: recognize.js

### Recognition (Streaming)

View the [documentation][recognition_streaming_docs] or the [source code][recognition_streaming_code].

__Run the sample:__

Usage: `node recognize_streaming <path-to-audio-file>`

Example:

node recognize_streaming "/path/to/audio.file"

[recognition_streaming_docs]: https://cloud.google.com/speech/
[recognition_streaming_code]: recognize_streaming.js
9 changes: 5 additions & 4 deletions packages/google-cloud-node/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
"node": ">=0.10.x"
},
"dependencies": {
"googleapis": "^7.1.0"
},
"devDependencies": {
"async": "^1.5.2"
"async": "^1.5.2",
"google-auto-auth": "^0.2.4",
"google-proto-files": "^0.2.4",
"googleapis": "^7.1.0",
"grpc": "^0.15.0"
}
}

0 comments on commit 117fe85

Please sign in to comment.