Skip to content

Commit

Permalink
Speech v1 WordTimeOffset GAPIC. (#2493)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesneeringer authored and stephenplusplus committed Jul 28, 2017
1 parent eb67859 commit 105f28b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
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;

0 comments on commit 105f28b

Please sign in to comment.