Skip to content

Commit 105f28b

Browse files
lukesneeringerstephenplusplus
authored andcommitted
Speech v1 WordTimeOffset GAPIC. (#2493)
1 parent eb67859 commit 105f28b

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

packages/speech/src/v1/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function v1(options) {
2727
return speechClient(gaxGrpc);
2828
}
2929

30-
v1.GAPIC_VERSION = '0.7.1';
30+
v1.GAPIC_VERSION = '0.10.0';
3131
v1.SERVICE_ADDRESS = speechClient.SERVICE_ADDRESS;
3232
v1.ALL_SCOPES = speechClient.ALL_SCOPES;
3333

packages/speech/src/v1/speech_client.js

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var SERVICE_ADDRESS = 'speech.googleapis.com';
3535

3636
var DEFAULT_SERVICE_PORT = 443;
3737

38-
var CODE_GEN_NAME_VERSION = 'gapic/0.7.1';
38+
var CODE_GEN_NAME_VERSION = 'gapic/0.10.0';
3939

4040
var STREAM_DESCRIPTORS = {
4141
streamingRecognize: new gax.StreamDescriptor(gax.StreamType.BIDI_STREAMING)
@@ -272,6 +272,23 @@ SpeechClient.prototype.recognize = function(request, options, callback) {
272272
* console.error(err);
273273
* });
274274
*
275+
* var encoding = speech.v1.types.RecognitionConfig.AudioEncoding.FLAC;
276+
* var sampleRateHertz = 44100;
277+
* var languageCode = 'en-US';
278+
* var config = {
279+
* encoding : encoding,
280+
* sampleRateHertz : sampleRateHertz,
281+
* languageCode : languageCode
282+
* };
283+
* var uri = 'gs://bucket_name/file_name.flac';
284+
* var audio = {
285+
* uri : uri
286+
* };
287+
* var request = {
288+
* config: config,
289+
* audio: audio
290+
* };
291+
*
275292
* // Handle the operation using the event emitter pattern.
276293
* client.longRunningRecognize(request).then(function(responses) {
277294
* var operation = responses[0];
@@ -378,4 +395,4 @@ function SpeechClientBuilder(gaxGrpc) {
378395
}
379396
module.exports = SpeechClientBuilder;
380397
module.exports.SERVICE_ADDRESS = SERVICE_ADDRESS;
381-
module.exports.ALL_SCOPES = ALL_SCOPES;
398+
module.exports.ALL_SCOPES = ALL_SCOPES;

0 commit comments

Comments
 (0)