Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion packages/speech/src/v1/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function v1(options) {
return speechClient(gaxGrpc);
}

v1.GAPIC_VERSION = '0.7.1';
v1.GAPIC_VERSION = '0.10.0';
v1.SERVICE_ADDRESS = speechClient.SERVICE_ADDRESS;
v1.ALL_SCOPES = speechClient.ALL_SCOPES;

Expand Down
21 changes: 19 additions & 2 deletions packages/speech/src/v1/speech_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var SERVICE_ADDRESS = 'speech.googleapis.com';

var DEFAULT_SERVICE_PORT = 443;

var CODE_GEN_NAME_VERSION = 'gapic/0.7.1';
var CODE_GEN_NAME_VERSION = 'gapic/0.10.0';

var STREAM_DESCRIPTORS = {
streamingRecognize: new gax.StreamDescriptor(gax.StreamType.BIDI_STREAMING)
Expand Down Expand Up @@ -272,6 +272,23 @@ SpeechClient.prototype.recognize = function(request, options, callback) {
* console.error(err);
* });
*
* var encoding = speech.v1.types.RecognitionConfig.AudioEncoding.FLAC;
* var sampleRateHertz = 44100;
* var languageCode = 'en-US';
* var config = {
* encoding : encoding,
* sampleRateHertz : sampleRateHertz,
* languageCode : languageCode
* };
* var uri = 'gs://bucket_name/file_name.flac';
* var audio = {
* uri : uri
* };
* var request = {
* config: config,
* audio: audio
* };
*
* // Handle the operation using the event emitter pattern.
* client.longRunningRecognize(request).then(function(responses) {
* var operation = responses[0];
Expand Down Expand Up @@ -378,4 +395,4 @@ function SpeechClientBuilder(gaxGrpc) {
}
module.exports = SpeechClientBuilder;
module.exports.SERVICE_ADDRESS = SERVICE_ADDRESS;
module.exports.ALL_SCOPES = ALL_SCOPES;
module.exports.ALL_SCOPES = ALL_SCOPES;