@ondewo/s2t-client-typescript 5.3.0 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66,6 +66,7 @@ goog.exportSymbol('proto.ondewo.s2t.TranscribeStreamRequest', null, global);
66
66
  goog.exportSymbol('proto.ondewo.s2t.TranscribeStreamResponse', null, global);
67
67
  goog.exportSymbol('proto.ondewo.s2t.TranscribeStreamResponse.OneofConfigCase', null, global);
68
68
  goog.exportSymbol('proto.ondewo.s2t.Transcription', null, global);
69
+ goog.exportSymbol('proto.ondewo.s2t.TranscriptionAlternative', null, global);
69
70
  goog.exportSymbol('proto.ondewo.s2t.TranscriptionReturnOptions', null, global);
70
71
  goog.exportSymbol('proto.ondewo.s2t.UtteranceDetectionOptions', null, global);
71
72
  goog.exportSymbol('proto.ondewo.s2t.UtteranceDetectionOptions.OneofTranscribeNotFinalCase', null, global);
@@ -74,7 +75,8 @@ goog.exportSymbol('proto.ondewo.s2t.Wav2Vec', null, global);
74
75
  goog.exportSymbol('proto.ondewo.s2t.Wav2VecTriton', null, global);
75
76
  goog.exportSymbol('proto.ondewo.s2t.Whisper', null, global);
76
77
  goog.exportSymbol('proto.ondewo.s2t.WhisperTriton', null, global);
77
- goog.exportSymbol('proto.ondewo.s2t.WordTiming', null, global);
78
+ goog.exportSymbol('proto.ondewo.s2t.WordAlternative', null, global);
79
+ goog.exportSymbol('proto.ondewo.s2t.WordDetail', null, global);
78
80
  /**
79
81
  * Generated by JsPbCodeGenerator.
80
82
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -169,16 +171,16 @@ if (goog.DEBUG && !COMPILED) {
169
171
  * @extends {jspb.Message}
170
172
  * @constructor
171
173
  */
172
- proto.ondewo.s2t.TranscribeStreamRequest = function(opt_data) {
173
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
174
+ proto.ondewo.s2t.Transcription = function(opt_data) {
175
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.s2t.Transcription.repeatedFields_, null);
174
176
  };
175
- goog.inherits(proto.ondewo.s2t.TranscribeStreamRequest, jspb.Message);
177
+ goog.inherits(proto.ondewo.s2t.Transcription, jspb.Message);
176
178
  if (goog.DEBUG && !COMPILED) {
177
179
  /**
178
180
  * @public
179
181
  * @override
180
182
  */
181
- proto.ondewo.s2t.TranscribeStreamRequest.displayName = 'proto.ondewo.s2t.TranscribeStreamRequest';
183
+ proto.ondewo.s2t.Transcription.displayName = 'proto.ondewo.s2t.Transcription';
182
184
  }
183
185
  /**
184
186
  * Generated by JsPbCodeGenerator.
@@ -190,16 +192,16 @@ if (goog.DEBUG && !COMPILED) {
190
192
  * @extends {jspb.Message}
191
193
  * @constructor
192
194
  */
193
- proto.ondewo.s2t.Transcription = function(opt_data) {
194
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
195
+ proto.ondewo.s2t.TranscriptionAlternative = function(opt_data) {
196
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.s2t.TranscriptionAlternative.repeatedFields_, null);
195
197
  };
196
- goog.inherits(proto.ondewo.s2t.Transcription, jspb.Message);
198
+ goog.inherits(proto.ondewo.s2t.TranscriptionAlternative, jspb.Message);
197
199
  if (goog.DEBUG && !COMPILED) {
198
200
  /**
199
201
  * @public
200
202
  * @override
201
203
  */
202
- proto.ondewo.s2t.Transcription.displayName = 'proto.ondewo.s2t.Transcription';
204
+ proto.ondewo.s2t.TranscriptionAlternative.displayName = 'proto.ondewo.s2t.TranscriptionAlternative';
203
205
  }
204
206
  /**
205
207
  * Generated by JsPbCodeGenerator.
@@ -211,16 +213,16 @@ if (goog.DEBUG && !COMPILED) {
211
213
  * @extends {jspb.Message}
212
214
  * @constructor
213
215
  */
214
- proto.ondewo.s2t.TranscribeStreamResponse = function(opt_data) {
215
- jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.s2t.TranscribeStreamResponse.repeatedFields_, proto.ondewo.s2t.TranscribeStreamResponse.oneofGroups_);
216
+ proto.ondewo.s2t.WordDetail = function(opt_data) {
217
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.s2t.WordDetail.repeatedFields_, null);
216
218
  };
217
- goog.inherits(proto.ondewo.s2t.TranscribeStreamResponse, jspb.Message);
219
+ goog.inherits(proto.ondewo.s2t.WordDetail, jspb.Message);
218
220
  if (goog.DEBUG && !COMPILED) {
219
221
  /**
220
222
  * @public
221
223
  * @override
222
224
  */
223
- proto.ondewo.s2t.TranscribeStreamResponse.displayName = 'proto.ondewo.s2t.TranscribeStreamResponse';
225
+ proto.ondewo.s2t.WordDetail.displayName = 'proto.ondewo.s2t.WordDetail';
224
226
  }
225
227
  /**
226
228
  * Generated by JsPbCodeGenerator.
@@ -232,16 +234,16 @@ if (goog.DEBUG && !COMPILED) {
232
234
  * @extends {jspb.Message}
233
235
  * @constructor
234
236
  */
235
- proto.ondewo.s2t.TranscribeFileRequest = function(opt_data) {
237
+ proto.ondewo.s2t.WordAlternative = function(opt_data) {
236
238
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
237
239
  };
238
- goog.inherits(proto.ondewo.s2t.TranscribeFileRequest, jspb.Message);
240
+ goog.inherits(proto.ondewo.s2t.WordAlternative, jspb.Message);
239
241
  if (goog.DEBUG && !COMPILED) {
240
242
  /**
241
243
  * @public
242
244
  * @override
243
245
  */
244
- proto.ondewo.s2t.TranscribeFileRequest.displayName = 'proto.ondewo.s2t.TranscribeFileRequest';
246
+ proto.ondewo.s2t.WordAlternative.displayName = 'proto.ondewo.s2t.WordAlternative';
245
247
  }
246
248
  /**
247
249
  * Generated by JsPbCodeGenerator.
@@ -253,16 +255,37 @@ if (goog.DEBUG && !COMPILED) {
253
255
  * @extends {jspb.Message}
254
256
  * @constructor
255
257
  */
256
- proto.ondewo.s2t.TranscribeFileResponse = function(opt_data) {
257
- jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.s2t.TranscribeFileResponse.repeatedFields_, null);
258
+ proto.ondewo.s2t.TranscribeStreamRequest = function(opt_data) {
259
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
258
260
  };
259
- goog.inherits(proto.ondewo.s2t.TranscribeFileResponse, jspb.Message);
261
+ goog.inherits(proto.ondewo.s2t.TranscribeStreamRequest, jspb.Message);
260
262
  if (goog.DEBUG && !COMPILED) {
261
263
  /**
262
264
  * @public
263
265
  * @override
264
266
  */
265
- proto.ondewo.s2t.TranscribeFileResponse.displayName = 'proto.ondewo.s2t.TranscribeFileResponse';
267
+ proto.ondewo.s2t.TranscribeStreamRequest.displayName = 'proto.ondewo.s2t.TranscribeStreamRequest';
268
+ }
269
+ /**
270
+ * Generated by JsPbCodeGenerator.
271
+ * @param {Array=} opt_data Optional initial data array, typically from a
272
+ * server response, or constructed directly in Javascript. The array is used
273
+ * in place and becomes part of the constructed object. It is not cloned.
274
+ * If no data is provided, the constructed object will be empty, but still
275
+ * valid.
276
+ * @extends {jspb.Message}
277
+ * @constructor
278
+ */
279
+ proto.ondewo.s2t.TranscribeStreamResponse = function(opt_data) {
280
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.s2t.TranscribeStreamResponse.repeatedFields_, proto.ondewo.s2t.TranscribeStreamResponse.oneofGroups_);
281
+ };
282
+ goog.inherits(proto.ondewo.s2t.TranscribeStreamResponse, jspb.Message);
283
+ if (goog.DEBUG && !COMPILED) {
284
+ /**
285
+ * @public
286
+ * @override
287
+ */
288
+ proto.ondewo.s2t.TranscribeStreamResponse.displayName = 'proto.ondewo.s2t.TranscribeStreamResponse';
266
289
  }
267
290
  /**
268
291
  * Generated by JsPbCodeGenerator.
@@ -274,16 +297,37 @@ if (goog.DEBUG && !COMPILED) {
274
297
  * @extends {jspb.Message}
275
298
  * @constructor
276
299
  */
277
- proto.ondewo.s2t.WordTiming = function(opt_data) {
300
+ proto.ondewo.s2t.TranscribeFileRequest = function(opt_data) {
278
301
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
279
302
  };
280
- goog.inherits(proto.ondewo.s2t.WordTiming, jspb.Message);
303
+ goog.inherits(proto.ondewo.s2t.TranscribeFileRequest, jspb.Message);
304
+ if (goog.DEBUG && !COMPILED) {
305
+ /**
306
+ * @public
307
+ * @override
308
+ */
309
+ proto.ondewo.s2t.TranscribeFileRequest.displayName = 'proto.ondewo.s2t.TranscribeFileRequest';
310
+ }
311
+ /**
312
+ * Generated by JsPbCodeGenerator.
313
+ * @param {Array=} opt_data Optional initial data array, typically from a
314
+ * server response, or constructed directly in Javascript. The array is used
315
+ * in place and becomes part of the constructed object. It is not cloned.
316
+ * If no data is provided, the constructed object will be empty, but still
317
+ * valid.
318
+ * @extends {jspb.Message}
319
+ * @constructor
320
+ */
321
+ proto.ondewo.s2t.TranscribeFileResponse = function(opt_data) {
322
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.s2t.TranscribeFileResponse.repeatedFields_, null);
323
+ };
324
+ goog.inherits(proto.ondewo.s2t.TranscribeFileResponse, jspb.Message);
281
325
  if (goog.DEBUG && !COMPILED) {
282
326
  /**
283
327
  * @public
284
328
  * @override
285
329
  */
286
- proto.ondewo.s2t.WordTiming.displayName = 'proto.ondewo.s2t.WordTiming';
330
+ proto.ondewo.s2t.TranscribeFileResponse.displayName = 'proto.ondewo.s2t.TranscribeFileResponse';
287
331
  }
288
332
  /**
289
333
  * Generated by JsPbCodeGenerator.
@@ -2447,6 +2491,13 @@ proto.ondewo.s2t.PostProcessingOptions.prototype.hasConfig = function() {
2447
2491
 
2448
2492
 
2449
2493
 
2494
+ /**
2495
+ * List of repeated fields within this message type.
2496
+ * @private {!Array<number>}
2497
+ * @const
2498
+ */
2499
+ proto.ondewo.s2t.Transcription.repeatedFields_ = [3,4];
2500
+
2450
2501
 
2451
2502
 
2452
2503
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -2462,8 +2513,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
2462
2513
  * http://goto/soy-param-migration
2463
2514
  * @return {!Object}
2464
2515
  */
2465
- proto.ondewo.s2t.TranscribeStreamRequest.prototype.toObject = function(opt_includeInstance) {
2466
- return proto.ondewo.s2t.TranscribeStreamRequest.toObject(opt_includeInstance, this);
2516
+ proto.ondewo.s2t.Transcription.prototype.toObject = function(opt_includeInstance) {
2517
+ return proto.ondewo.s2t.Transcription.toObject(opt_includeInstance, this);
2467
2518
  };
2468
2519
 
2469
2520
 
@@ -2472,16 +2523,18 @@ proto.ondewo.s2t.TranscribeStreamRequest.prototype.toObject = function(opt_inclu
2472
2523
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2473
2524
  * the JSPB instance for transitional soy proto support:
2474
2525
  * http://goto/soy-param-migration
2475
- * @param {!proto.ondewo.s2t.TranscribeStreamRequest} msg The msg instance to transform.
2526
+ * @param {!proto.ondewo.s2t.Transcription} msg The msg instance to transform.
2476
2527
  * @return {!Object}
2477
2528
  * @suppress {unusedLocalVariables} f is only used for nested messages
2478
2529
  */
2479
- proto.ondewo.s2t.TranscribeStreamRequest.toObject = function(includeInstance, msg) {
2530
+ proto.ondewo.s2t.Transcription.toObject = function(includeInstance, msg) {
2480
2531
  var f, obj = {
2481
- audioChunk: msg.getAudioChunk_asB64(),
2482
- endOfStream: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
2483
- config: (f = msg.getConfig()) && proto.ondewo.s2t.TranscribeRequestConfig.toObject(includeInstance, f),
2484
- muteAudio: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
2532
+ transcription: jspb.Message.getFieldWithDefault(msg, 1, ""),
2533
+ confidenceScore: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
2534
+ wordsList: jspb.Message.toObjectList(msg.getWordsList(),
2535
+ proto.ondewo.s2t.WordDetail.toObject, includeInstance),
2536
+ alternativesList: jspb.Message.toObjectList(msg.getAlternativesList(),
2537
+ proto.ondewo.s2t.TranscriptionAlternative.toObject, includeInstance)
2485
2538
  };
2486
2539
 
2487
2540
  if (includeInstance) {
@@ -2495,23 +2548,23 @@ proto.ondewo.s2t.TranscribeStreamRequest.toObject = function(includeInstance, ms
2495
2548
  /**
2496
2549
  * Deserializes binary data (in protobuf wire format).
2497
2550
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2498
- * @return {!proto.ondewo.s2t.TranscribeStreamRequest}
2551
+ * @return {!proto.ondewo.s2t.Transcription}
2499
2552
  */
2500
- proto.ondewo.s2t.TranscribeStreamRequest.deserializeBinary = function(bytes) {
2553
+ proto.ondewo.s2t.Transcription.deserializeBinary = function(bytes) {
2501
2554
  var reader = new jspb.BinaryReader(bytes);
2502
- var msg = new proto.ondewo.s2t.TranscribeStreamRequest;
2503
- return proto.ondewo.s2t.TranscribeStreamRequest.deserializeBinaryFromReader(msg, reader);
2555
+ var msg = new proto.ondewo.s2t.Transcription;
2556
+ return proto.ondewo.s2t.Transcription.deserializeBinaryFromReader(msg, reader);
2504
2557
  };
2505
2558
 
2506
2559
 
2507
2560
  /**
2508
2561
  * Deserializes binary data (in protobuf wire format) from the
2509
2562
  * given reader into the given message object.
2510
- * @param {!proto.ondewo.s2t.TranscribeStreamRequest} msg The message object to deserialize into.
2563
+ * @param {!proto.ondewo.s2t.Transcription} msg The message object to deserialize into.
2511
2564
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2512
- * @return {!proto.ondewo.s2t.TranscribeStreamRequest}
2565
+ * @return {!proto.ondewo.s2t.Transcription}
2513
2566
  */
2514
- proto.ondewo.s2t.TranscribeStreamRequest.deserializeBinaryFromReader = function(msg, reader) {
2567
+ proto.ondewo.s2t.Transcription.deserializeBinaryFromReader = function(msg, reader) {
2515
2568
  while (reader.nextField()) {
2516
2569
  if (reader.isEndGroup()) {
2517
2570
  break;
@@ -2519,21 +2572,22 @@ proto.ondewo.s2t.TranscribeStreamRequest.deserializeBinaryFromReader = function(
2519
2572
  var field = reader.getFieldNumber();
2520
2573
  switch (field) {
2521
2574
  case 1:
2522
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
2523
- msg.setAudioChunk(value);
2575
+ var value = /** @type {string} */ (reader.readString());
2576
+ msg.setTranscription(value);
2524
2577
  break;
2525
2578
  case 2:
2526
- var value = /** @type {boolean} */ (reader.readBool());
2527
- msg.setEndOfStream(value);
2579
+ var value = /** @type {number} */ (reader.readFloat());
2580
+ msg.setConfidenceScore(value);
2528
2581
  break;
2529
2582
  case 3:
2530
- var value = new proto.ondewo.s2t.TranscribeRequestConfig;
2531
- reader.readMessage(value,proto.ondewo.s2t.TranscribeRequestConfig.deserializeBinaryFromReader);
2532
- msg.setConfig(value);
2583
+ var value = new proto.ondewo.s2t.WordDetail;
2584
+ reader.readMessage(value,proto.ondewo.s2t.WordDetail.deserializeBinaryFromReader);
2585
+ msg.addWords(value);
2533
2586
  break;
2534
2587
  case 4:
2535
- var value = /** @type {boolean} */ (reader.readBool());
2536
- msg.setMuteAudio(value);
2588
+ var value = new proto.ondewo.s2t.TranscriptionAlternative;
2589
+ reader.readMessage(value,proto.ondewo.s2t.TranscriptionAlternative.deserializeBinaryFromReader);
2590
+ msg.addAlternatives(value);
2537
2591
  break;
2538
2592
  default:
2539
2593
  reader.skipField();
@@ -2548,9 +2602,9 @@ proto.ondewo.s2t.TranscribeStreamRequest.deserializeBinaryFromReader = function(
2548
2602
  * Serializes the message to binary data (in protobuf wire format).
2549
2603
  * @return {!Uint8Array}
2550
2604
  */
2551
- proto.ondewo.s2t.TranscribeStreamRequest.prototype.serializeBinary = function() {
2605
+ proto.ondewo.s2t.Transcription.prototype.serializeBinary = function() {
2552
2606
  var writer = new jspb.BinaryWriter();
2553
- proto.ondewo.s2t.TranscribeStreamRequest.serializeBinaryToWriter(this, writer);
2607
+ proto.ondewo.s2t.Transcription.serializeBinaryToWriter(this, writer);
2554
2608
  return writer.getResultBuffer();
2555
2609
  };
2556
2610
 
@@ -2558,160 +2612,165 @@ proto.ondewo.s2t.TranscribeStreamRequest.prototype.serializeBinary = function()
2558
2612
  /**
2559
2613
  * Serializes the given message to binary data (in protobuf wire
2560
2614
  * format), writing to the given BinaryWriter.
2561
- * @param {!proto.ondewo.s2t.TranscribeStreamRequest} message
2615
+ * @param {!proto.ondewo.s2t.Transcription} message
2562
2616
  * @param {!jspb.BinaryWriter} writer
2563
2617
  * @suppress {unusedLocalVariables} f is only used for nested messages
2564
2618
  */
2565
- proto.ondewo.s2t.TranscribeStreamRequest.serializeBinaryToWriter = function(message, writer) {
2619
+ proto.ondewo.s2t.Transcription.serializeBinaryToWriter = function(message, writer) {
2566
2620
  var f = undefined;
2567
- f = message.getAudioChunk_asU8();
2621
+ f = message.getTranscription();
2568
2622
  if (f.length > 0) {
2569
- writer.writeBytes(
2623
+ writer.writeString(
2570
2624
  1,
2571
2625
  f
2572
2626
  );
2573
2627
  }
2574
- f = message.getEndOfStream();
2575
- if (f) {
2576
- writer.writeBool(
2628
+ f = message.getConfidenceScore();
2629
+ if (f !== 0.0) {
2630
+ writer.writeFloat(
2577
2631
  2,
2578
2632
  f
2579
2633
  );
2580
2634
  }
2581
- f = message.getConfig();
2582
- if (f != null) {
2583
- writer.writeMessage(
2635
+ f = message.getWordsList();
2636
+ if (f.length > 0) {
2637
+ writer.writeRepeatedMessage(
2584
2638
  3,
2585
2639
  f,
2586
- proto.ondewo.s2t.TranscribeRequestConfig.serializeBinaryToWriter
2640
+ proto.ondewo.s2t.WordDetail.serializeBinaryToWriter
2587
2641
  );
2588
2642
  }
2589
- f = message.getMuteAudio();
2590
- if (f) {
2591
- writer.writeBool(
2643
+ f = message.getAlternativesList();
2644
+ if (f.length > 0) {
2645
+ writer.writeRepeatedMessage(
2592
2646
  4,
2593
- f
2647
+ f,
2648
+ proto.ondewo.s2t.TranscriptionAlternative.serializeBinaryToWriter
2594
2649
  );
2595
2650
  }
2596
2651
  };
2597
2652
 
2598
2653
 
2599
2654
  /**
2600
- * optional bytes audio_chunk = 1;
2601
- * @return {!(string|Uint8Array)}
2655
+ * optional string transcription = 1;
2656
+ * @return {string}
2602
2657
  */
2603
- proto.ondewo.s2t.TranscribeStreamRequest.prototype.getAudioChunk = function() {
2604
- return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2658
+ proto.ondewo.s2t.Transcription.prototype.getTranscription = function() {
2659
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2605
2660
  };
2606
2661
 
2607
2662
 
2608
2663
  /**
2609
- * optional bytes audio_chunk = 1;
2610
- * This is a type-conversion wrapper around `getAudioChunk()`
2611
- * @return {string}
2664
+ * @param {string} value
2665
+ * @return {!proto.ondewo.s2t.Transcription} returns this
2612
2666
  */
2613
- proto.ondewo.s2t.TranscribeStreamRequest.prototype.getAudioChunk_asB64 = function() {
2614
- return /** @type {string} */ (jspb.Message.bytesAsB64(
2615
- this.getAudioChunk()));
2667
+ proto.ondewo.s2t.Transcription.prototype.setTranscription = function(value) {
2668
+ return jspb.Message.setProto3StringField(this, 1, value);
2616
2669
  };
2617
2670
 
2618
2671
 
2619
2672
  /**
2620
- * optional bytes audio_chunk = 1;
2621
- * Note that Uint8Array is not supported on all browsers.
2622
- * @see http://caniuse.com/Uint8Array
2623
- * This is a type-conversion wrapper around `getAudioChunk()`
2624
- * @return {!Uint8Array}
2673
+ * optional float confidence_score = 2;
2674
+ * @return {number}
2625
2675
  */
2626
- proto.ondewo.s2t.TranscribeStreamRequest.prototype.getAudioChunk_asU8 = function() {
2627
- return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
2628
- this.getAudioChunk()));
2676
+ proto.ondewo.s2t.Transcription.prototype.getConfidenceScore = function() {
2677
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
2629
2678
  };
2630
2679
 
2631
2680
 
2632
2681
  /**
2633
- * @param {!(string|Uint8Array)} value
2634
- * @return {!proto.ondewo.s2t.TranscribeStreamRequest} returns this
2682
+ * @param {number} value
2683
+ * @return {!proto.ondewo.s2t.Transcription} returns this
2635
2684
  */
2636
- proto.ondewo.s2t.TranscribeStreamRequest.prototype.setAudioChunk = function(value) {
2637
- return jspb.Message.setProto3BytesField(this, 1, value);
2685
+ proto.ondewo.s2t.Transcription.prototype.setConfidenceScore = function(value) {
2686
+ return jspb.Message.setProto3FloatField(this, 2, value);
2638
2687
  };
2639
2688
 
2640
2689
 
2641
2690
  /**
2642
- * optional bool end_of_stream = 2;
2643
- * @return {boolean}
2691
+ * repeated WordDetail words = 3;
2692
+ * @return {!Array<!proto.ondewo.s2t.WordDetail>}
2644
2693
  */
2645
- proto.ondewo.s2t.TranscribeStreamRequest.prototype.getEndOfStream = function() {
2646
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
2694
+ proto.ondewo.s2t.Transcription.prototype.getWordsList = function() {
2695
+ return /** @type{!Array<!proto.ondewo.s2t.WordDetail>} */ (
2696
+ jspb.Message.getRepeatedWrapperField(this, proto.ondewo.s2t.WordDetail, 3));
2647
2697
  };
2648
2698
 
2649
2699
 
2650
2700
  /**
2651
- * @param {boolean} value
2652
- * @return {!proto.ondewo.s2t.TranscribeStreamRequest} returns this
2653
- */
2654
- proto.ondewo.s2t.TranscribeStreamRequest.prototype.setEndOfStream = function(value) {
2655
- return jspb.Message.setProto3BooleanField(this, 2, value);
2701
+ * @param {!Array<!proto.ondewo.s2t.WordDetail>} value
2702
+ * @return {!proto.ondewo.s2t.Transcription} returns this
2703
+ */
2704
+ proto.ondewo.s2t.Transcription.prototype.setWordsList = function(value) {
2705
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
2656
2706
  };
2657
2707
 
2658
2708
 
2659
2709
  /**
2660
- * optional TranscribeRequestConfig config = 3;
2661
- * @return {?proto.ondewo.s2t.TranscribeRequestConfig}
2710
+ * @param {!proto.ondewo.s2t.WordDetail=} opt_value
2711
+ * @param {number=} opt_index
2712
+ * @return {!proto.ondewo.s2t.WordDetail}
2662
2713
  */
2663
- proto.ondewo.s2t.TranscribeStreamRequest.prototype.getConfig = function() {
2664
- return /** @type{?proto.ondewo.s2t.TranscribeRequestConfig} */ (
2665
- jspb.Message.getWrapperField(this, proto.ondewo.s2t.TranscribeRequestConfig, 3));
2714
+ proto.ondewo.s2t.Transcription.prototype.addWords = function(opt_value, opt_index) {
2715
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ondewo.s2t.WordDetail, opt_index);
2666
2716
  };
2667
2717
 
2668
2718
 
2669
2719
  /**
2670
- * @param {?proto.ondewo.s2t.TranscribeRequestConfig|undefined} value
2671
- * @return {!proto.ondewo.s2t.TranscribeStreamRequest} returns this
2672
- */
2673
- proto.ondewo.s2t.TranscribeStreamRequest.prototype.setConfig = function(value) {
2674
- return jspb.Message.setWrapperField(this, 3, value);
2720
+ * Clears the list making it empty but non-null.
2721
+ * @return {!proto.ondewo.s2t.Transcription} returns this
2722
+ */
2723
+ proto.ondewo.s2t.Transcription.prototype.clearWordsList = function() {
2724
+ return this.setWordsList([]);
2675
2725
  };
2676
2726
 
2677
2727
 
2678
2728
  /**
2679
- * Clears the message field making it undefined.
2680
- * @return {!proto.ondewo.s2t.TranscribeStreamRequest} returns this
2729
+ * repeated TranscriptionAlternative alternatives = 4;
2730
+ * @return {!Array<!proto.ondewo.s2t.TranscriptionAlternative>}
2681
2731
  */
2682
- proto.ondewo.s2t.TranscribeStreamRequest.prototype.clearConfig = function() {
2683
- return this.setConfig(undefined);
2732
+ proto.ondewo.s2t.Transcription.prototype.getAlternativesList = function() {
2733
+ return /** @type{!Array<!proto.ondewo.s2t.TranscriptionAlternative>} */ (
2734
+ jspb.Message.getRepeatedWrapperField(this, proto.ondewo.s2t.TranscriptionAlternative, 4));
2684
2735
  };
2685
2736
 
2686
2737
 
2687
2738
  /**
2688
- * Returns whether this field is set.
2689
- * @return {boolean}
2690
- */
2691
- proto.ondewo.s2t.TranscribeStreamRequest.prototype.hasConfig = function() {
2692
- return jspb.Message.getField(this, 3) != null;
2739
+ * @param {!Array<!proto.ondewo.s2t.TranscriptionAlternative>} value
2740
+ * @return {!proto.ondewo.s2t.Transcription} returns this
2741
+ */
2742
+ proto.ondewo.s2t.Transcription.prototype.setAlternativesList = function(value) {
2743
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
2693
2744
  };
2694
2745
 
2695
2746
 
2696
2747
  /**
2697
- * optional bool mute_audio = 4;
2698
- * @return {boolean}
2748
+ * @param {!proto.ondewo.s2t.TranscriptionAlternative=} opt_value
2749
+ * @param {number=} opt_index
2750
+ * @return {!proto.ondewo.s2t.TranscriptionAlternative}
2699
2751
  */
2700
- proto.ondewo.s2t.TranscribeStreamRequest.prototype.getMuteAudio = function() {
2701
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
2752
+ proto.ondewo.s2t.Transcription.prototype.addAlternatives = function(opt_value, opt_index) {
2753
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.ondewo.s2t.TranscriptionAlternative, opt_index);
2702
2754
  };
2703
2755
 
2704
2756
 
2705
2757
  /**
2706
- * @param {boolean} value
2707
- * @return {!proto.ondewo.s2t.TranscribeStreamRequest} returns this
2758
+ * Clears the list making it empty but non-null.
2759
+ * @return {!proto.ondewo.s2t.Transcription} returns this
2708
2760
  */
2709
- proto.ondewo.s2t.TranscribeStreamRequest.prototype.setMuteAudio = function(value) {
2710
- return jspb.Message.setProto3BooleanField(this, 4, value);
2761
+ proto.ondewo.s2t.Transcription.prototype.clearAlternativesList = function() {
2762
+ return this.setAlternativesList([]);
2711
2763
  };
2712
2764
 
2713
2765
 
2714
2766
 
2767
+ /**
2768
+ * List of repeated fields within this message type.
2769
+ * @private {!Array<number>}
2770
+ * @const
2771
+ */
2772
+ proto.ondewo.s2t.TranscriptionAlternative.repeatedFields_ = [3];
2773
+
2715
2774
 
2716
2775
 
2717
2776
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -2727,8 +2786,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
2727
2786
  * http://goto/soy-param-migration
2728
2787
  * @return {!Object}
2729
2788
  */
2730
- proto.ondewo.s2t.Transcription.prototype.toObject = function(opt_includeInstance) {
2731
- return proto.ondewo.s2t.Transcription.toObject(opt_includeInstance, this);
2789
+ proto.ondewo.s2t.TranscriptionAlternative.prototype.toObject = function(opt_includeInstance) {
2790
+ return proto.ondewo.s2t.TranscriptionAlternative.toObject(opt_includeInstance, this);
2732
2791
  };
2733
2792
 
2734
2793
 
@@ -2737,14 +2796,16 @@ proto.ondewo.s2t.Transcription.prototype.toObject = function(opt_includeInstance
2737
2796
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2738
2797
  * the JSPB instance for transitional soy proto support:
2739
2798
  * http://goto/soy-param-migration
2740
- * @param {!proto.ondewo.s2t.Transcription} msg The msg instance to transform.
2799
+ * @param {!proto.ondewo.s2t.TranscriptionAlternative} msg The msg instance to transform.
2741
2800
  * @return {!Object}
2742
2801
  * @suppress {unusedLocalVariables} f is only used for nested messages
2743
2802
  */
2744
- proto.ondewo.s2t.Transcription.toObject = function(includeInstance, msg) {
2803
+ proto.ondewo.s2t.TranscriptionAlternative.toObject = function(includeInstance, msg) {
2745
2804
  var f, obj = {
2746
- transcription: jspb.Message.getFieldWithDefault(msg, 1, ""),
2747
- confidenceScore: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
2805
+ transcript: jspb.Message.getFieldWithDefault(msg, 1, ""),
2806
+ confidence: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
2807
+ wordsList: jspb.Message.toObjectList(msg.getWordsList(),
2808
+ proto.ondewo.s2t.WordDetail.toObject, includeInstance)
2748
2809
  };
2749
2810
 
2750
2811
  if (includeInstance) {
@@ -2758,23 +2819,23 @@ proto.ondewo.s2t.Transcription.toObject = function(includeInstance, msg) {
2758
2819
  /**
2759
2820
  * Deserializes binary data (in protobuf wire format).
2760
2821
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2761
- * @return {!proto.ondewo.s2t.Transcription}
2822
+ * @return {!proto.ondewo.s2t.TranscriptionAlternative}
2762
2823
  */
2763
- proto.ondewo.s2t.Transcription.deserializeBinary = function(bytes) {
2824
+ proto.ondewo.s2t.TranscriptionAlternative.deserializeBinary = function(bytes) {
2764
2825
  var reader = new jspb.BinaryReader(bytes);
2765
- var msg = new proto.ondewo.s2t.Transcription;
2766
- return proto.ondewo.s2t.Transcription.deserializeBinaryFromReader(msg, reader);
2826
+ var msg = new proto.ondewo.s2t.TranscriptionAlternative;
2827
+ return proto.ondewo.s2t.TranscriptionAlternative.deserializeBinaryFromReader(msg, reader);
2767
2828
  };
2768
2829
 
2769
2830
 
2770
2831
  /**
2771
2832
  * Deserializes binary data (in protobuf wire format) from the
2772
2833
  * given reader into the given message object.
2773
- * @param {!proto.ondewo.s2t.Transcription} msg The message object to deserialize into.
2834
+ * @param {!proto.ondewo.s2t.TranscriptionAlternative} msg The message object to deserialize into.
2774
2835
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2775
- * @return {!proto.ondewo.s2t.Transcription}
2836
+ * @return {!proto.ondewo.s2t.TranscriptionAlternative}
2776
2837
  */
2777
- proto.ondewo.s2t.Transcription.deserializeBinaryFromReader = function(msg, reader) {
2838
+ proto.ondewo.s2t.TranscriptionAlternative.deserializeBinaryFromReader = function(msg, reader) {
2778
2839
  while (reader.nextField()) {
2779
2840
  if (reader.isEndGroup()) {
2780
2841
  break;
@@ -2783,11 +2844,16 @@ proto.ondewo.s2t.Transcription.deserializeBinaryFromReader = function(msg, reade
2783
2844
  switch (field) {
2784
2845
  case 1:
2785
2846
  var value = /** @type {string} */ (reader.readString());
2786
- msg.setTranscription(value);
2847
+ msg.setTranscript(value);
2787
2848
  break;
2788
2849
  case 2:
2789
2850
  var value = /** @type {number} */ (reader.readFloat());
2790
- msg.setConfidenceScore(value);
2851
+ msg.setConfidence(value);
2852
+ break;
2853
+ case 3:
2854
+ var value = new proto.ondewo.s2t.WordDetail;
2855
+ reader.readMessage(value,proto.ondewo.s2t.WordDetail.deserializeBinaryFromReader);
2856
+ msg.addWords(value);
2791
2857
  break;
2792
2858
  default:
2793
2859
  reader.skipField();
@@ -2802,9 +2868,495 @@ proto.ondewo.s2t.Transcription.deserializeBinaryFromReader = function(msg, reade
2802
2868
  * Serializes the message to binary data (in protobuf wire format).
2803
2869
  * @return {!Uint8Array}
2804
2870
  */
2805
- proto.ondewo.s2t.Transcription.prototype.serializeBinary = function() {
2871
+ proto.ondewo.s2t.TranscriptionAlternative.prototype.serializeBinary = function() {
2872
+ var writer = new jspb.BinaryWriter();
2873
+ proto.ondewo.s2t.TranscriptionAlternative.serializeBinaryToWriter(this, writer);
2874
+ return writer.getResultBuffer();
2875
+ };
2876
+
2877
+
2878
+ /**
2879
+ * Serializes the given message to binary data (in protobuf wire
2880
+ * format), writing to the given BinaryWriter.
2881
+ * @param {!proto.ondewo.s2t.TranscriptionAlternative} message
2882
+ * @param {!jspb.BinaryWriter} writer
2883
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2884
+ */
2885
+ proto.ondewo.s2t.TranscriptionAlternative.serializeBinaryToWriter = function(message, writer) {
2886
+ var f = undefined;
2887
+ f = message.getTranscript();
2888
+ if (f.length > 0) {
2889
+ writer.writeString(
2890
+ 1,
2891
+ f
2892
+ );
2893
+ }
2894
+ f = message.getConfidence();
2895
+ if (f !== 0.0) {
2896
+ writer.writeFloat(
2897
+ 2,
2898
+ f
2899
+ );
2900
+ }
2901
+ f = message.getWordsList();
2902
+ if (f.length > 0) {
2903
+ writer.writeRepeatedMessage(
2904
+ 3,
2905
+ f,
2906
+ proto.ondewo.s2t.WordDetail.serializeBinaryToWriter
2907
+ );
2908
+ }
2909
+ };
2910
+
2911
+
2912
+ /**
2913
+ * optional string transcript = 1;
2914
+ * @return {string}
2915
+ */
2916
+ proto.ondewo.s2t.TranscriptionAlternative.prototype.getTranscript = function() {
2917
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2918
+ };
2919
+
2920
+
2921
+ /**
2922
+ * @param {string} value
2923
+ * @return {!proto.ondewo.s2t.TranscriptionAlternative} returns this
2924
+ */
2925
+ proto.ondewo.s2t.TranscriptionAlternative.prototype.setTranscript = function(value) {
2926
+ return jspb.Message.setProto3StringField(this, 1, value);
2927
+ };
2928
+
2929
+
2930
+ /**
2931
+ * optional float confidence = 2;
2932
+ * @return {number}
2933
+ */
2934
+ proto.ondewo.s2t.TranscriptionAlternative.prototype.getConfidence = function() {
2935
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
2936
+ };
2937
+
2938
+
2939
+ /**
2940
+ * @param {number} value
2941
+ * @return {!proto.ondewo.s2t.TranscriptionAlternative} returns this
2942
+ */
2943
+ proto.ondewo.s2t.TranscriptionAlternative.prototype.setConfidence = function(value) {
2944
+ return jspb.Message.setProto3FloatField(this, 2, value);
2945
+ };
2946
+
2947
+
2948
+ /**
2949
+ * repeated WordDetail words = 3;
2950
+ * @return {!Array<!proto.ondewo.s2t.WordDetail>}
2951
+ */
2952
+ proto.ondewo.s2t.TranscriptionAlternative.prototype.getWordsList = function() {
2953
+ return /** @type{!Array<!proto.ondewo.s2t.WordDetail>} */ (
2954
+ jspb.Message.getRepeatedWrapperField(this, proto.ondewo.s2t.WordDetail, 3));
2955
+ };
2956
+
2957
+
2958
+ /**
2959
+ * @param {!Array<!proto.ondewo.s2t.WordDetail>} value
2960
+ * @return {!proto.ondewo.s2t.TranscriptionAlternative} returns this
2961
+ */
2962
+ proto.ondewo.s2t.TranscriptionAlternative.prototype.setWordsList = function(value) {
2963
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
2964
+ };
2965
+
2966
+
2967
+ /**
2968
+ * @param {!proto.ondewo.s2t.WordDetail=} opt_value
2969
+ * @param {number=} opt_index
2970
+ * @return {!proto.ondewo.s2t.WordDetail}
2971
+ */
2972
+ proto.ondewo.s2t.TranscriptionAlternative.prototype.addWords = function(opt_value, opt_index) {
2973
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ondewo.s2t.WordDetail, opt_index);
2974
+ };
2975
+
2976
+
2977
+ /**
2978
+ * Clears the list making it empty but non-null.
2979
+ * @return {!proto.ondewo.s2t.TranscriptionAlternative} returns this
2980
+ */
2981
+ proto.ondewo.s2t.TranscriptionAlternative.prototype.clearWordsList = function() {
2982
+ return this.setWordsList([]);
2983
+ };
2984
+
2985
+
2986
+
2987
+ /**
2988
+ * List of repeated fields within this message type.
2989
+ * @private {!Array<number>}
2990
+ * @const
2991
+ */
2992
+ proto.ondewo.s2t.WordDetail.repeatedFields_ = [5];
2993
+
2994
+
2995
+
2996
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2997
+ /**
2998
+ * Creates an object representation of this proto.
2999
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3000
+ * Optional fields that are not set will be set to undefined.
3001
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3002
+ * For the list of reserved names please see:
3003
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3004
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3005
+ * JSPB instance for transitional soy proto support:
3006
+ * http://goto/soy-param-migration
3007
+ * @return {!Object}
3008
+ */
3009
+ proto.ondewo.s2t.WordDetail.prototype.toObject = function(opt_includeInstance) {
3010
+ return proto.ondewo.s2t.WordDetail.toObject(opt_includeInstance, this);
3011
+ };
3012
+
3013
+
3014
+ /**
3015
+ * Static version of the {@see toObject} method.
3016
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3017
+ * the JSPB instance for transitional soy proto support:
3018
+ * http://goto/soy-param-migration
3019
+ * @param {!proto.ondewo.s2t.WordDetail} msg The msg instance to transform.
3020
+ * @return {!Object}
3021
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3022
+ */
3023
+ proto.ondewo.s2t.WordDetail.toObject = function(includeInstance, msg) {
3024
+ var f, obj = {
3025
+ startTime: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
3026
+ endTime: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
3027
+ word: jspb.Message.getFieldWithDefault(msg, 3, ""),
3028
+ confidence: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
3029
+ wordAlternativesList: jspb.Message.toObjectList(msg.getWordAlternativesList(),
3030
+ proto.ondewo.s2t.WordAlternative.toObject, includeInstance)
3031
+ };
3032
+
3033
+ if (includeInstance) {
3034
+ obj.$jspbMessageInstance = msg;
3035
+ }
3036
+ return obj;
3037
+ };
3038
+ }
3039
+
3040
+
3041
+ /**
3042
+ * Deserializes binary data (in protobuf wire format).
3043
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3044
+ * @return {!proto.ondewo.s2t.WordDetail}
3045
+ */
3046
+ proto.ondewo.s2t.WordDetail.deserializeBinary = function(bytes) {
3047
+ var reader = new jspb.BinaryReader(bytes);
3048
+ var msg = new proto.ondewo.s2t.WordDetail;
3049
+ return proto.ondewo.s2t.WordDetail.deserializeBinaryFromReader(msg, reader);
3050
+ };
3051
+
3052
+
3053
+ /**
3054
+ * Deserializes binary data (in protobuf wire format) from the
3055
+ * given reader into the given message object.
3056
+ * @param {!proto.ondewo.s2t.WordDetail} msg The message object to deserialize into.
3057
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3058
+ * @return {!proto.ondewo.s2t.WordDetail}
3059
+ */
3060
+ proto.ondewo.s2t.WordDetail.deserializeBinaryFromReader = function(msg, reader) {
3061
+ while (reader.nextField()) {
3062
+ if (reader.isEndGroup()) {
3063
+ break;
3064
+ }
3065
+ var field = reader.getFieldNumber();
3066
+ switch (field) {
3067
+ case 1:
3068
+ var value = /** @type {number} */ (reader.readFloat());
3069
+ msg.setStartTime(value);
3070
+ break;
3071
+ case 2:
3072
+ var value = /** @type {number} */ (reader.readFloat());
3073
+ msg.setEndTime(value);
3074
+ break;
3075
+ case 3:
3076
+ var value = /** @type {string} */ (reader.readString());
3077
+ msg.setWord(value);
3078
+ break;
3079
+ case 4:
3080
+ var value = /** @type {number} */ (reader.readFloat());
3081
+ msg.setConfidence(value);
3082
+ break;
3083
+ case 5:
3084
+ var value = new proto.ondewo.s2t.WordAlternative;
3085
+ reader.readMessage(value,proto.ondewo.s2t.WordAlternative.deserializeBinaryFromReader);
3086
+ msg.addWordAlternatives(value);
3087
+ break;
3088
+ default:
3089
+ reader.skipField();
3090
+ break;
3091
+ }
3092
+ }
3093
+ return msg;
3094
+ };
3095
+
3096
+
3097
+ /**
3098
+ * Serializes the message to binary data (in protobuf wire format).
3099
+ * @return {!Uint8Array}
3100
+ */
3101
+ proto.ondewo.s2t.WordDetail.prototype.serializeBinary = function() {
3102
+ var writer = new jspb.BinaryWriter();
3103
+ proto.ondewo.s2t.WordDetail.serializeBinaryToWriter(this, writer);
3104
+ return writer.getResultBuffer();
3105
+ };
3106
+
3107
+
3108
+ /**
3109
+ * Serializes the given message to binary data (in protobuf wire
3110
+ * format), writing to the given BinaryWriter.
3111
+ * @param {!proto.ondewo.s2t.WordDetail} message
3112
+ * @param {!jspb.BinaryWriter} writer
3113
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3114
+ */
3115
+ proto.ondewo.s2t.WordDetail.serializeBinaryToWriter = function(message, writer) {
3116
+ var f = undefined;
3117
+ f = message.getStartTime();
3118
+ if (f !== 0.0) {
3119
+ writer.writeFloat(
3120
+ 1,
3121
+ f
3122
+ );
3123
+ }
3124
+ f = message.getEndTime();
3125
+ if (f !== 0.0) {
3126
+ writer.writeFloat(
3127
+ 2,
3128
+ f
3129
+ );
3130
+ }
3131
+ f = message.getWord();
3132
+ if (f.length > 0) {
3133
+ writer.writeString(
3134
+ 3,
3135
+ f
3136
+ );
3137
+ }
3138
+ f = message.getConfidence();
3139
+ if (f !== 0.0) {
3140
+ writer.writeFloat(
3141
+ 4,
3142
+ f
3143
+ );
3144
+ }
3145
+ f = message.getWordAlternativesList();
3146
+ if (f.length > 0) {
3147
+ writer.writeRepeatedMessage(
3148
+ 5,
3149
+ f,
3150
+ proto.ondewo.s2t.WordAlternative.serializeBinaryToWriter
3151
+ );
3152
+ }
3153
+ };
3154
+
3155
+
3156
+ /**
3157
+ * optional float start_time = 1;
3158
+ * @return {number}
3159
+ */
3160
+ proto.ondewo.s2t.WordDetail.prototype.getStartTime = function() {
3161
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
3162
+ };
3163
+
3164
+
3165
+ /**
3166
+ * @param {number} value
3167
+ * @return {!proto.ondewo.s2t.WordDetail} returns this
3168
+ */
3169
+ proto.ondewo.s2t.WordDetail.prototype.setStartTime = function(value) {
3170
+ return jspb.Message.setProto3FloatField(this, 1, value);
3171
+ };
3172
+
3173
+
3174
+ /**
3175
+ * optional float end_time = 2;
3176
+ * @return {number}
3177
+ */
3178
+ proto.ondewo.s2t.WordDetail.prototype.getEndTime = function() {
3179
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
3180
+ };
3181
+
3182
+
3183
+ /**
3184
+ * @param {number} value
3185
+ * @return {!proto.ondewo.s2t.WordDetail} returns this
3186
+ */
3187
+ proto.ondewo.s2t.WordDetail.prototype.setEndTime = function(value) {
3188
+ return jspb.Message.setProto3FloatField(this, 2, value);
3189
+ };
3190
+
3191
+
3192
+ /**
3193
+ * optional string word = 3;
3194
+ * @return {string}
3195
+ */
3196
+ proto.ondewo.s2t.WordDetail.prototype.getWord = function() {
3197
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3198
+ };
3199
+
3200
+
3201
+ /**
3202
+ * @param {string} value
3203
+ * @return {!proto.ondewo.s2t.WordDetail} returns this
3204
+ */
3205
+ proto.ondewo.s2t.WordDetail.prototype.setWord = function(value) {
3206
+ return jspb.Message.setProto3StringField(this, 3, value);
3207
+ };
3208
+
3209
+
3210
+ /**
3211
+ * optional float confidence = 4;
3212
+ * @return {number}
3213
+ */
3214
+ proto.ondewo.s2t.WordDetail.prototype.getConfidence = function() {
3215
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
3216
+ };
3217
+
3218
+
3219
+ /**
3220
+ * @param {number} value
3221
+ * @return {!proto.ondewo.s2t.WordDetail} returns this
3222
+ */
3223
+ proto.ondewo.s2t.WordDetail.prototype.setConfidence = function(value) {
3224
+ return jspb.Message.setProto3FloatField(this, 4, value);
3225
+ };
3226
+
3227
+
3228
+ /**
3229
+ * repeated WordAlternative word_alternatives = 5;
3230
+ * @return {!Array<!proto.ondewo.s2t.WordAlternative>}
3231
+ */
3232
+ proto.ondewo.s2t.WordDetail.prototype.getWordAlternativesList = function() {
3233
+ return /** @type{!Array<!proto.ondewo.s2t.WordAlternative>} */ (
3234
+ jspb.Message.getRepeatedWrapperField(this, proto.ondewo.s2t.WordAlternative, 5));
3235
+ };
3236
+
3237
+
3238
+ /**
3239
+ * @param {!Array<!proto.ondewo.s2t.WordAlternative>} value
3240
+ * @return {!proto.ondewo.s2t.WordDetail} returns this
3241
+ */
3242
+ proto.ondewo.s2t.WordDetail.prototype.setWordAlternativesList = function(value) {
3243
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
3244
+ };
3245
+
3246
+
3247
+ /**
3248
+ * @param {!proto.ondewo.s2t.WordAlternative=} opt_value
3249
+ * @param {number=} opt_index
3250
+ * @return {!proto.ondewo.s2t.WordAlternative}
3251
+ */
3252
+ proto.ondewo.s2t.WordDetail.prototype.addWordAlternatives = function(opt_value, opt_index) {
3253
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.ondewo.s2t.WordAlternative, opt_index);
3254
+ };
3255
+
3256
+
3257
+ /**
3258
+ * Clears the list making it empty but non-null.
3259
+ * @return {!proto.ondewo.s2t.WordDetail} returns this
3260
+ */
3261
+ proto.ondewo.s2t.WordDetail.prototype.clearWordAlternativesList = function() {
3262
+ return this.setWordAlternativesList([]);
3263
+ };
3264
+
3265
+
3266
+
3267
+
3268
+
3269
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3270
+ /**
3271
+ * Creates an object representation of this proto.
3272
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3273
+ * Optional fields that are not set will be set to undefined.
3274
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3275
+ * For the list of reserved names please see:
3276
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3277
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3278
+ * JSPB instance for transitional soy proto support:
3279
+ * http://goto/soy-param-migration
3280
+ * @return {!Object}
3281
+ */
3282
+ proto.ondewo.s2t.WordAlternative.prototype.toObject = function(opt_includeInstance) {
3283
+ return proto.ondewo.s2t.WordAlternative.toObject(opt_includeInstance, this);
3284
+ };
3285
+
3286
+
3287
+ /**
3288
+ * Static version of the {@see toObject} method.
3289
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3290
+ * the JSPB instance for transitional soy proto support:
3291
+ * http://goto/soy-param-migration
3292
+ * @param {!proto.ondewo.s2t.WordAlternative} msg The msg instance to transform.
3293
+ * @return {!Object}
3294
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3295
+ */
3296
+ proto.ondewo.s2t.WordAlternative.toObject = function(includeInstance, msg) {
3297
+ var f, obj = {
3298
+ word: jspb.Message.getFieldWithDefault(msg, 1, ""),
3299
+ confidence: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
3300
+ };
3301
+
3302
+ if (includeInstance) {
3303
+ obj.$jspbMessageInstance = msg;
3304
+ }
3305
+ return obj;
3306
+ };
3307
+ }
3308
+
3309
+
3310
+ /**
3311
+ * Deserializes binary data (in protobuf wire format).
3312
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3313
+ * @return {!proto.ondewo.s2t.WordAlternative}
3314
+ */
3315
+ proto.ondewo.s2t.WordAlternative.deserializeBinary = function(bytes) {
3316
+ var reader = new jspb.BinaryReader(bytes);
3317
+ var msg = new proto.ondewo.s2t.WordAlternative;
3318
+ return proto.ondewo.s2t.WordAlternative.deserializeBinaryFromReader(msg, reader);
3319
+ };
3320
+
3321
+
3322
+ /**
3323
+ * Deserializes binary data (in protobuf wire format) from the
3324
+ * given reader into the given message object.
3325
+ * @param {!proto.ondewo.s2t.WordAlternative} msg The message object to deserialize into.
3326
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3327
+ * @return {!proto.ondewo.s2t.WordAlternative}
3328
+ */
3329
+ proto.ondewo.s2t.WordAlternative.deserializeBinaryFromReader = function(msg, reader) {
3330
+ while (reader.nextField()) {
3331
+ if (reader.isEndGroup()) {
3332
+ break;
3333
+ }
3334
+ var field = reader.getFieldNumber();
3335
+ switch (field) {
3336
+ case 1:
3337
+ var value = /** @type {string} */ (reader.readString());
3338
+ msg.setWord(value);
3339
+ break;
3340
+ case 2:
3341
+ var value = /** @type {number} */ (reader.readFloat());
3342
+ msg.setConfidence(value);
3343
+ break;
3344
+ default:
3345
+ reader.skipField();
3346
+ break;
3347
+ }
3348
+ }
3349
+ return msg;
3350
+ };
3351
+
3352
+
3353
+ /**
3354
+ * Serializes the message to binary data (in protobuf wire format).
3355
+ * @return {!Uint8Array}
3356
+ */
3357
+ proto.ondewo.s2t.WordAlternative.prototype.serializeBinary = function() {
2806
3358
  var writer = new jspb.BinaryWriter();
2807
- proto.ondewo.s2t.Transcription.serializeBinaryToWriter(this, writer);
3359
+ proto.ondewo.s2t.WordAlternative.serializeBinaryToWriter(this, writer);
2808
3360
  return writer.getResultBuffer();
2809
3361
  };
2810
3362
 
@@ -2812,20 +3364,20 @@ proto.ondewo.s2t.Transcription.prototype.serializeBinary = function() {
2812
3364
  /**
2813
3365
  * Serializes the given message to binary data (in protobuf wire
2814
3366
  * format), writing to the given BinaryWriter.
2815
- * @param {!proto.ondewo.s2t.Transcription} message
3367
+ * @param {!proto.ondewo.s2t.WordAlternative} message
2816
3368
  * @param {!jspb.BinaryWriter} writer
2817
3369
  * @suppress {unusedLocalVariables} f is only used for nested messages
2818
3370
  */
2819
- proto.ondewo.s2t.Transcription.serializeBinaryToWriter = function(message, writer) {
3371
+ proto.ondewo.s2t.WordAlternative.serializeBinaryToWriter = function(message, writer) {
2820
3372
  var f = undefined;
2821
- f = message.getTranscription();
3373
+ f = message.getWord();
2822
3374
  if (f.length > 0) {
2823
3375
  writer.writeString(
2824
3376
  1,
2825
3377
  f
2826
3378
  );
2827
3379
  }
2828
- f = message.getConfidenceScore();
3380
+ f = message.getConfidence();
2829
3381
  if (f !== 0.0) {
2830
3382
  writer.writeFloat(
2831
3383
  2,
@@ -2836,38 +3388,303 @@ proto.ondewo.s2t.Transcription.serializeBinaryToWriter = function(message, write
2836
3388
 
2837
3389
 
2838
3390
  /**
2839
- * optional string transcription = 1;
2840
- * @return {string}
3391
+ * optional string word = 1;
3392
+ * @return {string}
3393
+ */
3394
+ proto.ondewo.s2t.WordAlternative.prototype.getWord = function() {
3395
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3396
+ };
3397
+
3398
+
3399
+ /**
3400
+ * @param {string} value
3401
+ * @return {!proto.ondewo.s2t.WordAlternative} returns this
3402
+ */
3403
+ proto.ondewo.s2t.WordAlternative.prototype.setWord = function(value) {
3404
+ return jspb.Message.setProto3StringField(this, 1, value);
3405
+ };
3406
+
3407
+
3408
+ /**
3409
+ * optional float confidence = 2;
3410
+ * @return {number}
3411
+ */
3412
+ proto.ondewo.s2t.WordAlternative.prototype.getConfidence = function() {
3413
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
3414
+ };
3415
+
3416
+
3417
+ /**
3418
+ * @param {number} value
3419
+ * @return {!proto.ondewo.s2t.WordAlternative} returns this
3420
+ */
3421
+ proto.ondewo.s2t.WordAlternative.prototype.setConfidence = function(value) {
3422
+ return jspb.Message.setProto3FloatField(this, 2, value);
3423
+ };
3424
+
3425
+
3426
+
3427
+
3428
+
3429
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3430
+ /**
3431
+ * Creates an object representation of this proto.
3432
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3433
+ * Optional fields that are not set will be set to undefined.
3434
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3435
+ * For the list of reserved names please see:
3436
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3437
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3438
+ * JSPB instance for transitional soy proto support:
3439
+ * http://goto/soy-param-migration
3440
+ * @return {!Object}
3441
+ */
3442
+ proto.ondewo.s2t.TranscribeStreamRequest.prototype.toObject = function(opt_includeInstance) {
3443
+ return proto.ondewo.s2t.TranscribeStreamRequest.toObject(opt_includeInstance, this);
3444
+ };
3445
+
3446
+
3447
+ /**
3448
+ * Static version of the {@see toObject} method.
3449
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3450
+ * the JSPB instance for transitional soy proto support:
3451
+ * http://goto/soy-param-migration
3452
+ * @param {!proto.ondewo.s2t.TranscribeStreamRequest} msg The msg instance to transform.
3453
+ * @return {!Object}
3454
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3455
+ */
3456
+ proto.ondewo.s2t.TranscribeStreamRequest.toObject = function(includeInstance, msg) {
3457
+ var f, obj = {
3458
+ audioChunk: msg.getAudioChunk_asB64(),
3459
+ endOfStream: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
3460
+ config: (f = msg.getConfig()) && proto.ondewo.s2t.TranscribeRequestConfig.toObject(includeInstance, f),
3461
+ muteAudio: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
3462
+ };
3463
+
3464
+ if (includeInstance) {
3465
+ obj.$jspbMessageInstance = msg;
3466
+ }
3467
+ return obj;
3468
+ };
3469
+ }
3470
+
3471
+
3472
+ /**
3473
+ * Deserializes binary data (in protobuf wire format).
3474
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3475
+ * @return {!proto.ondewo.s2t.TranscribeStreamRequest}
3476
+ */
3477
+ proto.ondewo.s2t.TranscribeStreamRequest.deserializeBinary = function(bytes) {
3478
+ var reader = new jspb.BinaryReader(bytes);
3479
+ var msg = new proto.ondewo.s2t.TranscribeStreamRequest;
3480
+ return proto.ondewo.s2t.TranscribeStreamRequest.deserializeBinaryFromReader(msg, reader);
3481
+ };
3482
+
3483
+
3484
+ /**
3485
+ * Deserializes binary data (in protobuf wire format) from the
3486
+ * given reader into the given message object.
3487
+ * @param {!proto.ondewo.s2t.TranscribeStreamRequest} msg The message object to deserialize into.
3488
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3489
+ * @return {!proto.ondewo.s2t.TranscribeStreamRequest}
3490
+ */
3491
+ proto.ondewo.s2t.TranscribeStreamRequest.deserializeBinaryFromReader = function(msg, reader) {
3492
+ while (reader.nextField()) {
3493
+ if (reader.isEndGroup()) {
3494
+ break;
3495
+ }
3496
+ var field = reader.getFieldNumber();
3497
+ switch (field) {
3498
+ case 1:
3499
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
3500
+ msg.setAudioChunk(value);
3501
+ break;
3502
+ case 2:
3503
+ var value = /** @type {boolean} */ (reader.readBool());
3504
+ msg.setEndOfStream(value);
3505
+ break;
3506
+ case 3:
3507
+ var value = new proto.ondewo.s2t.TranscribeRequestConfig;
3508
+ reader.readMessage(value,proto.ondewo.s2t.TranscribeRequestConfig.deserializeBinaryFromReader);
3509
+ msg.setConfig(value);
3510
+ break;
3511
+ case 4:
3512
+ var value = /** @type {boolean} */ (reader.readBool());
3513
+ msg.setMuteAudio(value);
3514
+ break;
3515
+ default:
3516
+ reader.skipField();
3517
+ break;
3518
+ }
3519
+ }
3520
+ return msg;
3521
+ };
3522
+
3523
+
3524
+ /**
3525
+ * Serializes the message to binary data (in protobuf wire format).
3526
+ * @return {!Uint8Array}
3527
+ */
3528
+ proto.ondewo.s2t.TranscribeStreamRequest.prototype.serializeBinary = function() {
3529
+ var writer = new jspb.BinaryWriter();
3530
+ proto.ondewo.s2t.TranscribeStreamRequest.serializeBinaryToWriter(this, writer);
3531
+ return writer.getResultBuffer();
3532
+ };
3533
+
3534
+
3535
+ /**
3536
+ * Serializes the given message to binary data (in protobuf wire
3537
+ * format), writing to the given BinaryWriter.
3538
+ * @param {!proto.ondewo.s2t.TranscribeStreamRequest} message
3539
+ * @param {!jspb.BinaryWriter} writer
3540
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3541
+ */
3542
+ proto.ondewo.s2t.TranscribeStreamRequest.serializeBinaryToWriter = function(message, writer) {
3543
+ var f = undefined;
3544
+ f = message.getAudioChunk_asU8();
3545
+ if (f.length > 0) {
3546
+ writer.writeBytes(
3547
+ 1,
3548
+ f
3549
+ );
3550
+ }
3551
+ f = message.getEndOfStream();
3552
+ if (f) {
3553
+ writer.writeBool(
3554
+ 2,
3555
+ f
3556
+ );
3557
+ }
3558
+ f = message.getConfig();
3559
+ if (f != null) {
3560
+ writer.writeMessage(
3561
+ 3,
3562
+ f,
3563
+ proto.ondewo.s2t.TranscribeRequestConfig.serializeBinaryToWriter
3564
+ );
3565
+ }
3566
+ f = message.getMuteAudio();
3567
+ if (f) {
3568
+ writer.writeBool(
3569
+ 4,
3570
+ f
3571
+ );
3572
+ }
3573
+ };
3574
+
3575
+
3576
+ /**
3577
+ * optional bytes audio_chunk = 1;
3578
+ * @return {!(string|Uint8Array)}
3579
+ */
3580
+ proto.ondewo.s2t.TranscribeStreamRequest.prototype.getAudioChunk = function() {
3581
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3582
+ };
3583
+
3584
+
3585
+ /**
3586
+ * optional bytes audio_chunk = 1;
3587
+ * This is a type-conversion wrapper around `getAudioChunk()`
3588
+ * @return {string}
3589
+ */
3590
+ proto.ondewo.s2t.TranscribeStreamRequest.prototype.getAudioChunk_asB64 = function() {
3591
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
3592
+ this.getAudioChunk()));
3593
+ };
3594
+
3595
+
3596
+ /**
3597
+ * optional bytes audio_chunk = 1;
3598
+ * Note that Uint8Array is not supported on all browsers.
3599
+ * @see http://caniuse.com/Uint8Array
3600
+ * This is a type-conversion wrapper around `getAudioChunk()`
3601
+ * @return {!Uint8Array}
3602
+ */
3603
+ proto.ondewo.s2t.TranscribeStreamRequest.prototype.getAudioChunk_asU8 = function() {
3604
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
3605
+ this.getAudioChunk()));
3606
+ };
3607
+
3608
+
3609
+ /**
3610
+ * @param {!(string|Uint8Array)} value
3611
+ * @return {!proto.ondewo.s2t.TranscribeStreamRequest} returns this
3612
+ */
3613
+ proto.ondewo.s2t.TranscribeStreamRequest.prototype.setAudioChunk = function(value) {
3614
+ return jspb.Message.setProto3BytesField(this, 1, value);
3615
+ };
3616
+
3617
+
3618
+ /**
3619
+ * optional bool end_of_stream = 2;
3620
+ * @return {boolean}
3621
+ */
3622
+ proto.ondewo.s2t.TranscribeStreamRequest.prototype.getEndOfStream = function() {
3623
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
3624
+ };
3625
+
3626
+
3627
+ /**
3628
+ * @param {boolean} value
3629
+ * @return {!proto.ondewo.s2t.TranscribeStreamRequest} returns this
3630
+ */
3631
+ proto.ondewo.s2t.TranscribeStreamRequest.prototype.setEndOfStream = function(value) {
3632
+ return jspb.Message.setProto3BooleanField(this, 2, value);
3633
+ };
3634
+
3635
+
3636
+ /**
3637
+ * optional TranscribeRequestConfig config = 3;
3638
+ * @return {?proto.ondewo.s2t.TranscribeRequestConfig}
3639
+ */
3640
+ proto.ondewo.s2t.TranscribeStreamRequest.prototype.getConfig = function() {
3641
+ return /** @type{?proto.ondewo.s2t.TranscribeRequestConfig} */ (
3642
+ jspb.Message.getWrapperField(this, proto.ondewo.s2t.TranscribeRequestConfig, 3));
3643
+ };
3644
+
3645
+
3646
+ /**
3647
+ * @param {?proto.ondewo.s2t.TranscribeRequestConfig|undefined} value
3648
+ * @return {!proto.ondewo.s2t.TranscribeStreamRequest} returns this
3649
+ */
3650
+ proto.ondewo.s2t.TranscribeStreamRequest.prototype.setConfig = function(value) {
3651
+ return jspb.Message.setWrapperField(this, 3, value);
3652
+ };
3653
+
3654
+
3655
+ /**
3656
+ * Clears the message field making it undefined.
3657
+ * @return {!proto.ondewo.s2t.TranscribeStreamRequest} returns this
2841
3658
  */
2842
- proto.ondewo.s2t.Transcription.prototype.getTranscription = function() {
2843
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3659
+ proto.ondewo.s2t.TranscribeStreamRequest.prototype.clearConfig = function() {
3660
+ return this.setConfig(undefined);
2844
3661
  };
2845
3662
 
2846
3663
 
2847
3664
  /**
2848
- * @param {string} value
2849
- * @return {!proto.ondewo.s2t.Transcription} returns this
3665
+ * Returns whether this field is set.
3666
+ * @return {boolean}
2850
3667
  */
2851
- proto.ondewo.s2t.Transcription.prototype.setTranscription = function(value) {
2852
- return jspb.Message.setProto3StringField(this, 1, value);
3668
+ proto.ondewo.s2t.TranscribeStreamRequest.prototype.hasConfig = function() {
3669
+ return jspb.Message.getField(this, 3) != null;
2853
3670
  };
2854
3671
 
2855
3672
 
2856
3673
  /**
2857
- * optional float confidence_score = 2;
2858
- * @return {number}
3674
+ * optional bool mute_audio = 4;
3675
+ * @return {boolean}
2859
3676
  */
2860
- proto.ondewo.s2t.Transcription.prototype.getConfidenceScore = function() {
2861
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
3677
+ proto.ondewo.s2t.TranscribeStreamRequest.prototype.getMuteAudio = function() {
3678
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
2862
3679
  };
2863
3680
 
2864
3681
 
2865
3682
  /**
2866
- * @param {number} value
2867
- * @return {!proto.ondewo.s2t.Transcription} returns this
3683
+ * @param {boolean} value
3684
+ * @return {!proto.ondewo.s2t.TranscribeStreamRequest} returns this
2868
3685
  */
2869
- proto.ondewo.s2t.Transcription.prototype.setConfidenceScore = function(value) {
2870
- return jspb.Message.setProto3FloatField(this, 2, value);
3686
+ proto.ondewo.s2t.TranscribeStreamRequest.prototype.setMuteAudio = function(value) {
3687
+ return jspb.Message.setProto3BooleanField(this, 4, value);
2871
3688
  };
2872
3689
 
2873
3690
 
@@ -3522,7 +4339,7 @@ proto.ondewo.s2t.TranscribeFileRequest.prototype.hasConfig = function() {
3522
4339
  * @private {!Array<number>}
3523
4340
  * @const
3524
4341
  */
3525
- proto.ondewo.s2t.TranscribeFileResponse.repeatedFields_ = [1,3];
4342
+ proto.ondewo.s2t.TranscribeFileResponse.repeatedFields_ = [1];
3526
4343
 
3527
4344
 
3528
4345
 
@@ -3558,9 +4375,7 @@ proto.ondewo.s2t.TranscribeFileResponse.toObject = function(includeInstance, msg
3558
4375
  transcriptionsList: jspb.Message.toObjectList(msg.getTranscriptionsList(),
3559
4376
  proto.ondewo.s2t.Transcription.toObject, includeInstance),
3560
4377
  time: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
3561
- wordTimingList: jspb.Message.toObjectList(msg.getWordTimingList(),
3562
- proto.ondewo.s2t.WordTiming.toObject, includeInstance),
3563
- audioUuid: jspb.Message.getFieldWithDefault(msg, 4, "")
4378
+ audioUuid: jspb.Message.getFieldWithDefault(msg, 3, "")
3564
4379
  };
3565
4380
 
3566
4381
  if (includeInstance) {
@@ -3607,11 +4422,6 @@ proto.ondewo.s2t.TranscribeFileResponse.deserializeBinaryFromReader = function(m
3607
4422
  msg.setTime(value);
3608
4423
  break;
3609
4424
  case 3:
3610
- var value = new proto.ondewo.s2t.WordTiming;
3611
- reader.readMessage(value,proto.ondewo.s2t.WordTiming.deserializeBinaryFromReader);
3612
- msg.addWordTiming(value);
3613
- break;
3614
- case 4:
3615
4425
  var value = /** @type {string} */ (reader.readString());
3616
4426
  msg.setAudioUuid(value);
3617
4427
  break;
@@ -3659,18 +4469,10 @@ proto.ondewo.s2t.TranscribeFileResponse.serializeBinaryToWriter = function(messa
3659
4469
  f
3660
4470
  );
3661
4471
  }
3662
- f = message.getWordTimingList();
3663
- if (f.length > 0) {
3664
- writer.writeRepeatedMessage(
3665
- 3,
3666
- f,
3667
- proto.ondewo.s2t.WordTiming.serializeBinaryToWriter
3668
- );
3669
- }
3670
4472
  f = message.getAudioUuid();
3671
4473
  if (f.length > 0) {
3672
4474
  writer.writeString(
3673
- 4,
4475
+ 3,
3674
4476
  f
3675
4477
  );
3676
4478
  }
@@ -3734,49 +4536,11 @@ proto.ondewo.s2t.TranscribeFileResponse.prototype.setTime = function(value) {
3734
4536
 
3735
4537
 
3736
4538
  /**
3737
- * repeated WordTiming word_timing = 3;
3738
- * @return {!Array<!proto.ondewo.s2t.WordTiming>}
3739
- */
3740
- proto.ondewo.s2t.TranscribeFileResponse.prototype.getWordTimingList = function() {
3741
- return /** @type{!Array<!proto.ondewo.s2t.WordTiming>} */ (
3742
- jspb.Message.getRepeatedWrapperField(this, proto.ondewo.s2t.WordTiming, 3));
3743
- };
3744
-
3745
-
3746
- /**
3747
- * @param {!Array<!proto.ondewo.s2t.WordTiming>} value
3748
- * @return {!proto.ondewo.s2t.TranscribeFileResponse} returns this
3749
- */
3750
- proto.ondewo.s2t.TranscribeFileResponse.prototype.setWordTimingList = function(value) {
3751
- return jspb.Message.setRepeatedWrapperField(this, 3, value);
3752
- };
3753
-
3754
-
3755
- /**
3756
- * @param {!proto.ondewo.s2t.WordTiming=} opt_value
3757
- * @param {number=} opt_index
3758
- * @return {!proto.ondewo.s2t.WordTiming}
3759
- */
3760
- proto.ondewo.s2t.TranscribeFileResponse.prototype.addWordTiming = function(opt_value, opt_index) {
3761
- return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ondewo.s2t.WordTiming, opt_index);
3762
- };
3763
-
3764
-
3765
- /**
3766
- * Clears the list making it empty but non-null.
3767
- * @return {!proto.ondewo.s2t.TranscribeFileResponse} returns this
3768
- */
3769
- proto.ondewo.s2t.TranscribeFileResponse.prototype.clearWordTimingList = function() {
3770
- return this.setWordTimingList([]);
3771
- };
3772
-
3773
-
3774
- /**
3775
- * optional string audio_uuid = 4;
4539
+ * optional string audio_uuid = 3;
3776
4540
  * @return {string}
3777
4541
  */
3778
4542
  proto.ondewo.s2t.TranscribeFileResponse.prototype.getAudioUuid = function() {
3779
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4543
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3780
4544
  };
3781
4545
 
3782
4546
 
@@ -3785,197 +4549,7 @@ proto.ondewo.s2t.TranscribeFileResponse.prototype.getAudioUuid = function() {
3785
4549
  * @return {!proto.ondewo.s2t.TranscribeFileResponse} returns this
3786
4550
  */
3787
4551
  proto.ondewo.s2t.TranscribeFileResponse.prototype.setAudioUuid = function(value) {
3788
- return jspb.Message.setProto3StringField(this, 4, value);
3789
- };
3790
-
3791
-
3792
-
3793
-
3794
-
3795
- if (jspb.Message.GENERATE_TO_OBJECT) {
3796
- /**
3797
- * Creates an object representation of this proto.
3798
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3799
- * Optional fields that are not set will be set to undefined.
3800
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3801
- * For the list of reserved names please see:
3802
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3803
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3804
- * JSPB instance for transitional soy proto support:
3805
- * http://goto/soy-param-migration
3806
- * @return {!Object}
3807
- */
3808
- proto.ondewo.s2t.WordTiming.prototype.toObject = function(opt_includeInstance) {
3809
- return proto.ondewo.s2t.WordTiming.toObject(opt_includeInstance, this);
3810
- };
3811
-
3812
-
3813
- /**
3814
- * Static version of the {@see toObject} method.
3815
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3816
- * the JSPB instance for transitional soy proto support:
3817
- * http://goto/soy-param-migration
3818
- * @param {!proto.ondewo.s2t.WordTiming} msg The msg instance to transform.
3819
- * @return {!Object}
3820
- * @suppress {unusedLocalVariables} f is only used for nested messages
3821
- */
3822
- proto.ondewo.s2t.WordTiming.toObject = function(includeInstance, msg) {
3823
- var f, obj = {
3824
- word: jspb.Message.getFieldWithDefault(msg, 1, ""),
3825
- begin: jspb.Message.getFieldWithDefault(msg, 2, 0),
3826
- end: jspb.Message.getFieldWithDefault(msg, 3, 0)
3827
- };
3828
-
3829
- if (includeInstance) {
3830
- obj.$jspbMessageInstance = msg;
3831
- }
3832
- return obj;
3833
- };
3834
- }
3835
-
3836
-
3837
- /**
3838
- * Deserializes binary data (in protobuf wire format).
3839
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3840
- * @return {!proto.ondewo.s2t.WordTiming}
3841
- */
3842
- proto.ondewo.s2t.WordTiming.deserializeBinary = function(bytes) {
3843
- var reader = new jspb.BinaryReader(bytes);
3844
- var msg = new proto.ondewo.s2t.WordTiming;
3845
- return proto.ondewo.s2t.WordTiming.deserializeBinaryFromReader(msg, reader);
3846
- };
3847
-
3848
-
3849
- /**
3850
- * Deserializes binary data (in protobuf wire format) from the
3851
- * given reader into the given message object.
3852
- * @param {!proto.ondewo.s2t.WordTiming} msg The message object to deserialize into.
3853
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3854
- * @return {!proto.ondewo.s2t.WordTiming}
3855
- */
3856
- proto.ondewo.s2t.WordTiming.deserializeBinaryFromReader = function(msg, reader) {
3857
- while (reader.nextField()) {
3858
- if (reader.isEndGroup()) {
3859
- break;
3860
- }
3861
- var field = reader.getFieldNumber();
3862
- switch (field) {
3863
- case 1:
3864
- var value = /** @type {string} */ (reader.readString());
3865
- msg.setWord(value);
3866
- break;
3867
- case 2:
3868
- var value = /** @type {number} */ (reader.readInt32());
3869
- msg.setBegin(value);
3870
- break;
3871
- case 3:
3872
- var value = /** @type {number} */ (reader.readInt32());
3873
- msg.setEnd(value);
3874
- break;
3875
- default:
3876
- reader.skipField();
3877
- break;
3878
- }
3879
- }
3880
- return msg;
3881
- };
3882
-
3883
-
3884
- /**
3885
- * Serializes the message to binary data (in protobuf wire format).
3886
- * @return {!Uint8Array}
3887
- */
3888
- proto.ondewo.s2t.WordTiming.prototype.serializeBinary = function() {
3889
- var writer = new jspb.BinaryWriter();
3890
- proto.ondewo.s2t.WordTiming.serializeBinaryToWriter(this, writer);
3891
- return writer.getResultBuffer();
3892
- };
3893
-
3894
-
3895
- /**
3896
- * Serializes the given message to binary data (in protobuf wire
3897
- * format), writing to the given BinaryWriter.
3898
- * @param {!proto.ondewo.s2t.WordTiming} message
3899
- * @param {!jspb.BinaryWriter} writer
3900
- * @suppress {unusedLocalVariables} f is only used for nested messages
3901
- */
3902
- proto.ondewo.s2t.WordTiming.serializeBinaryToWriter = function(message, writer) {
3903
- var f = undefined;
3904
- f = message.getWord();
3905
- if (f.length > 0) {
3906
- writer.writeString(
3907
- 1,
3908
- f
3909
- );
3910
- }
3911
- f = message.getBegin();
3912
- if (f !== 0) {
3913
- writer.writeInt32(
3914
- 2,
3915
- f
3916
- );
3917
- }
3918
- f = message.getEnd();
3919
- if (f !== 0) {
3920
- writer.writeInt32(
3921
- 3,
3922
- f
3923
- );
3924
- }
3925
- };
3926
-
3927
-
3928
- /**
3929
- * optional string word = 1;
3930
- * @return {string}
3931
- */
3932
- proto.ondewo.s2t.WordTiming.prototype.getWord = function() {
3933
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3934
- };
3935
-
3936
-
3937
- /**
3938
- * @param {string} value
3939
- * @return {!proto.ondewo.s2t.WordTiming} returns this
3940
- */
3941
- proto.ondewo.s2t.WordTiming.prototype.setWord = function(value) {
3942
- return jspb.Message.setProto3StringField(this, 1, value);
3943
- };
3944
-
3945
-
3946
- /**
3947
- * optional int32 begin = 2;
3948
- * @return {number}
3949
- */
3950
- proto.ondewo.s2t.WordTiming.prototype.getBegin = function() {
3951
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3952
- };
3953
-
3954
-
3955
- /**
3956
- * @param {number} value
3957
- * @return {!proto.ondewo.s2t.WordTiming} returns this
3958
- */
3959
- proto.ondewo.s2t.WordTiming.prototype.setBegin = function(value) {
3960
- return jspb.Message.setProto3IntField(this, 2, value);
3961
- };
3962
-
3963
-
3964
- /**
3965
- * optional int32 end = 3;
3966
- * @return {number}
3967
- */
3968
- proto.ondewo.s2t.WordTiming.prototype.getEnd = function() {
3969
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3970
- };
3971
-
3972
-
3973
- /**
3974
- * @param {number} value
3975
- * @return {!proto.ondewo.s2t.WordTiming} returns this
3976
- */
3977
- proto.ondewo.s2t.WordTiming.prototype.setEnd = function(value) {
3978
- return jspb.Message.setProto3IntField(this, 3, value);
4552
+ return jspb.Message.setProto3StringField(this, 3, value);
3979
4553
  };
3980
4554
 
3981
4555
 
@@ -11922,15 +12496,6 @@ proto.ondewo.s2t.TrainUserLanguageModelRequest.prototype.setOrder = function(val
11922
12496
  };
11923
12497
 
11924
12498
 
11925
- /**
11926
- * @enum {number}
11927
- */
11928
- proto.ondewo.s2t.InferenceBackend = {
11929
- INFERENCE_BACKEND_UNKNOWN: 0,
11930
- INFERENCE_BACKEND_PYTORCH: 1,
11931
- INFERENCE_BACKEND_FLAX: 2
11932
- };
11933
-
11934
12499
  /**
11935
12500
  * @enum {number}
11936
12501
  */
@@ -11941,4 +12506,13 @@ proto.ondewo.s2t.Decoding = {
11941
12506
  BEAM_SEARCH: 3
11942
12507
  };
11943
12508
 
12509
+ /**
12510
+ * @enum {number}
12511
+ */
12512
+ proto.ondewo.s2t.InferenceBackend = {
12513
+ INFERENCE_BACKEND_UNKNOWN: 0,
12514
+ INFERENCE_BACKEND_PYTORCH: 1,
12515
+ INFERENCE_BACKEND_FLAX: 2
12516
+ };
12517
+
11944
12518
  goog.object.extend(exports, proto.ondewo.s2t);