@ondewo/s2t-client-typescript 5.3.0 → 5.5.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.
- package/api/ondewo/s2t/speech-to-text_pb.d.ts +185 -195
- package/api/ondewo/s2t/speech-to-text_pb.js +1407 -1544
- package/package.json +1 -1
- package/public-api.js +1 -1
|
@@ -35,15 +35,11 @@ goog.exportSymbol('proto.ondewo.s2t.ListS2tLanguagesResponse', null, global);
|
|
|
35
35
|
goog.exportSymbol('proto.ondewo.s2t.ListS2tPipelinesRequest', null, global);
|
|
36
36
|
goog.exportSymbol('proto.ondewo.s2t.ListS2tPipelinesResponse', null, global);
|
|
37
37
|
goog.exportSymbol('proto.ondewo.s2t.Logging', null, global);
|
|
38
|
-
goog.exportSymbol('proto.ondewo.s2t.Matchbox', null, global);
|
|
39
38
|
goog.exportSymbol('proto.ondewo.s2t.PostProcessing', null, global);
|
|
40
39
|
goog.exportSymbol('proto.ondewo.s2t.PostProcessingOptions', null, global);
|
|
41
40
|
goog.exportSymbol('proto.ondewo.s2t.PostProcessors', null, global);
|
|
42
41
|
goog.exportSymbol('proto.ondewo.s2t.PtFiles', null, global);
|
|
43
42
|
goog.exportSymbol('proto.ondewo.s2t.Pyannote', null, global);
|
|
44
|
-
goog.exportSymbol('proto.ondewo.s2t.Pyannote.OneofLogScaleCase', null, global);
|
|
45
|
-
goog.exportSymbol('proto.ondewo.s2t.Quartznet', null, global);
|
|
46
|
-
goog.exportSymbol('proto.ondewo.s2t.QuartznetTriton', null, global);
|
|
47
43
|
goog.exportSymbol('proto.ondewo.s2t.S2TDescription', null, global);
|
|
48
44
|
goog.exportSymbol('proto.ondewo.s2t.S2TGetServiceInfoResponse', null, global);
|
|
49
45
|
goog.exportSymbol('proto.ondewo.s2t.S2TInference', null, global);
|
|
@@ -66,6 +62,7 @@ goog.exportSymbol('proto.ondewo.s2t.TranscribeStreamRequest', null, global);
|
|
|
66
62
|
goog.exportSymbol('proto.ondewo.s2t.TranscribeStreamResponse', null, global);
|
|
67
63
|
goog.exportSymbol('proto.ondewo.s2t.TranscribeStreamResponse.OneofConfigCase', null, global);
|
|
68
64
|
goog.exportSymbol('proto.ondewo.s2t.Transcription', null, global);
|
|
65
|
+
goog.exportSymbol('proto.ondewo.s2t.TranscriptionAlternative', null, global);
|
|
69
66
|
goog.exportSymbol('proto.ondewo.s2t.TranscriptionReturnOptions', null, global);
|
|
70
67
|
goog.exportSymbol('proto.ondewo.s2t.UtteranceDetectionOptions', null, global);
|
|
71
68
|
goog.exportSymbol('proto.ondewo.s2t.UtteranceDetectionOptions.OneofTranscribeNotFinalCase', null, global);
|
|
@@ -74,7 +71,8 @@ goog.exportSymbol('proto.ondewo.s2t.Wav2Vec', null, global);
|
|
|
74
71
|
goog.exportSymbol('proto.ondewo.s2t.Wav2VecTriton', null, global);
|
|
75
72
|
goog.exportSymbol('proto.ondewo.s2t.Whisper', null, global);
|
|
76
73
|
goog.exportSymbol('proto.ondewo.s2t.WhisperTriton', null, global);
|
|
77
|
-
goog.exportSymbol('proto.ondewo.s2t.
|
|
74
|
+
goog.exportSymbol('proto.ondewo.s2t.WordAlternative', null, global);
|
|
75
|
+
goog.exportSymbol('proto.ondewo.s2t.WordDetail', null, global);
|
|
78
76
|
/**
|
|
79
77
|
* Generated by JsPbCodeGenerator.
|
|
80
78
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -169,16 +167,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
169
167
|
* @extends {jspb.Message}
|
|
170
168
|
* @constructor
|
|
171
169
|
*/
|
|
172
|
-
proto.ondewo.s2t.
|
|
173
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
170
|
+
proto.ondewo.s2t.Transcription = function(opt_data) {
|
|
171
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.s2t.Transcription.repeatedFields_, null);
|
|
174
172
|
};
|
|
175
|
-
goog.inherits(proto.ondewo.s2t.
|
|
173
|
+
goog.inherits(proto.ondewo.s2t.Transcription, jspb.Message);
|
|
176
174
|
if (goog.DEBUG && !COMPILED) {
|
|
177
175
|
/**
|
|
178
176
|
* @public
|
|
179
177
|
* @override
|
|
180
178
|
*/
|
|
181
|
-
proto.ondewo.s2t.
|
|
179
|
+
proto.ondewo.s2t.Transcription.displayName = 'proto.ondewo.s2t.Transcription';
|
|
182
180
|
}
|
|
183
181
|
/**
|
|
184
182
|
* Generated by JsPbCodeGenerator.
|
|
@@ -190,16 +188,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
190
188
|
* @extends {jspb.Message}
|
|
191
189
|
* @constructor
|
|
192
190
|
*/
|
|
193
|
-
proto.ondewo.s2t.
|
|
194
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
191
|
+
proto.ondewo.s2t.TranscriptionAlternative = function(opt_data) {
|
|
192
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.s2t.TranscriptionAlternative.repeatedFields_, null);
|
|
195
193
|
};
|
|
196
|
-
goog.inherits(proto.ondewo.s2t.
|
|
194
|
+
goog.inherits(proto.ondewo.s2t.TranscriptionAlternative, jspb.Message);
|
|
197
195
|
if (goog.DEBUG && !COMPILED) {
|
|
198
196
|
/**
|
|
199
197
|
* @public
|
|
200
198
|
* @override
|
|
201
199
|
*/
|
|
202
|
-
proto.ondewo.s2t.
|
|
200
|
+
proto.ondewo.s2t.TranscriptionAlternative.displayName = 'proto.ondewo.s2t.TranscriptionAlternative';
|
|
203
201
|
}
|
|
204
202
|
/**
|
|
205
203
|
* Generated by JsPbCodeGenerator.
|
|
@@ -211,16 +209,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
211
209
|
* @extends {jspb.Message}
|
|
212
210
|
* @constructor
|
|
213
211
|
*/
|
|
214
|
-
proto.ondewo.s2t.
|
|
215
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.s2t.
|
|
212
|
+
proto.ondewo.s2t.WordDetail = function(opt_data) {
|
|
213
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.s2t.WordDetail.repeatedFields_, null);
|
|
216
214
|
};
|
|
217
|
-
goog.inherits(proto.ondewo.s2t.
|
|
215
|
+
goog.inherits(proto.ondewo.s2t.WordDetail, jspb.Message);
|
|
218
216
|
if (goog.DEBUG && !COMPILED) {
|
|
219
217
|
/**
|
|
220
218
|
* @public
|
|
221
219
|
* @override
|
|
222
220
|
*/
|
|
223
|
-
proto.ondewo.s2t.
|
|
221
|
+
proto.ondewo.s2t.WordDetail.displayName = 'proto.ondewo.s2t.WordDetail';
|
|
224
222
|
}
|
|
225
223
|
/**
|
|
226
224
|
* Generated by JsPbCodeGenerator.
|
|
@@ -232,16 +230,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
232
230
|
* @extends {jspb.Message}
|
|
233
231
|
* @constructor
|
|
234
232
|
*/
|
|
235
|
-
proto.ondewo.s2t.
|
|
233
|
+
proto.ondewo.s2t.WordAlternative = function(opt_data) {
|
|
236
234
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
237
235
|
};
|
|
238
|
-
goog.inherits(proto.ondewo.s2t.
|
|
236
|
+
goog.inherits(proto.ondewo.s2t.WordAlternative, jspb.Message);
|
|
239
237
|
if (goog.DEBUG && !COMPILED) {
|
|
240
238
|
/**
|
|
241
239
|
* @public
|
|
242
240
|
* @override
|
|
243
241
|
*/
|
|
244
|
-
proto.ondewo.s2t.
|
|
242
|
+
proto.ondewo.s2t.WordAlternative.displayName = 'proto.ondewo.s2t.WordAlternative';
|
|
245
243
|
}
|
|
246
244
|
/**
|
|
247
245
|
* Generated by JsPbCodeGenerator.
|
|
@@ -253,16 +251,37 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
253
251
|
* @extends {jspb.Message}
|
|
254
252
|
* @constructor
|
|
255
253
|
*/
|
|
256
|
-
proto.ondewo.s2t.
|
|
257
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
254
|
+
proto.ondewo.s2t.TranscribeStreamRequest = function(opt_data) {
|
|
255
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
258
256
|
};
|
|
259
|
-
goog.inherits(proto.ondewo.s2t.
|
|
257
|
+
goog.inherits(proto.ondewo.s2t.TranscribeStreamRequest, jspb.Message);
|
|
260
258
|
if (goog.DEBUG && !COMPILED) {
|
|
261
259
|
/**
|
|
262
260
|
* @public
|
|
263
261
|
* @override
|
|
264
262
|
*/
|
|
265
|
-
proto.ondewo.s2t.
|
|
263
|
+
proto.ondewo.s2t.TranscribeStreamRequest.displayName = 'proto.ondewo.s2t.TranscribeStreamRequest';
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Generated by JsPbCodeGenerator.
|
|
267
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
268
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
269
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
270
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
271
|
+
* valid.
|
|
272
|
+
* @extends {jspb.Message}
|
|
273
|
+
* @constructor
|
|
274
|
+
*/
|
|
275
|
+
proto.ondewo.s2t.TranscribeStreamResponse = function(opt_data) {
|
|
276
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.s2t.TranscribeStreamResponse.repeatedFields_, proto.ondewo.s2t.TranscribeStreamResponse.oneofGroups_);
|
|
277
|
+
};
|
|
278
|
+
goog.inherits(proto.ondewo.s2t.TranscribeStreamResponse, jspb.Message);
|
|
279
|
+
if (goog.DEBUG && !COMPILED) {
|
|
280
|
+
/**
|
|
281
|
+
* @public
|
|
282
|
+
* @override
|
|
283
|
+
*/
|
|
284
|
+
proto.ondewo.s2t.TranscribeStreamResponse.displayName = 'proto.ondewo.s2t.TranscribeStreamResponse';
|
|
266
285
|
}
|
|
267
286
|
/**
|
|
268
287
|
* Generated by JsPbCodeGenerator.
|
|
@@ -274,16 +293,37 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
274
293
|
* @extends {jspb.Message}
|
|
275
294
|
* @constructor
|
|
276
295
|
*/
|
|
277
|
-
proto.ondewo.s2t.
|
|
296
|
+
proto.ondewo.s2t.TranscribeFileRequest = function(opt_data) {
|
|
278
297
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
279
298
|
};
|
|
280
|
-
goog.inherits(proto.ondewo.s2t.
|
|
299
|
+
goog.inherits(proto.ondewo.s2t.TranscribeFileRequest, jspb.Message);
|
|
300
|
+
if (goog.DEBUG && !COMPILED) {
|
|
301
|
+
/**
|
|
302
|
+
* @public
|
|
303
|
+
* @override
|
|
304
|
+
*/
|
|
305
|
+
proto.ondewo.s2t.TranscribeFileRequest.displayName = 'proto.ondewo.s2t.TranscribeFileRequest';
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Generated by JsPbCodeGenerator.
|
|
309
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
310
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
311
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
312
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
313
|
+
* valid.
|
|
314
|
+
* @extends {jspb.Message}
|
|
315
|
+
* @constructor
|
|
316
|
+
*/
|
|
317
|
+
proto.ondewo.s2t.TranscribeFileResponse = function(opt_data) {
|
|
318
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.s2t.TranscribeFileResponse.repeatedFields_, null);
|
|
319
|
+
};
|
|
320
|
+
goog.inherits(proto.ondewo.s2t.TranscribeFileResponse, jspb.Message);
|
|
281
321
|
if (goog.DEBUG && !COMPILED) {
|
|
282
322
|
/**
|
|
283
323
|
* @public
|
|
284
324
|
* @override
|
|
285
325
|
*/
|
|
286
|
-
proto.ondewo.s2t.
|
|
326
|
+
proto.ondewo.s2t.TranscribeFileResponse.displayName = 'proto.ondewo.s2t.TranscribeFileResponse';
|
|
287
327
|
}
|
|
288
328
|
/**
|
|
289
329
|
* Generated by JsPbCodeGenerator.
|
|
@@ -621,27 +661,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
621
661
|
*/
|
|
622
662
|
proto.ondewo.s2t.Wav2VecTriton.displayName = 'proto.ondewo.s2t.Wav2VecTriton';
|
|
623
663
|
}
|
|
624
|
-
/**
|
|
625
|
-
* Generated by JsPbCodeGenerator.
|
|
626
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
627
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
628
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
629
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
630
|
-
* valid.
|
|
631
|
-
* @extends {jspb.Message}
|
|
632
|
-
* @constructor
|
|
633
|
-
*/
|
|
634
|
-
proto.ondewo.s2t.Quartznet = function(opt_data) {
|
|
635
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
636
|
-
};
|
|
637
|
-
goog.inherits(proto.ondewo.s2t.Quartznet, jspb.Message);
|
|
638
|
-
if (goog.DEBUG && !COMPILED) {
|
|
639
|
-
/**
|
|
640
|
-
* @public
|
|
641
|
-
* @override
|
|
642
|
-
*/
|
|
643
|
-
proto.ondewo.s2t.Quartznet.displayName = 'proto.ondewo.s2t.Quartznet';
|
|
644
|
-
}
|
|
645
664
|
/**
|
|
646
665
|
* Generated by JsPbCodeGenerator.
|
|
647
666
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -684,27 +703,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
684
703
|
*/
|
|
685
704
|
proto.ondewo.s2t.CkptFile.displayName = 'proto.ondewo.s2t.CkptFile';
|
|
686
705
|
}
|
|
687
|
-
/**
|
|
688
|
-
* Generated by JsPbCodeGenerator.
|
|
689
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
690
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
691
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
692
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
693
|
-
* valid.
|
|
694
|
-
* @extends {jspb.Message}
|
|
695
|
-
* @constructor
|
|
696
|
-
*/
|
|
697
|
-
proto.ondewo.s2t.QuartznetTriton = function(opt_data) {
|
|
698
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
699
|
-
};
|
|
700
|
-
goog.inherits(proto.ondewo.s2t.QuartznetTriton, jspb.Message);
|
|
701
|
-
if (goog.DEBUG && !COMPILED) {
|
|
702
|
-
/**
|
|
703
|
-
* @public
|
|
704
|
-
* @override
|
|
705
|
-
*/
|
|
706
|
-
proto.ondewo.s2t.QuartznetTriton.displayName = 'proto.ondewo.s2t.QuartznetTriton';
|
|
707
|
-
}
|
|
708
706
|
/**
|
|
709
707
|
* Generated by JsPbCodeGenerator.
|
|
710
708
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -800,7 +798,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
800
798
|
* @constructor
|
|
801
799
|
*/
|
|
802
800
|
proto.ondewo.s2t.Pyannote = function(opt_data) {
|
|
803
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null,
|
|
801
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
804
802
|
};
|
|
805
803
|
goog.inherits(proto.ondewo.s2t.Pyannote, jspb.Message);
|
|
806
804
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -810,27 +808,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
810
808
|
*/
|
|
811
809
|
proto.ondewo.s2t.Pyannote.displayName = 'proto.ondewo.s2t.Pyannote';
|
|
812
810
|
}
|
|
813
|
-
/**
|
|
814
|
-
* Generated by JsPbCodeGenerator.
|
|
815
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
816
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
817
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
818
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
819
|
-
* valid.
|
|
820
|
-
* @extends {jspb.Message}
|
|
821
|
-
* @constructor
|
|
822
|
-
*/
|
|
823
|
-
proto.ondewo.s2t.Matchbox = function(opt_data) {
|
|
824
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
825
|
-
};
|
|
826
|
-
goog.inherits(proto.ondewo.s2t.Matchbox, jspb.Message);
|
|
827
|
-
if (goog.DEBUG && !COMPILED) {
|
|
828
|
-
/**
|
|
829
|
-
* @public
|
|
830
|
-
* @override
|
|
831
|
-
*/
|
|
832
|
-
proto.ondewo.s2t.Matchbox.displayName = 'proto.ondewo.s2t.Matchbox';
|
|
833
|
-
}
|
|
834
811
|
/**
|
|
835
812
|
* Generated by JsPbCodeGenerator.
|
|
836
813
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1092,7 +1069,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1092
1069
|
* @private {!Array<!Array<number>>}
|
|
1093
1070
|
* @const
|
|
1094
1071
|
*/
|
|
1095
|
-
proto.ondewo.s2t.TranscribeRequestConfig.oneofGroups_ = [[3],[4],[5],[6
|
|
1072
|
+
proto.ondewo.s2t.TranscribeRequestConfig.oneofGroups_ = [[3],[4],[5],[6],[8]];
|
|
1096
1073
|
|
|
1097
1074
|
/**
|
|
1098
1075
|
* @enum {number}
|
|
@@ -1144,8 +1121,7 @@ proto.ondewo.s2t.TranscribeRequestConfig.prototype.getOneofUtteranceDetectionCas
|
|
|
1144
1121
|
*/
|
|
1145
1122
|
proto.ondewo.s2t.TranscribeRequestConfig.VoiceActivityDetectionCase = {
|
|
1146
1123
|
VOICE_ACTIVITY_DETECTION_NOT_SET: 0,
|
|
1147
|
-
PYANNOTE: 6
|
|
1148
|
-
MATCHBOX: 7
|
|
1124
|
+
PYANNOTE: 6
|
|
1149
1125
|
};
|
|
1150
1126
|
|
|
1151
1127
|
/**
|
|
@@ -1207,8 +1183,9 @@ proto.ondewo.s2t.TranscribeRequestConfig.toObject = function(includeInstance, ms
|
|
|
1207
1183
|
postProcessing: (f = msg.getPostProcessing()) && proto.ondewo.s2t.PostProcessingOptions.toObject(includeInstance, f),
|
|
1208
1184
|
utteranceDetection: (f = msg.getUtteranceDetection()) && proto.ondewo.s2t.UtteranceDetectionOptions.toObject(includeInstance, f),
|
|
1209
1185
|
pyannote: (f = msg.getPyannote()) && proto.ondewo.s2t.Pyannote.toObject(includeInstance, f),
|
|
1210
|
-
|
|
1211
|
-
|
|
1186
|
+
returnOptions: (f = msg.getReturnOptions()) && proto.ondewo.s2t.TranscriptionReturnOptions.toObject(includeInstance, f),
|
|
1187
|
+
language: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
1188
|
+
task: jspb.Message.getFieldWithDefault(msg, 10, "")
|
|
1212
1189
|
};
|
|
1213
1190
|
|
|
1214
1191
|
if (includeInstance) {
|
|
@@ -1272,16 +1249,19 @@ proto.ondewo.s2t.TranscribeRequestConfig.deserializeBinaryFromReader = function(
|
|
|
1272
1249
|
reader.readMessage(value,proto.ondewo.s2t.Pyannote.deserializeBinaryFromReader);
|
|
1273
1250
|
msg.setPyannote(value);
|
|
1274
1251
|
break;
|
|
1275
|
-
case 7:
|
|
1276
|
-
var value = new proto.ondewo.s2t.Matchbox;
|
|
1277
|
-
reader.readMessage(value,proto.ondewo.s2t.Matchbox.deserializeBinaryFromReader);
|
|
1278
|
-
msg.setMatchbox(value);
|
|
1279
|
-
break;
|
|
1280
1252
|
case 8:
|
|
1281
1253
|
var value = new proto.ondewo.s2t.TranscriptionReturnOptions;
|
|
1282
1254
|
reader.readMessage(value,proto.ondewo.s2t.TranscriptionReturnOptions.deserializeBinaryFromReader);
|
|
1283
1255
|
msg.setReturnOptions(value);
|
|
1284
1256
|
break;
|
|
1257
|
+
case 9:
|
|
1258
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1259
|
+
msg.setLanguage(value);
|
|
1260
|
+
break;
|
|
1261
|
+
case 10:
|
|
1262
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1263
|
+
msg.setTask(value);
|
|
1264
|
+
break;
|
|
1285
1265
|
default:
|
|
1286
1266
|
reader.skipField();
|
|
1287
1267
|
break;
|
|
@@ -1356,14 +1336,6 @@ proto.ondewo.s2t.TranscribeRequestConfig.serializeBinaryToWriter = function(mess
|
|
|
1356
1336
|
proto.ondewo.s2t.Pyannote.serializeBinaryToWriter
|
|
1357
1337
|
);
|
|
1358
1338
|
}
|
|
1359
|
-
f = message.getMatchbox();
|
|
1360
|
-
if (f != null) {
|
|
1361
|
-
writer.writeMessage(
|
|
1362
|
-
7,
|
|
1363
|
-
f,
|
|
1364
|
-
proto.ondewo.s2t.Matchbox.serializeBinaryToWriter
|
|
1365
|
-
);
|
|
1366
|
-
}
|
|
1367
1339
|
f = message.getReturnOptions();
|
|
1368
1340
|
if (f != null) {
|
|
1369
1341
|
writer.writeMessage(
|
|
@@ -1372,6 +1344,20 @@ proto.ondewo.s2t.TranscribeRequestConfig.serializeBinaryToWriter = function(mess
|
|
|
1372
1344
|
proto.ondewo.s2t.TranscriptionReturnOptions.serializeBinaryToWriter
|
|
1373
1345
|
);
|
|
1374
1346
|
}
|
|
1347
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
|
1348
|
+
if (f != null) {
|
|
1349
|
+
writer.writeString(
|
|
1350
|
+
9,
|
|
1351
|
+
f
|
|
1352
|
+
);
|
|
1353
|
+
}
|
|
1354
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 10));
|
|
1355
|
+
if (f != null) {
|
|
1356
|
+
writer.writeString(
|
|
1357
|
+
10,
|
|
1358
|
+
f
|
|
1359
|
+
);
|
|
1360
|
+
}
|
|
1375
1361
|
};
|
|
1376
1362
|
|
|
1377
1363
|
|
|
@@ -1559,21 +1545,21 @@ proto.ondewo.s2t.TranscribeRequestConfig.prototype.hasPyannote = function() {
|
|
|
1559
1545
|
|
|
1560
1546
|
|
|
1561
1547
|
/**
|
|
1562
|
-
* optional
|
|
1563
|
-
* @return {?proto.ondewo.s2t.
|
|
1548
|
+
* optional TranscriptionReturnOptions return_options = 8;
|
|
1549
|
+
* @return {?proto.ondewo.s2t.TranscriptionReturnOptions}
|
|
1564
1550
|
*/
|
|
1565
|
-
proto.ondewo.s2t.TranscribeRequestConfig.prototype.
|
|
1566
|
-
return /** @type{?proto.ondewo.s2t.
|
|
1567
|
-
jspb.Message.getWrapperField(this, proto.ondewo.s2t.
|
|
1551
|
+
proto.ondewo.s2t.TranscribeRequestConfig.prototype.getReturnOptions = function() {
|
|
1552
|
+
return /** @type{?proto.ondewo.s2t.TranscriptionReturnOptions} */ (
|
|
1553
|
+
jspb.Message.getWrapperField(this, proto.ondewo.s2t.TranscriptionReturnOptions, 8));
|
|
1568
1554
|
};
|
|
1569
1555
|
|
|
1570
1556
|
|
|
1571
1557
|
/**
|
|
1572
|
-
* @param {?proto.ondewo.s2t.
|
|
1558
|
+
* @param {?proto.ondewo.s2t.TranscriptionReturnOptions|undefined} value
|
|
1573
1559
|
* @return {!proto.ondewo.s2t.TranscribeRequestConfig} returns this
|
|
1574
1560
|
*/
|
|
1575
|
-
proto.ondewo.s2t.TranscribeRequestConfig.prototype.
|
|
1576
|
-
return jspb.Message.setOneofWrapperField(this,
|
|
1561
|
+
proto.ondewo.s2t.TranscribeRequestConfig.prototype.setReturnOptions = function(value) {
|
|
1562
|
+
return jspb.Message.setOneofWrapperField(this, 8, proto.ondewo.s2t.TranscribeRequestConfig.oneofGroups_[4], value);
|
|
1577
1563
|
};
|
|
1578
1564
|
|
|
1579
1565
|
|
|
@@ -1581,8 +1567,8 @@ proto.ondewo.s2t.TranscribeRequestConfig.prototype.setMatchbox = function(value)
|
|
|
1581
1567
|
* Clears the message field making it undefined.
|
|
1582
1568
|
* @return {!proto.ondewo.s2t.TranscribeRequestConfig} returns this
|
|
1583
1569
|
*/
|
|
1584
|
-
proto.ondewo.s2t.TranscribeRequestConfig.prototype.
|
|
1585
|
-
return this.
|
|
1570
|
+
proto.ondewo.s2t.TranscribeRequestConfig.prototype.clearReturnOptions = function() {
|
|
1571
|
+
return this.setReturnOptions(undefined);
|
|
1586
1572
|
};
|
|
1587
1573
|
|
|
1588
1574
|
|
|
@@ -1590,36 +1576,35 @@ proto.ondewo.s2t.TranscribeRequestConfig.prototype.clearMatchbox = function() {
|
|
|
1590
1576
|
* Returns whether this field is set.
|
|
1591
1577
|
* @return {boolean}
|
|
1592
1578
|
*/
|
|
1593
|
-
proto.ondewo.s2t.TranscribeRequestConfig.prototype.
|
|
1594
|
-
return jspb.Message.getField(this,
|
|
1579
|
+
proto.ondewo.s2t.TranscribeRequestConfig.prototype.hasReturnOptions = function() {
|
|
1580
|
+
return jspb.Message.getField(this, 8) != null;
|
|
1595
1581
|
};
|
|
1596
1582
|
|
|
1597
1583
|
|
|
1598
1584
|
/**
|
|
1599
|
-
* optional
|
|
1600
|
-
* @return {
|
|
1585
|
+
* optional string language = 9;
|
|
1586
|
+
* @return {string}
|
|
1601
1587
|
*/
|
|
1602
|
-
proto.ondewo.s2t.TranscribeRequestConfig.prototype.
|
|
1603
|
-
return /** @type{
|
|
1604
|
-
jspb.Message.getWrapperField(this, proto.ondewo.s2t.TranscriptionReturnOptions, 8));
|
|
1588
|
+
proto.ondewo.s2t.TranscribeRequestConfig.prototype.getLanguage = function() {
|
|
1589
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
1605
1590
|
};
|
|
1606
1591
|
|
|
1607
1592
|
|
|
1608
1593
|
/**
|
|
1609
|
-
* @param {
|
|
1594
|
+
* @param {string} value
|
|
1610
1595
|
* @return {!proto.ondewo.s2t.TranscribeRequestConfig} returns this
|
|
1611
|
-
*/
|
|
1612
|
-
proto.ondewo.s2t.TranscribeRequestConfig.prototype.
|
|
1613
|
-
return jspb.Message.
|
|
1596
|
+
*/
|
|
1597
|
+
proto.ondewo.s2t.TranscribeRequestConfig.prototype.setLanguage = function(value) {
|
|
1598
|
+
return jspb.Message.setField(this, 9, value);
|
|
1614
1599
|
};
|
|
1615
1600
|
|
|
1616
1601
|
|
|
1617
1602
|
/**
|
|
1618
|
-
* Clears the
|
|
1603
|
+
* Clears the field making it undefined.
|
|
1619
1604
|
* @return {!proto.ondewo.s2t.TranscribeRequestConfig} returns this
|
|
1620
1605
|
*/
|
|
1621
|
-
proto.ondewo.s2t.TranscribeRequestConfig.prototype.
|
|
1622
|
-
return
|
|
1606
|
+
proto.ondewo.s2t.TranscribeRequestConfig.prototype.clearLanguage = function() {
|
|
1607
|
+
return jspb.Message.setField(this, 9, undefined);
|
|
1623
1608
|
};
|
|
1624
1609
|
|
|
1625
1610
|
|
|
@@ -1627,8 +1612,44 @@ proto.ondewo.s2t.TranscribeRequestConfig.prototype.clearReturnOptions = function
|
|
|
1627
1612
|
* Returns whether this field is set.
|
|
1628
1613
|
* @return {boolean}
|
|
1629
1614
|
*/
|
|
1630
|
-
proto.ondewo.s2t.TranscribeRequestConfig.prototype.
|
|
1631
|
-
return jspb.Message.getField(this,
|
|
1615
|
+
proto.ondewo.s2t.TranscribeRequestConfig.prototype.hasLanguage = function() {
|
|
1616
|
+
return jspb.Message.getField(this, 9) != null;
|
|
1617
|
+
};
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
/**
|
|
1621
|
+
* optional string task = 10;
|
|
1622
|
+
* @return {string}
|
|
1623
|
+
*/
|
|
1624
|
+
proto.ondewo.s2t.TranscribeRequestConfig.prototype.getTask = function() {
|
|
1625
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
1626
|
+
};
|
|
1627
|
+
|
|
1628
|
+
|
|
1629
|
+
/**
|
|
1630
|
+
* @param {string} value
|
|
1631
|
+
* @return {!proto.ondewo.s2t.TranscribeRequestConfig} returns this
|
|
1632
|
+
*/
|
|
1633
|
+
proto.ondewo.s2t.TranscribeRequestConfig.prototype.setTask = function(value) {
|
|
1634
|
+
return jspb.Message.setField(this, 10, value);
|
|
1635
|
+
};
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
/**
|
|
1639
|
+
* Clears the field making it undefined.
|
|
1640
|
+
* @return {!proto.ondewo.s2t.TranscribeRequestConfig} returns this
|
|
1641
|
+
*/
|
|
1642
|
+
proto.ondewo.s2t.TranscribeRequestConfig.prototype.clearTask = function() {
|
|
1643
|
+
return jspb.Message.setField(this, 10, undefined);
|
|
1644
|
+
};
|
|
1645
|
+
|
|
1646
|
+
|
|
1647
|
+
/**
|
|
1648
|
+
* Returns whether this field is set.
|
|
1649
|
+
* @return {boolean}
|
|
1650
|
+
*/
|
|
1651
|
+
proto.ondewo.s2t.TranscribeRequestConfig.prototype.hasTask = function() {
|
|
1652
|
+
return jspb.Message.getField(this, 10) != null;
|
|
1632
1653
|
};
|
|
1633
1654
|
|
|
1634
1655
|
|
|
@@ -2447,6 +2468,13 @@ proto.ondewo.s2t.PostProcessingOptions.prototype.hasConfig = function() {
|
|
|
2447
2468
|
|
|
2448
2469
|
|
|
2449
2470
|
|
|
2471
|
+
/**
|
|
2472
|
+
* List of repeated fields within this message type.
|
|
2473
|
+
* @private {!Array<number>}
|
|
2474
|
+
* @const
|
|
2475
|
+
*/
|
|
2476
|
+
proto.ondewo.s2t.Transcription.repeatedFields_ = [3,4];
|
|
2477
|
+
|
|
2450
2478
|
|
|
2451
2479
|
|
|
2452
2480
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2462,8 +2490,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
2462
2490
|
* http://goto/soy-param-migration
|
|
2463
2491
|
* @return {!Object}
|
|
2464
2492
|
*/
|
|
2465
|
-
proto.ondewo.s2t.
|
|
2466
|
-
return proto.ondewo.s2t.
|
|
2493
|
+
proto.ondewo.s2t.Transcription.prototype.toObject = function(opt_includeInstance) {
|
|
2494
|
+
return proto.ondewo.s2t.Transcription.toObject(opt_includeInstance, this);
|
|
2467
2495
|
};
|
|
2468
2496
|
|
|
2469
2497
|
|
|
@@ -2472,16 +2500,18 @@ proto.ondewo.s2t.TranscribeStreamRequest.prototype.toObject = function(opt_inclu
|
|
|
2472
2500
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2473
2501
|
* the JSPB instance for transitional soy proto support:
|
|
2474
2502
|
* http://goto/soy-param-migration
|
|
2475
|
-
* @param {!proto.ondewo.s2t.
|
|
2503
|
+
* @param {!proto.ondewo.s2t.Transcription} msg The msg instance to transform.
|
|
2476
2504
|
* @return {!Object}
|
|
2477
2505
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2478
2506
|
*/
|
|
2479
|
-
proto.ondewo.s2t.
|
|
2507
|
+
proto.ondewo.s2t.Transcription.toObject = function(includeInstance, msg) {
|
|
2480
2508
|
var f, obj = {
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2509
|
+
transcription: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2510
|
+
confidenceScore: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
2511
|
+
wordsList: jspb.Message.toObjectList(msg.getWordsList(),
|
|
2512
|
+
proto.ondewo.s2t.WordDetail.toObject, includeInstance),
|
|
2513
|
+
alternativesList: jspb.Message.toObjectList(msg.getAlternativesList(),
|
|
2514
|
+
proto.ondewo.s2t.TranscriptionAlternative.toObject, includeInstance)
|
|
2485
2515
|
};
|
|
2486
2516
|
|
|
2487
2517
|
if (includeInstance) {
|
|
@@ -2495,23 +2525,23 @@ proto.ondewo.s2t.TranscribeStreamRequest.toObject = function(includeInstance, ms
|
|
|
2495
2525
|
/**
|
|
2496
2526
|
* Deserializes binary data (in protobuf wire format).
|
|
2497
2527
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2498
|
-
* @return {!proto.ondewo.s2t.
|
|
2528
|
+
* @return {!proto.ondewo.s2t.Transcription}
|
|
2499
2529
|
*/
|
|
2500
|
-
proto.ondewo.s2t.
|
|
2530
|
+
proto.ondewo.s2t.Transcription.deserializeBinary = function(bytes) {
|
|
2501
2531
|
var reader = new jspb.BinaryReader(bytes);
|
|
2502
|
-
var msg = new proto.ondewo.s2t.
|
|
2503
|
-
return proto.ondewo.s2t.
|
|
2532
|
+
var msg = new proto.ondewo.s2t.Transcription;
|
|
2533
|
+
return proto.ondewo.s2t.Transcription.deserializeBinaryFromReader(msg, reader);
|
|
2504
2534
|
};
|
|
2505
2535
|
|
|
2506
2536
|
|
|
2507
2537
|
/**
|
|
2508
2538
|
* Deserializes binary data (in protobuf wire format) from the
|
|
2509
2539
|
* given reader into the given message object.
|
|
2510
|
-
* @param {!proto.ondewo.s2t.
|
|
2540
|
+
* @param {!proto.ondewo.s2t.Transcription} msg The message object to deserialize into.
|
|
2511
2541
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2512
|
-
* @return {!proto.ondewo.s2t.
|
|
2542
|
+
* @return {!proto.ondewo.s2t.Transcription}
|
|
2513
2543
|
*/
|
|
2514
|
-
proto.ondewo.s2t.
|
|
2544
|
+
proto.ondewo.s2t.Transcription.deserializeBinaryFromReader = function(msg, reader) {
|
|
2515
2545
|
while (reader.nextField()) {
|
|
2516
2546
|
if (reader.isEndGroup()) {
|
|
2517
2547
|
break;
|
|
@@ -2519,21 +2549,22 @@ proto.ondewo.s2t.TranscribeStreamRequest.deserializeBinaryFromReader = function(
|
|
|
2519
2549
|
var field = reader.getFieldNumber();
|
|
2520
2550
|
switch (field) {
|
|
2521
2551
|
case 1:
|
|
2522
|
-
var value = /** @type {
|
|
2523
|
-
msg.
|
|
2552
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2553
|
+
msg.setTranscription(value);
|
|
2524
2554
|
break;
|
|
2525
2555
|
case 2:
|
|
2526
|
-
var value = /** @type {
|
|
2527
|
-
msg.
|
|
2556
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
2557
|
+
msg.setConfidenceScore(value);
|
|
2528
2558
|
break;
|
|
2529
2559
|
case 3:
|
|
2530
|
-
var value = new proto.ondewo.s2t.
|
|
2531
|
-
reader.readMessage(value,proto.ondewo.s2t.
|
|
2532
|
-
msg.
|
|
2560
|
+
var value = new proto.ondewo.s2t.WordDetail;
|
|
2561
|
+
reader.readMessage(value,proto.ondewo.s2t.WordDetail.deserializeBinaryFromReader);
|
|
2562
|
+
msg.addWords(value);
|
|
2533
2563
|
break;
|
|
2534
2564
|
case 4:
|
|
2535
|
-
var value =
|
|
2536
|
-
|
|
2565
|
+
var value = new proto.ondewo.s2t.TranscriptionAlternative;
|
|
2566
|
+
reader.readMessage(value,proto.ondewo.s2t.TranscriptionAlternative.deserializeBinaryFromReader);
|
|
2567
|
+
msg.addAlternatives(value);
|
|
2537
2568
|
break;
|
|
2538
2569
|
default:
|
|
2539
2570
|
reader.skipField();
|
|
@@ -2548,9 +2579,9 @@ proto.ondewo.s2t.TranscribeStreamRequest.deserializeBinaryFromReader = function(
|
|
|
2548
2579
|
* Serializes the message to binary data (in protobuf wire format).
|
|
2549
2580
|
* @return {!Uint8Array}
|
|
2550
2581
|
*/
|
|
2551
|
-
proto.ondewo.s2t.
|
|
2582
|
+
proto.ondewo.s2t.Transcription.prototype.serializeBinary = function() {
|
|
2552
2583
|
var writer = new jspb.BinaryWriter();
|
|
2553
|
-
proto.ondewo.s2t.
|
|
2584
|
+
proto.ondewo.s2t.Transcription.serializeBinaryToWriter(this, writer);
|
|
2554
2585
|
return writer.getResultBuffer();
|
|
2555
2586
|
};
|
|
2556
2587
|
|
|
@@ -2558,160 +2589,165 @@ proto.ondewo.s2t.TranscribeStreamRequest.prototype.serializeBinary = function()
|
|
|
2558
2589
|
/**
|
|
2559
2590
|
* Serializes the given message to binary data (in protobuf wire
|
|
2560
2591
|
* format), writing to the given BinaryWriter.
|
|
2561
|
-
* @param {!proto.ondewo.s2t.
|
|
2592
|
+
* @param {!proto.ondewo.s2t.Transcription} message
|
|
2562
2593
|
* @param {!jspb.BinaryWriter} writer
|
|
2563
2594
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2564
2595
|
*/
|
|
2565
|
-
proto.ondewo.s2t.
|
|
2596
|
+
proto.ondewo.s2t.Transcription.serializeBinaryToWriter = function(message, writer) {
|
|
2566
2597
|
var f = undefined;
|
|
2567
|
-
f = message.
|
|
2598
|
+
f = message.getTranscription();
|
|
2568
2599
|
if (f.length > 0) {
|
|
2569
|
-
writer.
|
|
2600
|
+
writer.writeString(
|
|
2570
2601
|
1,
|
|
2571
2602
|
f
|
|
2572
2603
|
);
|
|
2573
2604
|
}
|
|
2574
|
-
f = message.
|
|
2575
|
-
if (f) {
|
|
2576
|
-
writer.
|
|
2605
|
+
f = message.getConfidenceScore();
|
|
2606
|
+
if (f !== 0.0) {
|
|
2607
|
+
writer.writeFloat(
|
|
2577
2608
|
2,
|
|
2578
2609
|
f
|
|
2579
2610
|
);
|
|
2580
2611
|
}
|
|
2581
|
-
f = message.
|
|
2582
|
-
if (f
|
|
2583
|
-
writer.
|
|
2612
|
+
f = message.getWordsList();
|
|
2613
|
+
if (f.length > 0) {
|
|
2614
|
+
writer.writeRepeatedMessage(
|
|
2584
2615
|
3,
|
|
2585
2616
|
f,
|
|
2586
|
-
proto.ondewo.s2t.
|
|
2617
|
+
proto.ondewo.s2t.WordDetail.serializeBinaryToWriter
|
|
2587
2618
|
);
|
|
2588
2619
|
}
|
|
2589
|
-
f = message.
|
|
2590
|
-
if (f) {
|
|
2591
|
-
writer.
|
|
2620
|
+
f = message.getAlternativesList();
|
|
2621
|
+
if (f.length > 0) {
|
|
2622
|
+
writer.writeRepeatedMessage(
|
|
2592
2623
|
4,
|
|
2593
|
-
f
|
|
2624
|
+
f,
|
|
2625
|
+
proto.ondewo.s2t.TranscriptionAlternative.serializeBinaryToWriter
|
|
2594
2626
|
);
|
|
2595
2627
|
}
|
|
2596
2628
|
};
|
|
2597
2629
|
|
|
2598
2630
|
|
|
2599
2631
|
/**
|
|
2600
|
-
* optional
|
|
2601
|
-
* @return {
|
|
2632
|
+
* optional string transcription = 1;
|
|
2633
|
+
* @return {string}
|
|
2602
2634
|
*/
|
|
2603
|
-
proto.ondewo.s2t.
|
|
2604
|
-
return /** @type {
|
|
2635
|
+
proto.ondewo.s2t.Transcription.prototype.getTranscription = function() {
|
|
2636
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2605
2637
|
};
|
|
2606
2638
|
|
|
2607
2639
|
|
|
2608
2640
|
/**
|
|
2609
|
-
*
|
|
2610
|
-
*
|
|
2611
|
-
* @return {string}
|
|
2641
|
+
* @param {string} value
|
|
2642
|
+
* @return {!proto.ondewo.s2t.Transcription} returns this
|
|
2612
2643
|
*/
|
|
2613
|
-
proto.ondewo.s2t.
|
|
2614
|
-
return
|
|
2615
|
-
this.getAudioChunk()));
|
|
2644
|
+
proto.ondewo.s2t.Transcription.prototype.setTranscription = function(value) {
|
|
2645
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2616
2646
|
};
|
|
2617
2647
|
|
|
2618
2648
|
|
|
2619
2649
|
/**
|
|
2620
|
-
* optional
|
|
2621
|
-
*
|
|
2622
|
-
* @see http://caniuse.com/Uint8Array
|
|
2623
|
-
* This is a type-conversion wrapper around `getAudioChunk()`
|
|
2624
|
-
* @return {!Uint8Array}
|
|
2650
|
+
* optional float confidence_score = 2;
|
|
2651
|
+
* @return {number}
|
|
2625
2652
|
*/
|
|
2626
|
-
proto.ondewo.s2t.
|
|
2627
|
-
return /** @type {
|
|
2628
|
-
this.getAudioChunk()));
|
|
2653
|
+
proto.ondewo.s2t.Transcription.prototype.getConfidenceScore = function() {
|
|
2654
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
2629
2655
|
};
|
|
2630
2656
|
|
|
2631
2657
|
|
|
2632
2658
|
/**
|
|
2633
|
-
* @param {
|
|
2634
|
-
* @return {!proto.ondewo.s2t.
|
|
2659
|
+
* @param {number} value
|
|
2660
|
+
* @return {!proto.ondewo.s2t.Transcription} returns this
|
|
2635
2661
|
*/
|
|
2636
|
-
proto.ondewo.s2t.
|
|
2637
|
-
return jspb.Message.
|
|
2662
|
+
proto.ondewo.s2t.Transcription.prototype.setConfidenceScore = function(value) {
|
|
2663
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
2638
2664
|
};
|
|
2639
2665
|
|
|
2640
2666
|
|
|
2641
2667
|
/**
|
|
2642
|
-
*
|
|
2643
|
-
* @return {
|
|
2668
|
+
* repeated WordDetail words = 3;
|
|
2669
|
+
* @return {!Array<!proto.ondewo.s2t.WordDetail>}
|
|
2644
2670
|
*/
|
|
2645
|
-
proto.ondewo.s2t.
|
|
2646
|
-
return /** @type
|
|
2671
|
+
proto.ondewo.s2t.Transcription.prototype.getWordsList = function() {
|
|
2672
|
+
return /** @type{!Array<!proto.ondewo.s2t.WordDetail>} */ (
|
|
2673
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.s2t.WordDetail, 3));
|
|
2647
2674
|
};
|
|
2648
2675
|
|
|
2649
2676
|
|
|
2650
2677
|
/**
|
|
2651
|
-
* @param {
|
|
2652
|
-
* @return {!proto.ondewo.s2t.
|
|
2653
|
-
|
|
2654
|
-
proto.ondewo.s2t.
|
|
2655
|
-
return jspb.Message.
|
|
2678
|
+
* @param {!Array<!proto.ondewo.s2t.WordDetail>} value
|
|
2679
|
+
* @return {!proto.ondewo.s2t.Transcription} returns this
|
|
2680
|
+
*/
|
|
2681
|
+
proto.ondewo.s2t.Transcription.prototype.setWordsList = function(value) {
|
|
2682
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
2656
2683
|
};
|
|
2657
2684
|
|
|
2658
2685
|
|
|
2659
2686
|
/**
|
|
2660
|
-
*
|
|
2661
|
-
* @
|
|
2687
|
+
* @param {!proto.ondewo.s2t.WordDetail=} opt_value
|
|
2688
|
+
* @param {number=} opt_index
|
|
2689
|
+
* @return {!proto.ondewo.s2t.WordDetail}
|
|
2662
2690
|
*/
|
|
2663
|
-
proto.ondewo.s2t.
|
|
2664
|
-
return
|
|
2665
|
-
jspb.Message.getWrapperField(this, proto.ondewo.s2t.TranscribeRequestConfig, 3));
|
|
2691
|
+
proto.ondewo.s2t.Transcription.prototype.addWords = function(opt_value, opt_index) {
|
|
2692
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ondewo.s2t.WordDetail, opt_index);
|
|
2666
2693
|
};
|
|
2667
2694
|
|
|
2668
2695
|
|
|
2669
2696
|
/**
|
|
2670
|
-
*
|
|
2671
|
-
* @return {!proto.ondewo.s2t.
|
|
2672
|
-
*/
|
|
2673
|
-
proto.ondewo.s2t.
|
|
2674
|
-
return
|
|
2697
|
+
* Clears the list making it empty but non-null.
|
|
2698
|
+
* @return {!proto.ondewo.s2t.Transcription} returns this
|
|
2699
|
+
*/
|
|
2700
|
+
proto.ondewo.s2t.Transcription.prototype.clearWordsList = function() {
|
|
2701
|
+
return this.setWordsList([]);
|
|
2675
2702
|
};
|
|
2676
2703
|
|
|
2677
2704
|
|
|
2678
2705
|
/**
|
|
2679
|
-
*
|
|
2680
|
-
* @return {!proto.ondewo.s2t.
|
|
2706
|
+
* repeated TranscriptionAlternative alternatives = 4;
|
|
2707
|
+
* @return {!Array<!proto.ondewo.s2t.TranscriptionAlternative>}
|
|
2681
2708
|
*/
|
|
2682
|
-
proto.ondewo.s2t.
|
|
2683
|
-
return
|
|
2709
|
+
proto.ondewo.s2t.Transcription.prototype.getAlternativesList = function() {
|
|
2710
|
+
return /** @type{!Array<!proto.ondewo.s2t.TranscriptionAlternative>} */ (
|
|
2711
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.s2t.TranscriptionAlternative, 4));
|
|
2684
2712
|
};
|
|
2685
2713
|
|
|
2686
2714
|
|
|
2687
2715
|
/**
|
|
2688
|
-
*
|
|
2689
|
-
* @return {
|
|
2690
|
-
|
|
2691
|
-
proto.ondewo.s2t.
|
|
2692
|
-
return jspb.Message.
|
|
2716
|
+
* @param {!Array<!proto.ondewo.s2t.TranscriptionAlternative>} value
|
|
2717
|
+
* @return {!proto.ondewo.s2t.Transcription} returns this
|
|
2718
|
+
*/
|
|
2719
|
+
proto.ondewo.s2t.Transcription.prototype.setAlternativesList = function(value) {
|
|
2720
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
2693
2721
|
};
|
|
2694
2722
|
|
|
2695
2723
|
|
|
2696
2724
|
/**
|
|
2697
|
-
*
|
|
2698
|
-
* @
|
|
2725
|
+
* @param {!proto.ondewo.s2t.TranscriptionAlternative=} opt_value
|
|
2726
|
+
* @param {number=} opt_index
|
|
2727
|
+
* @return {!proto.ondewo.s2t.TranscriptionAlternative}
|
|
2699
2728
|
*/
|
|
2700
|
-
proto.ondewo.s2t.
|
|
2701
|
-
return
|
|
2729
|
+
proto.ondewo.s2t.Transcription.prototype.addAlternatives = function(opt_value, opt_index) {
|
|
2730
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.ondewo.s2t.TranscriptionAlternative, opt_index);
|
|
2702
2731
|
};
|
|
2703
2732
|
|
|
2704
2733
|
|
|
2705
2734
|
/**
|
|
2706
|
-
*
|
|
2707
|
-
* @return {!proto.ondewo.s2t.
|
|
2735
|
+
* Clears the list making it empty but non-null.
|
|
2736
|
+
* @return {!proto.ondewo.s2t.Transcription} returns this
|
|
2708
2737
|
*/
|
|
2709
|
-
proto.ondewo.s2t.
|
|
2710
|
-
return
|
|
2738
|
+
proto.ondewo.s2t.Transcription.prototype.clearAlternativesList = function() {
|
|
2739
|
+
return this.setAlternativesList([]);
|
|
2711
2740
|
};
|
|
2712
2741
|
|
|
2713
2742
|
|
|
2714
2743
|
|
|
2744
|
+
/**
|
|
2745
|
+
* List of repeated fields within this message type.
|
|
2746
|
+
* @private {!Array<number>}
|
|
2747
|
+
* @const
|
|
2748
|
+
*/
|
|
2749
|
+
proto.ondewo.s2t.TranscriptionAlternative.repeatedFields_ = [3];
|
|
2750
|
+
|
|
2715
2751
|
|
|
2716
2752
|
|
|
2717
2753
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2727,8 +2763,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
2727
2763
|
* http://goto/soy-param-migration
|
|
2728
2764
|
* @return {!Object}
|
|
2729
2765
|
*/
|
|
2730
|
-
proto.ondewo.s2t.
|
|
2731
|
-
return proto.ondewo.s2t.
|
|
2766
|
+
proto.ondewo.s2t.TranscriptionAlternative.prototype.toObject = function(opt_includeInstance) {
|
|
2767
|
+
return proto.ondewo.s2t.TranscriptionAlternative.toObject(opt_includeInstance, this);
|
|
2732
2768
|
};
|
|
2733
2769
|
|
|
2734
2770
|
|
|
@@ -2737,14 +2773,16 @@ proto.ondewo.s2t.Transcription.prototype.toObject = function(opt_includeInstance
|
|
|
2737
2773
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2738
2774
|
* the JSPB instance for transitional soy proto support:
|
|
2739
2775
|
* http://goto/soy-param-migration
|
|
2740
|
-
* @param {!proto.ondewo.s2t.
|
|
2776
|
+
* @param {!proto.ondewo.s2t.TranscriptionAlternative} msg The msg instance to transform.
|
|
2741
2777
|
* @return {!Object}
|
|
2742
2778
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2743
2779
|
*/
|
|
2744
|
-
proto.ondewo.s2t.
|
|
2780
|
+
proto.ondewo.s2t.TranscriptionAlternative.toObject = function(includeInstance, msg) {
|
|
2745
2781
|
var f, obj = {
|
|
2746
|
-
|
|
2747
|
-
|
|
2782
|
+
transcript: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2783
|
+
confidence: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
2784
|
+
wordsList: jspb.Message.toObjectList(msg.getWordsList(),
|
|
2785
|
+
proto.ondewo.s2t.WordDetail.toObject, includeInstance)
|
|
2748
2786
|
};
|
|
2749
2787
|
|
|
2750
2788
|
if (includeInstance) {
|
|
@@ -2758,23 +2796,23 @@ proto.ondewo.s2t.Transcription.toObject = function(includeInstance, msg) {
|
|
|
2758
2796
|
/**
|
|
2759
2797
|
* Deserializes binary data (in protobuf wire format).
|
|
2760
2798
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2761
|
-
* @return {!proto.ondewo.s2t.
|
|
2799
|
+
* @return {!proto.ondewo.s2t.TranscriptionAlternative}
|
|
2762
2800
|
*/
|
|
2763
|
-
proto.ondewo.s2t.
|
|
2801
|
+
proto.ondewo.s2t.TranscriptionAlternative.deserializeBinary = function(bytes) {
|
|
2764
2802
|
var reader = new jspb.BinaryReader(bytes);
|
|
2765
|
-
var msg = new proto.ondewo.s2t.
|
|
2766
|
-
return proto.ondewo.s2t.
|
|
2803
|
+
var msg = new proto.ondewo.s2t.TranscriptionAlternative;
|
|
2804
|
+
return proto.ondewo.s2t.TranscriptionAlternative.deserializeBinaryFromReader(msg, reader);
|
|
2767
2805
|
};
|
|
2768
2806
|
|
|
2769
2807
|
|
|
2770
2808
|
/**
|
|
2771
2809
|
* Deserializes binary data (in protobuf wire format) from the
|
|
2772
2810
|
* given reader into the given message object.
|
|
2773
|
-
* @param {!proto.ondewo.s2t.
|
|
2811
|
+
* @param {!proto.ondewo.s2t.TranscriptionAlternative} msg The message object to deserialize into.
|
|
2774
2812
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2775
|
-
* @return {!proto.ondewo.s2t.
|
|
2813
|
+
* @return {!proto.ondewo.s2t.TranscriptionAlternative}
|
|
2776
2814
|
*/
|
|
2777
|
-
proto.ondewo.s2t.
|
|
2815
|
+
proto.ondewo.s2t.TranscriptionAlternative.deserializeBinaryFromReader = function(msg, reader) {
|
|
2778
2816
|
while (reader.nextField()) {
|
|
2779
2817
|
if (reader.isEndGroup()) {
|
|
2780
2818
|
break;
|
|
@@ -2783,11 +2821,16 @@ proto.ondewo.s2t.Transcription.deserializeBinaryFromReader = function(msg, reade
|
|
|
2783
2821
|
switch (field) {
|
|
2784
2822
|
case 1:
|
|
2785
2823
|
var value = /** @type {string} */ (reader.readString());
|
|
2786
|
-
msg.
|
|
2824
|
+
msg.setTranscript(value);
|
|
2787
2825
|
break;
|
|
2788
2826
|
case 2:
|
|
2789
2827
|
var value = /** @type {number} */ (reader.readFloat());
|
|
2790
|
-
msg.
|
|
2828
|
+
msg.setConfidence(value);
|
|
2829
|
+
break;
|
|
2830
|
+
case 3:
|
|
2831
|
+
var value = new proto.ondewo.s2t.WordDetail;
|
|
2832
|
+
reader.readMessage(value,proto.ondewo.s2t.WordDetail.deserializeBinaryFromReader);
|
|
2833
|
+
msg.addWords(value);
|
|
2791
2834
|
break;
|
|
2792
2835
|
default:
|
|
2793
2836
|
reader.skipField();
|
|
@@ -2802,9 +2845,9 @@ proto.ondewo.s2t.Transcription.deserializeBinaryFromReader = function(msg, reade
|
|
|
2802
2845
|
* Serializes the message to binary data (in protobuf wire format).
|
|
2803
2846
|
* @return {!Uint8Array}
|
|
2804
2847
|
*/
|
|
2805
|
-
proto.ondewo.s2t.
|
|
2848
|
+
proto.ondewo.s2t.TranscriptionAlternative.prototype.serializeBinary = function() {
|
|
2806
2849
|
var writer = new jspb.BinaryWriter();
|
|
2807
|
-
proto.ondewo.s2t.
|
|
2850
|
+
proto.ondewo.s2t.TranscriptionAlternative.serializeBinaryToWriter(this, writer);
|
|
2808
2851
|
return writer.getResultBuffer();
|
|
2809
2852
|
};
|
|
2810
2853
|
|
|
@@ -2812,62 +2855,813 @@ proto.ondewo.s2t.Transcription.prototype.serializeBinary = function() {
|
|
|
2812
2855
|
/**
|
|
2813
2856
|
* Serializes the given message to binary data (in protobuf wire
|
|
2814
2857
|
* format), writing to the given BinaryWriter.
|
|
2815
|
-
* @param {!proto.ondewo.s2t.
|
|
2858
|
+
* @param {!proto.ondewo.s2t.TranscriptionAlternative} message
|
|
2816
2859
|
* @param {!jspb.BinaryWriter} writer
|
|
2817
2860
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2818
2861
|
*/
|
|
2819
|
-
proto.ondewo.s2t.
|
|
2862
|
+
proto.ondewo.s2t.TranscriptionAlternative.serializeBinaryToWriter = function(message, writer) {
|
|
2820
2863
|
var f = undefined;
|
|
2821
|
-
f = message.
|
|
2864
|
+
f = message.getTranscript();
|
|
2822
2865
|
if (f.length > 0) {
|
|
2823
2866
|
writer.writeString(
|
|
2824
2867
|
1,
|
|
2825
2868
|
f
|
|
2826
2869
|
);
|
|
2827
2870
|
}
|
|
2828
|
-
f = message.
|
|
2871
|
+
f = message.getConfidence();
|
|
2829
2872
|
if (f !== 0.0) {
|
|
2830
2873
|
writer.writeFloat(
|
|
2831
2874
|
2,
|
|
2832
2875
|
f
|
|
2833
2876
|
);
|
|
2834
2877
|
}
|
|
2878
|
+
f = message.getWordsList();
|
|
2879
|
+
if (f.length > 0) {
|
|
2880
|
+
writer.writeRepeatedMessage(
|
|
2881
|
+
3,
|
|
2882
|
+
f,
|
|
2883
|
+
proto.ondewo.s2t.WordDetail.serializeBinaryToWriter
|
|
2884
|
+
);
|
|
2885
|
+
}
|
|
2886
|
+
};
|
|
2887
|
+
|
|
2888
|
+
|
|
2889
|
+
/**
|
|
2890
|
+
* optional string transcript = 1;
|
|
2891
|
+
* @return {string}
|
|
2892
|
+
*/
|
|
2893
|
+
proto.ondewo.s2t.TranscriptionAlternative.prototype.getTranscript = function() {
|
|
2894
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2895
|
+
};
|
|
2896
|
+
|
|
2897
|
+
|
|
2898
|
+
/**
|
|
2899
|
+
* @param {string} value
|
|
2900
|
+
* @return {!proto.ondewo.s2t.TranscriptionAlternative} returns this
|
|
2901
|
+
*/
|
|
2902
|
+
proto.ondewo.s2t.TranscriptionAlternative.prototype.setTranscript = function(value) {
|
|
2903
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2904
|
+
};
|
|
2905
|
+
|
|
2906
|
+
|
|
2907
|
+
/**
|
|
2908
|
+
* optional float confidence = 2;
|
|
2909
|
+
* @return {number}
|
|
2910
|
+
*/
|
|
2911
|
+
proto.ondewo.s2t.TranscriptionAlternative.prototype.getConfidence = function() {
|
|
2912
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
2913
|
+
};
|
|
2914
|
+
|
|
2915
|
+
|
|
2916
|
+
/**
|
|
2917
|
+
* @param {number} value
|
|
2918
|
+
* @return {!proto.ondewo.s2t.TranscriptionAlternative} returns this
|
|
2919
|
+
*/
|
|
2920
|
+
proto.ondewo.s2t.TranscriptionAlternative.prototype.setConfidence = function(value) {
|
|
2921
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
2922
|
+
};
|
|
2923
|
+
|
|
2924
|
+
|
|
2925
|
+
/**
|
|
2926
|
+
* repeated WordDetail words = 3;
|
|
2927
|
+
* @return {!Array<!proto.ondewo.s2t.WordDetail>}
|
|
2928
|
+
*/
|
|
2929
|
+
proto.ondewo.s2t.TranscriptionAlternative.prototype.getWordsList = function() {
|
|
2930
|
+
return /** @type{!Array<!proto.ondewo.s2t.WordDetail>} */ (
|
|
2931
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.s2t.WordDetail, 3));
|
|
2932
|
+
};
|
|
2933
|
+
|
|
2934
|
+
|
|
2935
|
+
/**
|
|
2936
|
+
* @param {!Array<!proto.ondewo.s2t.WordDetail>} value
|
|
2937
|
+
* @return {!proto.ondewo.s2t.TranscriptionAlternative} returns this
|
|
2938
|
+
*/
|
|
2939
|
+
proto.ondewo.s2t.TranscriptionAlternative.prototype.setWordsList = function(value) {
|
|
2940
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
2941
|
+
};
|
|
2942
|
+
|
|
2943
|
+
|
|
2944
|
+
/**
|
|
2945
|
+
* @param {!proto.ondewo.s2t.WordDetail=} opt_value
|
|
2946
|
+
* @param {number=} opt_index
|
|
2947
|
+
* @return {!proto.ondewo.s2t.WordDetail}
|
|
2948
|
+
*/
|
|
2949
|
+
proto.ondewo.s2t.TranscriptionAlternative.prototype.addWords = function(opt_value, opt_index) {
|
|
2950
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ondewo.s2t.WordDetail, opt_index);
|
|
2951
|
+
};
|
|
2952
|
+
|
|
2953
|
+
|
|
2954
|
+
/**
|
|
2955
|
+
* Clears the list making it empty but non-null.
|
|
2956
|
+
* @return {!proto.ondewo.s2t.TranscriptionAlternative} returns this
|
|
2957
|
+
*/
|
|
2958
|
+
proto.ondewo.s2t.TranscriptionAlternative.prototype.clearWordsList = function() {
|
|
2959
|
+
return this.setWordsList([]);
|
|
2960
|
+
};
|
|
2961
|
+
|
|
2962
|
+
|
|
2963
|
+
|
|
2964
|
+
/**
|
|
2965
|
+
* List of repeated fields within this message type.
|
|
2966
|
+
* @private {!Array<number>}
|
|
2967
|
+
* @const
|
|
2968
|
+
*/
|
|
2969
|
+
proto.ondewo.s2t.WordDetail.repeatedFields_ = [5];
|
|
2970
|
+
|
|
2971
|
+
|
|
2972
|
+
|
|
2973
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2974
|
+
/**
|
|
2975
|
+
* Creates an object representation of this proto.
|
|
2976
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2977
|
+
* Optional fields that are not set will be set to undefined.
|
|
2978
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2979
|
+
* For the list of reserved names please see:
|
|
2980
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2981
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2982
|
+
* JSPB instance for transitional soy proto support:
|
|
2983
|
+
* http://goto/soy-param-migration
|
|
2984
|
+
* @return {!Object}
|
|
2985
|
+
*/
|
|
2986
|
+
proto.ondewo.s2t.WordDetail.prototype.toObject = function(opt_includeInstance) {
|
|
2987
|
+
return proto.ondewo.s2t.WordDetail.toObject(opt_includeInstance, this);
|
|
2988
|
+
};
|
|
2989
|
+
|
|
2990
|
+
|
|
2991
|
+
/**
|
|
2992
|
+
* Static version of the {@see toObject} method.
|
|
2993
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2994
|
+
* the JSPB instance for transitional soy proto support:
|
|
2995
|
+
* http://goto/soy-param-migration
|
|
2996
|
+
* @param {!proto.ondewo.s2t.WordDetail} msg The msg instance to transform.
|
|
2997
|
+
* @return {!Object}
|
|
2998
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2999
|
+
*/
|
|
3000
|
+
proto.ondewo.s2t.WordDetail.toObject = function(includeInstance, msg) {
|
|
3001
|
+
var f, obj = {
|
|
3002
|
+
startTime: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
3003
|
+
endTime: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
3004
|
+
word: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3005
|
+
confidence: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
|
3006
|
+
wordAlternativesList: jspb.Message.toObjectList(msg.getWordAlternativesList(),
|
|
3007
|
+
proto.ondewo.s2t.WordAlternative.toObject, includeInstance)
|
|
3008
|
+
};
|
|
3009
|
+
|
|
3010
|
+
if (includeInstance) {
|
|
3011
|
+
obj.$jspbMessageInstance = msg;
|
|
3012
|
+
}
|
|
3013
|
+
return obj;
|
|
3014
|
+
};
|
|
3015
|
+
}
|
|
3016
|
+
|
|
3017
|
+
|
|
3018
|
+
/**
|
|
3019
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3020
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3021
|
+
* @return {!proto.ondewo.s2t.WordDetail}
|
|
3022
|
+
*/
|
|
3023
|
+
proto.ondewo.s2t.WordDetail.deserializeBinary = function(bytes) {
|
|
3024
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3025
|
+
var msg = new proto.ondewo.s2t.WordDetail;
|
|
3026
|
+
return proto.ondewo.s2t.WordDetail.deserializeBinaryFromReader(msg, reader);
|
|
3027
|
+
};
|
|
3028
|
+
|
|
3029
|
+
|
|
3030
|
+
/**
|
|
3031
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3032
|
+
* given reader into the given message object.
|
|
3033
|
+
* @param {!proto.ondewo.s2t.WordDetail} msg The message object to deserialize into.
|
|
3034
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3035
|
+
* @return {!proto.ondewo.s2t.WordDetail}
|
|
3036
|
+
*/
|
|
3037
|
+
proto.ondewo.s2t.WordDetail.deserializeBinaryFromReader = function(msg, reader) {
|
|
3038
|
+
while (reader.nextField()) {
|
|
3039
|
+
if (reader.isEndGroup()) {
|
|
3040
|
+
break;
|
|
3041
|
+
}
|
|
3042
|
+
var field = reader.getFieldNumber();
|
|
3043
|
+
switch (field) {
|
|
3044
|
+
case 1:
|
|
3045
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
3046
|
+
msg.setStartTime(value);
|
|
3047
|
+
break;
|
|
3048
|
+
case 2:
|
|
3049
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
3050
|
+
msg.setEndTime(value);
|
|
3051
|
+
break;
|
|
3052
|
+
case 3:
|
|
3053
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3054
|
+
msg.setWord(value);
|
|
3055
|
+
break;
|
|
3056
|
+
case 4:
|
|
3057
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
3058
|
+
msg.setConfidence(value);
|
|
3059
|
+
break;
|
|
3060
|
+
case 5:
|
|
3061
|
+
var value = new proto.ondewo.s2t.WordAlternative;
|
|
3062
|
+
reader.readMessage(value,proto.ondewo.s2t.WordAlternative.deserializeBinaryFromReader);
|
|
3063
|
+
msg.addWordAlternatives(value);
|
|
3064
|
+
break;
|
|
3065
|
+
default:
|
|
3066
|
+
reader.skipField();
|
|
3067
|
+
break;
|
|
3068
|
+
}
|
|
3069
|
+
}
|
|
3070
|
+
return msg;
|
|
3071
|
+
};
|
|
3072
|
+
|
|
3073
|
+
|
|
3074
|
+
/**
|
|
3075
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3076
|
+
* @return {!Uint8Array}
|
|
3077
|
+
*/
|
|
3078
|
+
proto.ondewo.s2t.WordDetail.prototype.serializeBinary = function() {
|
|
3079
|
+
var writer = new jspb.BinaryWriter();
|
|
3080
|
+
proto.ondewo.s2t.WordDetail.serializeBinaryToWriter(this, writer);
|
|
3081
|
+
return writer.getResultBuffer();
|
|
3082
|
+
};
|
|
3083
|
+
|
|
3084
|
+
|
|
3085
|
+
/**
|
|
3086
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3087
|
+
* format), writing to the given BinaryWriter.
|
|
3088
|
+
* @param {!proto.ondewo.s2t.WordDetail} message
|
|
3089
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3090
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3091
|
+
*/
|
|
3092
|
+
proto.ondewo.s2t.WordDetail.serializeBinaryToWriter = function(message, writer) {
|
|
3093
|
+
var f = undefined;
|
|
3094
|
+
f = message.getStartTime();
|
|
3095
|
+
if (f !== 0.0) {
|
|
3096
|
+
writer.writeFloat(
|
|
3097
|
+
1,
|
|
3098
|
+
f
|
|
3099
|
+
);
|
|
3100
|
+
}
|
|
3101
|
+
f = message.getEndTime();
|
|
3102
|
+
if (f !== 0.0) {
|
|
3103
|
+
writer.writeFloat(
|
|
3104
|
+
2,
|
|
3105
|
+
f
|
|
3106
|
+
);
|
|
3107
|
+
}
|
|
3108
|
+
f = message.getWord();
|
|
3109
|
+
if (f.length > 0) {
|
|
3110
|
+
writer.writeString(
|
|
3111
|
+
3,
|
|
3112
|
+
f
|
|
3113
|
+
);
|
|
3114
|
+
}
|
|
3115
|
+
f = message.getConfidence();
|
|
3116
|
+
if (f !== 0.0) {
|
|
3117
|
+
writer.writeFloat(
|
|
3118
|
+
4,
|
|
3119
|
+
f
|
|
3120
|
+
);
|
|
3121
|
+
}
|
|
3122
|
+
f = message.getWordAlternativesList();
|
|
3123
|
+
if (f.length > 0) {
|
|
3124
|
+
writer.writeRepeatedMessage(
|
|
3125
|
+
5,
|
|
3126
|
+
f,
|
|
3127
|
+
proto.ondewo.s2t.WordAlternative.serializeBinaryToWriter
|
|
3128
|
+
);
|
|
3129
|
+
}
|
|
3130
|
+
};
|
|
3131
|
+
|
|
3132
|
+
|
|
3133
|
+
/**
|
|
3134
|
+
* optional float start_time = 1;
|
|
3135
|
+
* @return {number}
|
|
3136
|
+
*/
|
|
3137
|
+
proto.ondewo.s2t.WordDetail.prototype.getStartTime = function() {
|
|
3138
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
|
3139
|
+
};
|
|
3140
|
+
|
|
3141
|
+
|
|
3142
|
+
/**
|
|
3143
|
+
* @param {number} value
|
|
3144
|
+
* @return {!proto.ondewo.s2t.WordDetail} returns this
|
|
3145
|
+
*/
|
|
3146
|
+
proto.ondewo.s2t.WordDetail.prototype.setStartTime = function(value) {
|
|
3147
|
+
return jspb.Message.setProto3FloatField(this, 1, value);
|
|
3148
|
+
};
|
|
3149
|
+
|
|
3150
|
+
|
|
3151
|
+
/**
|
|
3152
|
+
* optional float end_time = 2;
|
|
3153
|
+
* @return {number}
|
|
3154
|
+
*/
|
|
3155
|
+
proto.ondewo.s2t.WordDetail.prototype.getEndTime = function() {
|
|
3156
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
3157
|
+
};
|
|
3158
|
+
|
|
3159
|
+
|
|
3160
|
+
/**
|
|
3161
|
+
* @param {number} value
|
|
3162
|
+
* @return {!proto.ondewo.s2t.WordDetail} returns this
|
|
3163
|
+
*/
|
|
3164
|
+
proto.ondewo.s2t.WordDetail.prototype.setEndTime = function(value) {
|
|
3165
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
3166
|
+
};
|
|
3167
|
+
|
|
3168
|
+
|
|
3169
|
+
/**
|
|
3170
|
+
* optional string word = 3;
|
|
3171
|
+
* @return {string}
|
|
3172
|
+
*/
|
|
3173
|
+
proto.ondewo.s2t.WordDetail.prototype.getWord = function() {
|
|
3174
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3175
|
+
};
|
|
3176
|
+
|
|
3177
|
+
|
|
3178
|
+
/**
|
|
3179
|
+
* @param {string} value
|
|
3180
|
+
* @return {!proto.ondewo.s2t.WordDetail} returns this
|
|
3181
|
+
*/
|
|
3182
|
+
proto.ondewo.s2t.WordDetail.prototype.setWord = function(value) {
|
|
3183
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3184
|
+
};
|
|
3185
|
+
|
|
3186
|
+
|
|
3187
|
+
/**
|
|
3188
|
+
* optional float confidence = 4;
|
|
3189
|
+
* @return {number}
|
|
3190
|
+
*/
|
|
3191
|
+
proto.ondewo.s2t.WordDetail.prototype.getConfidence = function() {
|
|
3192
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
|
3193
|
+
};
|
|
3194
|
+
|
|
3195
|
+
|
|
3196
|
+
/**
|
|
3197
|
+
* @param {number} value
|
|
3198
|
+
* @return {!proto.ondewo.s2t.WordDetail} returns this
|
|
3199
|
+
*/
|
|
3200
|
+
proto.ondewo.s2t.WordDetail.prototype.setConfidence = function(value) {
|
|
3201
|
+
return jspb.Message.setProto3FloatField(this, 4, value);
|
|
3202
|
+
};
|
|
3203
|
+
|
|
3204
|
+
|
|
3205
|
+
/**
|
|
3206
|
+
* repeated WordAlternative word_alternatives = 5;
|
|
3207
|
+
* @return {!Array<!proto.ondewo.s2t.WordAlternative>}
|
|
3208
|
+
*/
|
|
3209
|
+
proto.ondewo.s2t.WordDetail.prototype.getWordAlternativesList = function() {
|
|
3210
|
+
return /** @type{!Array<!proto.ondewo.s2t.WordAlternative>} */ (
|
|
3211
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.s2t.WordAlternative, 5));
|
|
3212
|
+
};
|
|
3213
|
+
|
|
3214
|
+
|
|
3215
|
+
/**
|
|
3216
|
+
* @param {!Array<!proto.ondewo.s2t.WordAlternative>} value
|
|
3217
|
+
* @return {!proto.ondewo.s2t.WordDetail} returns this
|
|
3218
|
+
*/
|
|
3219
|
+
proto.ondewo.s2t.WordDetail.prototype.setWordAlternativesList = function(value) {
|
|
3220
|
+
return jspb.Message.setRepeatedWrapperField(this, 5, value);
|
|
3221
|
+
};
|
|
3222
|
+
|
|
3223
|
+
|
|
3224
|
+
/**
|
|
3225
|
+
* @param {!proto.ondewo.s2t.WordAlternative=} opt_value
|
|
3226
|
+
* @param {number=} opt_index
|
|
3227
|
+
* @return {!proto.ondewo.s2t.WordAlternative}
|
|
3228
|
+
*/
|
|
3229
|
+
proto.ondewo.s2t.WordDetail.prototype.addWordAlternatives = function(opt_value, opt_index) {
|
|
3230
|
+
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.ondewo.s2t.WordAlternative, opt_index);
|
|
3231
|
+
};
|
|
3232
|
+
|
|
3233
|
+
|
|
3234
|
+
/**
|
|
3235
|
+
* Clears the list making it empty but non-null.
|
|
3236
|
+
* @return {!proto.ondewo.s2t.WordDetail} returns this
|
|
3237
|
+
*/
|
|
3238
|
+
proto.ondewo.s2t.WordDetail.prototype.clearWordAlternativesList = function() {
|
|
3239
|
+
return this.setWordAlternativesList([]);
|
|
3240
|
+
};
|
|
3241
|
+
|
|
3242
|
+
|
|
3243
|
+
|
|
3244
|
+
|
|
3245
|
+
|
|
3246
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3247
|
+
/**
|
|
3248
|
+
* Creates an object representation of this proto.
|
|
3249
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3250
|
+
* Optional fields that are not set will be set to undefined.
|
|
3251
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3252
|
+
* For the list of reserved names please see:
|
|
3253
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3254
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3255
|
+
* JSPB instance for transitional soy proto support:
|
|
3256
|
+
* http://goto/soy-param-migration
|
|
3257
|
+
* @return {!Object}
|
|
3258
|
+
*/
|
|
3259
|
+
proto.ondewo.s2t.WordAlternative.prototype.toObject = function(opt_includeInstance) {
|
|
3260
|
+
return proto.ondewo.s2t.WordAlternative.toObject(opt_includeInstance, this);
|
|
3261
|
+
};
|
|
3262
|
+
|
|
3263
|
+
|
|
3264
|
+
/**
|
|
3265
|
+
* Static version of the {@see toObject} method.
|
|
3266
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3267
|
+
* the JSPB instance for transitional soy proto support:
|
|
3268
|
+
* http://goto/soy-param-migration
|
|
3269
|
+
* @param {!proto.ondewo.s2t.WordAlternative} msg The msg instance to transform.
|
|
3270
|
+
* @return {!Object}
|
|
3271
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3272
|
+
*/
|
|
3273
|
+
proto.ondewo.s2t.WordAlternative.toObject = function(includeInstance, msg) {
|
|
3274
|
+
var f, obj = {
|
|
3275
|
+
word: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3276
|
+
confidence: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
|
|
3277
|
+
};
|
|
3278
|
+
|
|
3279
|
+
if (includeInstance) {
|
|
3280
|
+
obj.$jspbMessageInstance = msg;
|
|
3281
|
+
}
|
|
3282
|
+
return obj;
|
|
3283
|
+
};
|
|
3284
|
+
}
|
|
3285
|
+
|
|
3286
|
+
|
|
3287
|
+
/**
|
|
3288
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3289
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3290
|
+
* @return {!proto.ondewo.s2t.WordAlternative}
|
|
3291
|
+
*/
|
|
3292
|
+
proto.ondewo.s2t.WordAlternative.deserializeBinary = function(bytes) {
|
|
3293
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3294
|
+
var msg = new proto.ondewo.s2t.WordAlternative;
|
|
3295
|
+
return proto.ondewo.s2t.WordAlternative.deserializeBinaryFromReader(msg, reader);
|
|
3296
|
+
};
|
|
3297
|
+
|
|
3298
|
+
|
|
3299
|
+
/**
|
|
3300
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3301
|
+
* given reader into the given message object.
|
|
3302
|
+
* @param {!proto.ondewo.s2t.WordAlternative} msg The message object to deserialize into.
|
|
3303
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3304
|
+
* @return {!proto.ondewo.s2t.WordAlternative}
|
|
3305
|
+
*/
|
|
3306
|
+
proto.ondewo.s2t.WordAlternative.deserializeBinaryFromReader = function(msg, reader) {
|
|
3307
|
+
while (reader.nextField()) {
|
|
3308
|
+
if (reader.isEndGroup()) {
|
|
3309
|
+
break;
|
|
3310
|
+
}
|
|
3311
|
+
var field = reader.getFieldNumber();
|
|
3312
|
+
switch (field) {
|
|
3313
|
+
case 1:
|
|
3314
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3315
|
+
msg.setWord(value);
|
|
3316
|
+
break;
|
|
3317
|
+
case 2:
|
|
3318
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
3319
|
+
msg.setConfidence(value);
|
|
3320
|
+
break;
|
|
3321
|
+
default:
|
|
3322
|
+
reader.skipField();
|
|
3323
|
+
break;
|
|
3324
|
+
}
|
|
3325
|
+
}
|
|
3326
|
+
return msg;
|
|
3327
|
+
};
|
|
3328
|
+
|
|
3329
|
+
|
|
3330
|
+
/**
|
|
3331
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3332
|
+
* @return {!Uint8Array}
|
|
3333
|
+
*/
|
|
3334
|
+
proto.ondewo.s2t.WordAlternative.prototype.serializeBinary = function() {
|
|
3335
|
+
var writer = new jspb.BinaryWriter();
|
|
3336
|
+
proto.ondewo.s2t.WordAlternative.serializeBinaryToWriter(this, writer);
|
|
3337
|
+
return writer.getResultBuffer();
|
|
3338
|
+
};
|
|
3339
|
+
|
|
3340
|
+
|
|
3341
|
+
/**
|
|
3342
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3343
|
+
* format), writing to the given BinaryWriter.
|
|
3344
|
+
* @param {!proto.ondewo.s2t.WordAlternative} message
|
|
3345
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3346
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3347
|
+
*/
|
|
3348
|
+
proto.ondewo.s2t.WordAlternative.serializeBinaryToWriter = function(message, writer) {
|
|
3349
|
+
var f = undefined;
|
|
3350
|
+
f = message.getWord();
|
|
3351
|
+
if (f.length > 0) {
|
|
3352
|
+
writer.writeString(
|
|
3353
|
+
1,
|
|
3354
|
+
f
|
|
3355
|
+
);
|
|
3356
|
+
}
|
|
3357
|
+
f = message.getConfidence();
|
|
3358
|
+
if (f !== 0.0) {
|
|
3359
|
+
writer.writeFloat(
|
|
3360
|
+
2,
|
|
3361
|
+
f
|
|
3362
|
+
);
|
|
3363
|
+
}
|
|
3364
|
+
};
|
|
3365
|
+
|
|
3366
|
+
|
|
3367
|
+
/**
|
|
3368
|
+
* optional string word = 1;
|
|
3369
|
+
* @return {string}
|
|
3370
|
+
*/
|
|
3371
|
+
proto.ondewo.s2t.WordAlternative.prototype.getWord = function() {
|
|
3372
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3373
|
+
};
|
|
3374
|
+
|
|
3375
|
+
|
|
3376
|
+
/**
|
|
3377
|
+
* @param {string} value
|
|
3378
|
+
* @return {!proto.ondewo.s2t.WordAlternative} returns this
|
|
3379
|
+
*/
|
|
3380
|
+
proto.ondewo.s2t.WordAlternative.prototype.setWord = function(value) {
|
|
3381
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3382
|
+
};
|
|
3383
|
+
|
|
3384
|
+
|
|
3385
|
+
/**
|
|
3386
|
+
* optional float confidence = 2;
|
|
3387
|
+
* @return {number}
|
|
3388
|
+
*/
|
|
3389
|
+
proto.ondewo.s2t.WordAlternative.prototype.getConfidence = function() {
|
|
3390
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
3391
|
+
};
|
|
3392
|
+
|
|
3393
|
+
|
|
3394
|
+
/**
|
|
3395
|
+
* @param {number} value
|
|
3396
|
+
* @return {!proto.ondewo.s2t.WordAlternative} returns this
|
|
3397
|
+
*/
|
|
3398
|
+
proto.ondewo.s2t.WordAlternative.prototype.setConfidence = function(value) {
|
|
3399
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
3400
|
+
};
|
|
3401
|
+
|
|
3402
|
+
|
|
3403
|
+
|
|
3404
|
+
|
|
3405
|
+
|
|
3406
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3407
|
+
/**
|
|
3408
|
+
* Creates an object representation of this proto.
|
|
3409
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3410
|
+
* Optional fields that are not set will be set to undefined.
|
|
3411
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3412
|
+
* For the list of reserved names please see:
|
|
3413
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3414
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3415
|
+
* JSPB instance for transitional soy proto support:
|
|
3416
|
+
* http://goto/soy-param-migration
|
|
3417
|
+
* @return {!Object}
|
|
3418
|
+
*/
|
|
3419
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3420
|
+
return proto.ondewo.s2t.TranscribeStreamRequest.toObject(opt_includeInstance, this);
|
|
3421
|
+
};
|
|
3422
|
+
|
|
3423
|
+
|
|
3424
|
+
/**
|
|
3425
|
+
* Static version of the {@see toObject} method.
|
|
3426
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3427
|
+
* the JSPB instance for transitional soy proto support:
|
|
3428
|
+
* http://goto/soy-param-migration
|
|
3429
|
+
* @param {!proto.ondewo.s2t.TranscribeStreamRequest} msg The msg instance to transform.
|
|
3430
|
+
* @return {!Object}
|
|
3431
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3432
|
+
*/
|
|
3433
|
+
proto.ondewo.s2t.TranscribeStreamRequest.toObject = function(includeInstance, msg) {
|
|
3434
|
+
var f, obj = {
|
|
3435
|
+
audioChunk: msg.getAudioChunk_asB64(),
|
|
3436
|
+
endOfStream: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
3437
|
+
config: (f = msg.getConfig()) && proto.ondewo.s2t.TranscribeRequestConfig.toObject(includeInstance, f),
|
|
3438
|
+
muteAudio: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
|
|
3439
|
+
};
|
|
3440
|
+
|
|
3441
|
+
if (includeInstance) {
|
|
3442
|
+
obj.$jspbMessageInstance = msg;
|
|
3443
|
+
}
|
|
3444
|
+
return obj;
|
|
3445
|
+
};
|
|
3446
|
+
}
|
|
3447
|
+
|
|
3448
|
+
|
|
3449
|
+
/**
|
|
3450
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3451
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3452
|
+
* @return {!proto.ondewo.s2t.TranscribeStreamRequest}
|
|
3453
|
+
*/
|
|
3454
|
+
proto.ondewo.s2t.TranscribeStreamRequest.deserializeBinary = function(bytes) {
|
|
3455
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3456
|
+
var msg = new proto.ondewo.s2t.TranscribeStreamRequest;
|
|
3457
|
+
return proto.ondewo.s2t.TranscribeStreamRequest.deserializeBinaryFromReader(msg, reader);
|
|
3458
|
+
};
|
|
3459
|
+
|
|
3460
|
+
|
|
3461
|
+
/**
|
|
3462
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3463
|
+
* given reader into the given message object.
|
|
3464
|
+
* @param {!proto.ondewo.s2t.TranscribeStreamRequest} msg The message object to deserialize into.
|
|
3465
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3466
|
+
* @return {!proto.ondewo.s2t.TranscribeStreamRequest}
|
|
3467
|
+
*/
|
|
3468
|
+
proto.ondewo.s2t.TranscribeStreamRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3469
|
+
while (reader.nextField()) {
|
|
3470
|
+
if (reader.isEndGroup()) {
|
|
3471
|
+
break;
|
|
3472
|
+
}
|
|
3473
|
+
var field = reader.getFieldNumber();
|
|
3474
|
+
switch (field) {
|
|
3475
|
+
case 1:
|
|
3476
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
3477
|
+
msg.setAudioChunk(value);
|
|
3478
|
+
break;
|
|
3479
|
+
case 2:
|
|
3480
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
3481
|
+
msg.setEndOfStream(value);
|
|
3482
|
+
break;
|
|
3483
|
+
case 3:
|
|
3484
|
+
var value = new proto.ondewo.s2t.TranscribeRequestConfig;
|
|
3485
|
+
reader.readMessage(value,proto.ondewo.s2t.TranscribeRequestConfig.deserializeBinaryFromReader);
|
|
3486
|
+
msg.setConfig(value);
|
|
3487
|
+
break;
|
|
3488
|
+
case 4:
|
|
3489
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
3490
|
+
msg.setMuteAudio(value);
|
|
3491
|
+
break;
|
|
3492
|
+
default:
|
|
3493
|
+
reader.skipField();
|
|
3494
|
+
break;
|
|
3495
|
+
}
|
|
3496
|
+
}
|
|
3497
|
+
return msg;
|
|
3498
|
+
};
|
|
3499
|
+
|
|
3500
|
+
|
|
3501
|
+
/**
|
|
3502
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3503
|
+
* @return {!Uint8Array}
|
|
3504
|
+
*/
|
|
3505
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.serializeBinary = function() {
|
|
3506
|
+
var writer = new jspb.BinaryWriter();
|
|
3507
|
+
proto.ondewo.s2t.TranscribeStreamRequest.serializeBinaryToWriter(this, writer);
|
|
3508
|
+
return writer.getResultBuffer();
|
|
3509
|
+
};
|
|
3510
|
+
|
|
3511
|
+
|
|
3512
|
+
/**
|
|
3513
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3514
|
+
* format), writing to the given BinaryWriter.
|
|
3515
|
+
* @param {!proto.ondewo.s2t.TranscribeStreamRequest} message
|
|
3516
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3517
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3518
|
+
*/
|
|
3519
|
+
proto.ondewo.s2t.TranscribeStreamRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3520
|
+
var f = undefined;
|
|
3521
|
+
f = message.getAudioChunk_asU8();
|
|
3522
|
+
if (f.length > 0) {
|
|
3523
|
+
writer.writeBytes(
|
|
3524
|
+
1,
|
|
3525
|
+
f
|
|
3526
|
+
);
|
|
3527
|
+
}
|
|
3528
|
+
f = message.getEndOfStream();
|
|
3529
|
+
if (f) {
|
|
3530
|
+
writer.writeBool(
|
|
3531
|
+
2,
|
|
3532
|
+
f
|
|
3533
|
+
);
|
|
3534
|
+
}
|
|
3535
|
+
f = message.getConfig();
|
|
3536
|
+
if (f != null) {
|
|
3537
|
+
writer.writeMessage(
|
|
3538
|
+
3,
|
|
3539
|
+
f,
|
|
3540
|
+
proto.ondewo.s2t.TranscribeRequestConfig.serializeBinaryToWriter
|
|
3541
|
+
);
|
|
3542
|
+
}
|
|
3543
|
+
f = message.getMuteAudio();
|
|
3544
|
+
if (f) {
|
|
3545
|
+
writer.writeBool(
|
|
3546
|
+
4,
|
|
3547
|
+
f
|
|
3548
|
+
);
|
|
3549
|
+
}
|
|
3550
|
+
};
|
|
3551
|
+
|
|
3552
|
+
|
|
3553
|
+
/**
|
|
3554
|
+
* optional bytes audio_chunk = 1;
|
|
3555
|
+
* @return {!(string|Uint8Array)}
|
|
3556
|
+
*/
|
|
3557
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.getAudioChunk = function() {
|
|
3558
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3559
|
+
};
|
|
3560
|
+
|
|
3561
|
+
|
|
3562
|
+
/**
|
|
3563
|
+
* optional bytes audio_chunk = 1;
|
|
3564
|
+
* This is a type-conversion wrapper around `getAudioChunk()`
|
|
3565
|
+
* @return {string}
|
|
3566
|
+
*/
|
|
3567
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.getAudioChunk_asB64 = function() {
|
|
3568
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
3569
|
+
this.getAudioChunk()));
|
|
3570
|
+
};
|
|
3571
|
+
|
|
3572
|
+
|
|
3573
|
+
/**
|
|
3574
|
+
* optional bytes audio_chunk = 1;
|
|
3575
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
3576
|
+
* @see http://caniuse.com/Uint8Array
|
|
3577
|
+
* This is a type-conversion wrapper around `getAudioChunk()`
|
|
3578
|
+
* @return {!Uint8Array}
|
|
3579
|
+
*/
|
|
3580
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.getAudioChunk_asU8 = function() {
|
|
3581
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
3582
|
+
this.getAudioChunk()));
|
|
3583
|
+
};
|
|
3584
|
+
|
|
3585
|
+
|
|
3586
|
+
/**
|
|
3587
|
+
* @param {!(string|Uint8Array)} value
|
|
3588
|
+
* @return {!proto.ondewo.s2t.TranscribeStreamRequest} returns this
|
|
3589
|
+
*/
|
|
3590
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.setAudioChunk = function(value) {
|
|
3591
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
|
3592
|
+
};
|
|
3593
|
+
|
|
3594
|
+
|
|
3595
|
+
/**
|
|
3596
|
+
* optional bool end_of_stream = 2;
|
|
3597
|
+
* @return {boolean}
|
|
3598
|
+
*/
|
|
3599
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.getEndOfStream = function() {
|
|
3600
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
3601
|
+
};
|
|
3602
|
+
|
|
3603
|
+
|
|
3604
|
+
/**
|
|
3605
|
+
* @param {boolean} value
|
|
3606
|
+
* @return {!proto.ondewo.s2t.TranscribeStreamRequest} returns this
|
|
3607
|
+
*/
|
|
3608
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.setEndOfStream = function(value) {
|
|
3609
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
3610
|
+
};
|
|
3611
|
+
|
|
3612
|
+
|
|
3613
|
+
/**
|
|
3614
|
+
* optional TranscribeRequestConfig config = 3;
|
|
3615
|
+
* @return {?proto.ondewo.s2t.TranscribeRequestConfig}
|
|
3616
|
+
*/
|
|
3617
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.getConfig = function() {
|
|
3618
|
+
return /** @type{?proto.ondewo.s2t.TranscribeRequestConfig} */ (
|
|
3619
|
+
jspb.Message.getWrapperField(this, proto.ondewo.s2t.TranscribeRequestConfig, 3));
|
|
2835
3620
|
};
|
|
2836
3621
|
|
|
2837
3622
|
|
|
2838
3623
|
/**
|
|
2839
|
-
*
|
|
2840
|
-
* @return {
|
|
3624
|
+
* @param {?proto.ondewo.s2t.TranscribeRequestConfig|undefined} value
|
|
3625
|
+
* @return {!proto.ondewo.s2t.TranscribeStreamRequest} returns this
|
|
3626
|
+
*/
|
|
3627
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.setConfig = function(value) {
|
|
3628
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
3629
|
+
};
|
|
3630
|
+
|
|
3631
|
+
|
|
3632
|
+
/**
|
|
3633
|
+
* Clears the message field making it undefined.
|
|
3634
|
+
* @return {!proto.ondewo.s2t.TranscribeStreamRequest} returns this
|
|
2841
3635
|
*/
|
|
2842
|
-
proto.ondewo.s2t.
|
|
2843
|
-
return
|
|
3636
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.clearConfig = function() {
|
|
3637
|
+
return this.setConfig(undefined);
|
|
2844
3638
|
};
|
|
2845
3639
|
|
|
2846
3640
|
|
|
2847
3641
|
/**
|
|
2848
|
-
*
|
|
2849
|
-
* @return {
|
|
3642
|
+
* Returns whether this field is set.
|
|
3643
|
+
* @return {boolean}
|
|
2850
3644
|
*/
|
|
2851
|
-
proto.ondewo.s2t.
|
|
2852
|
-
return jspb.Message.
|
|
3645
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.hasConfig = function() {
|
|
3646
|
+
return jspb.Message.getField(this, 3) != null;
|
|
2853
3647
|
};
|
|
2854
3648
|
|
|
2855
3649
|
|
|
2856
3650
|
/**
|
|
2857
|
-
* optional
|
|
2858
|
-
* @return {
|
|
3651
|
+
* optional bool mute_audio = 4;
|
|
3652
|
+
* @return {boolean}
|
|
2859
3653
|
*/
|
|
2860
|
-
proto.ondewo.s2t.
|
|
2861
|
-
return /** @type {
|
|
3654
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.getMuteAudio = function() {
|
|
3655
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
2862
3656
|
};
|
|
2863
3657
|
|
|
2864
3658
|
|
|
2865
3659
|
/**
|
|
2866
|
-
* @param {
|
|
2867
|
-
* @return {!proto.ondewo.s2t.
|
|
3660
|
+
* @param {boolean} value
|
|
3661
|
+
* @return {!proto.ondewo.s2t.TranscribeStreamRequest} returns this
|
|
2868
3662
|
*/
|
|
2869
|
-
proto.ondewo.s2t.
|
|
2870
|
-
return jspb.Message.
|
|
3663
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.setMuteAudio = function(value) {
|
|
3664
|
+
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
2871
3665
|
};
|
|
2872
3666
|
|
|
2873
3667
|
|
|
@@ -3522,7 +4316,7 @@ proto.ondewo.s2t.TranscribeFileRequest.prototype.hasConfig = function() {
|
|
|
3522
4316
|
* @private {!Array<number>}
|
|
3523
4317
|
* @const
|
|
3524
4318
|
*/
|
|
3525
|
-
proto.ondewo.s2t.TranscribeFileResponse.repeatedFields_ = [1
|
|
4319
|
+
proto.ondewo.s2t.TranscribeFileResponse.repeatedFields_ = [1];
|
|
3526
4320
|
|
|
3527
4321
|
|
|
3528
4322
|
|
|
@@ -3558,9 +4352,7 @@ proto.ondewo.s2t.TranscribeFileResponse.toObject = function(includeInstance, msg
|
|
|
3558
4352
|
transcriptionsList: jspb.Message.toObjectList(msg.getTranscriptionsList(),
|
|
3559
4353
|
proto.ondewo.s2t.Transcription.toObject, includeInstance),
|
|
3560
4354
|
time: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
3561
|
-
|
|
3562
|
-
proto.ondewo.s2t.WordTiming.toObject, includeInstance),
|
|
3563
|
-
audioUuid: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
4355
|
+
audioUuid: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
3564
4356
|
};
|
|
3565
4357
|
|
|
3566
4358
|
if (includeInstance) {
|
|
@@ -3607,11 +4399,6 @@ proto.ondewo.s2t.TranscribeFileResponse.deserializeBinaryFromReader = function(m
|
|
|
3607
4399
|
msg.setTime(value);
|
|
3608
4400
|
break;
|
|
3609
4401
|
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
4402
|
var value = /** @type {string} */ (reader.readString());
|
|
3616
4403
|
msg.setAudioUuid(value);
|
|
3617
4404
|
break;
|
|
@@ -3659,18 +4446,10 @@ proto.ondewo.s2t.TranscribeFileResponse.serializeBinaryToWriter = function(messa
|
|
|
3659
4446
|
f
|
|
3660
4447
|
);
|
|
3661
4448
|
}
|
|
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
4449
|
f = message.getAudioUuid();
|
|
3671
4450
|
if (f.length > 0) {
|
|
3672
4451
|
writer.writeString(
|
|
3673
|
-
|
|
4452
|
+
3,
|
|
3674
4453
|
f
|
|
3675
4454
|
);
|
|
3676
4455
|
}
|
|
@@ -3697,285 +4476,57 @@ proto.ondewo.s2t.TranscribeFileResponse.prototype.setTranscriptionsList = functi
|
|
|
3697
4476
|
|
|
3698
4477
|
|
|
3699
4478
|
/**
|
|
3700
|
-
* @param {!proto.ondewo.s2t.Transcription=} opt_value
|
|
3701
|
-
* @param {number=} opt_index
|
|
3702
|
-
* @return {!proto.ondewo.s2t.Transcription}
|
|
3703
|
-
*/
|
|
3704
|
-
proto.ondewo.s2t.TranscribeFileResponse.prototype.addTranscriptions = function(opt_value, opt_index) {
|
|
3705
|
-
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.s2t.Transcription, opt_index);
|
|
3706
|
-
};
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
/**
|
|
3710
|
-
* Clears the list making it empty but non-null.
|
|
3711
|
-
* @return {!proto.ondewo.s2t.TranscribeFileResponse} returns this
|
|
3712
|
-
*/
|
|
3713
|
-
proto.ondewo.s2t.TranscribeFileResponse.prototype.clearTranscriptionsList = function() {
|
|
3714
|
-
return this.setTranscriptionsList([]);
|
|
3715
|
-
};
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
/**
|
|
3719
|
-
* optional float time = 2;
|
|
3720
|
-
* @return {number}
|
|
3721
|
-
*/
|
|
3722
|
-
proto.ondewo.s2t.TranscribeFileResponse.prototype.getTime = function() {
|
|
3723
|
-
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
3724
|
-
};
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
/**
|
|
3728
|
-
* @param {number} value
|
|
3729
|
-
* @return {!proto.ondewo.s2t.TranscribeFileResponse} returns this
|
|
3730
|
-
*/
|
|
3731
|
-
proto.ondewo.s2t.TranscribeFileResponse.prototype.setTime = function(value) {
|
|
3732
|
-
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
3733
|
-
};
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
/**
|
|
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;
|
|
3776
|
-
* @return {string}
|
|
3777
|
-
*/
|
|
3778
|
-
proto.ondewo.s2t.TranscribeFileResponse.prototype.getAudioUuid = function() {
|
|
3779
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
3780
|
-
};
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
/**
|
|
3784
|
-
* @param {string} value
|
|
3785
|
-
* @return {!proto.ondewo.s2t.TranscribeFileResponse} returns this
|
|
3786
|
-
*/
|
|
3787
|
-
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}
|
|
4479
|
+
* @param {!proto.ondewo.s2t.Transcription=} opt_value
|
|
4480
|
+
* @param {number=} opt_index
|
|
4481
|
+
* @return {!proto.ondewo.s2t.Transcription}
|
|
3931
4482
|
*/
|
|
3932
|
-
proto.ondewo.s2t.
|
|
3933
|
-
return
|
|
4483
|
+
proto.ondewo.s2t.TranscribeFileResponse.prototype.addTranscriptions = function(opt_value, opt_index) {
|
|
4484
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.s2t.Transcription, opt_index);
|
|
3934
4485
|
};
|
|
3935
4486
|
|
|
3936
4487
|
|
|
3937
4488
|
/**
|
|
3938
|
-
*
|
|
3939
|
-
* @return {!proto.ondewo.s2t.
|
|
4489
|
+
* Clears the list making it empty but non-null.
|
|
4490
|
+
* @return {!proto.ondewo.s2t.TranscribeFileResponse} returns this
|
|
3940
4491
|
*/
|
|
3941
|
-
proto.ondewo.s2t.
|
|
3942
|
-
return
|
|
4492
|
+
proto.ondewo.s2t.TranscribeFileResponse.prototype.clearTranscriptionsList = function() {
|
|
4493
|
+
return this.setTranscriptionsList([]);
|
|
3943
4494
|
};
|
|
3944
4495
|
|
|
3945
4496
|
|
|
3946
4497
|
/**
|
|
3947
|
-
* optional
|
|
4498
|
+
* optional float time = 2;
|
|
3948
4499
|
* @return {number}
|
|
3949
4500
|
*/
|
|
3950
|
-
proto.ondewo.s2t.
|
|
3951
|
-
return /** @type {number} */ (jspb.Message.
|
|
4501
|
+
proto.ondewo.s2t.TranscribeFileResponse.prototype.getTime = function() {
|
|
4502
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
3952
4503
|
};
|
|
3953
4504
|
|
|
3954
4505
|
|
|
3955
4506
|
/**
|
|
3956
4507
|
* @param {number} value
|
|
3957
|
-
* @return {!proto.ondewo.s2t.
|
|
4508
|
+
* @return {!proto.ondewo.s2t.TranscribeFileResponse} returns this
|
|
3958
4509
|
*/
|
|
3959
|
-
proto.ondewo.s2t.
|
|
3960
|
-
return jspb.Message.
|
|
4510
|
+
proto.ondewo.s2t.TranscribeFileResponse.prototype.setTime = function(value) {
|
|
4511
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
3961
4512
|
};
|
|
3962
4513
|
|
|
3963
4514
|
|
|
3964
4515
|
/**
|
|
3965
|
-
* optional
|
|
3966
|
-
* @return {
|
|
4516
|
+
* optional string audio_uuid = 3;
|
|
4517
|
+
* @return {string}
|
|
3967
4518
|
*/
|
|
3968
|
-
proto.ondewo.s2t.
|
|
3969
|
-
return /** @type {
|
|
4519
|
+
proto.ondewo.s2t.TranscribeFileResponse.prototype.getAudioUuid = function() {
|
|
4520
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3970
4521
|
};
|
|
3971
4522
|
|
|
3972
4523
|
|
|
3973
4524
|
/**
|
|
3974
|
-
* @param {
|
|
3975
|
-
* @return {!proto.ondewo.s2t.
|
|
4525
|
+
* @param {string} value
|
|
4526
|
+
* @return {!proto.ondewo.s2t.TranscribeFileResponse} returns this
|
|
3976
4527
|
*/
|
|
3977
|
-
proto.ondewo.s2t.
|
|
3978
|
-
return jspb.Message.
|
|
4528
|
+
proto.ondewo.s2t.TranscribeFileResponse.prototype.setAudioUuid = function(value) {
|
|
4529
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3979
4530
|
};
|
|
3980
4531
|
|
|
3981
4532
|
|
|
@@ -6356,8 +6907,6 @@ proto.ondewo.s2t.AcousticModels.prototype.toObject = function(opt_includeInstanc
|
|
|
6356
6907
|
proto.ondewo.s2t.AcousticModels.toObject = function(includeInstance, msg) {
|
|
6357
6908
|
var f, obj = {
|
|
6358
6909
|
type: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6359
|
-
quartznet: (f = msg.getQuartznet()) && proto.ondewo.s2t.Quartznet.toObject(includeInstance, f),
|
|
6360
|
-
quartznetTriton: (f = msg.getQuartznetTriton()) && proto.ondewo.s2t.QuartznetTriton.toObject(includeInstance, f),
|
|
6361
6910
|
wav2vec: (f = msg.getWav2vec()) && proto.ondewo.s2t.Wav2Vec.toObject(includeInstance, f),
|
|
6362
6911
|
wav2vecTriton: (f = msg.getWav2vecTriton()) && proto.ondewo.s2t.Wav2VecTriton.toObject(includeInstance, f),
|
|
6363
6912
|
whisper: (f = msg.getWhisper()) && proto.ondewo.s2t.Whisper.toObject(includeInstance, f),
|
|
@@ -6403,31 +6952,21 @@ proto.ondewo.s2t.AcousticModels.deserializeBinaryFromReader = function(msg, read
|
|
|
6403
6952
|
msg.setType(value);
|
|
6404
6953
|
break;
|
|
6405
6954
|
case 2:
|
|
6406
|
-
var value = new proto.ondewo.s2t.Quartznet;
|
|
6407
|
-
reader.readMessage(value,proto.ondewo.s2t.Quartznet.deserializeBinaryFromReader);
|
|
6408
|
-
msg.setQuartznet(value);
|
|
6409
|
-
break;
|
|
6410
|
-
case 3:
|
|
6411
|
-
var value = new proto.ondewo.s2t.QuartznetTriton;
|
|
6412
|
-
reader.readMessage(value,proto.ondewo.s2t.QuartznetTriton.deserializeBinaryFromReader);
|
|
6413
|
-
msg.setQuartznetTriton(value);
|
|
6414
|
-
break;
|
|
6415
|
-
case 4:
|
|
6416
6955
|
var value = new proto.ondewo.s2t.Wav2Vec;
|
|
6417
6956
|
reader.readMessage(value,proto.ondewo.s2t.Wav2Vec.deserializeBinaryFromReader);
|
|
6418
6957
|
msg.setWav2vec(value);
|
|
6419
6958
|
break;
|
|
6420
|
-
case
|
|
6959
|
+
case 3:
|
|
6421
6960
|
var value = new proto.ondewo.s2t.Wav2VecTriton;
|
|
6422
6961
|
reader.readMessage(value,proto.ondewo.s2t.Wav2VecTriton.deserializeBinaryFromReader);
|
|
6423
6962
|
msg.setWav2vecTriton(value);
|
|
6424
6963
|
break;
|
|
6425
|
-
case
|
|
6964
|
+
case 4:
|
|
6426
6965
|
var value = new proto.ondewo.s2t.Whisper;
|
|
6427
6966
|
reader.readMessage(value,proto.ondewo.s2t.Whisper.deserializeBinaryFromReader);
|
|
6428
6967
|
msg.setWhisper(value);
|
|
6429
6968
|
break;
|
|
6430
|
-
case
|
|
6969
|
+
case 5:
|
|
6431
6970
|
var value = new proto.ondewo.s2t.WhisperTriton;
|
|
6432
6971
|
reader.readMessage(value,proto.ondewo.s2t.WhisperTriton.deserializeBinaryFromReader);
|
|
6433
6972
|
msg.setWhisperTriton(value);
|
|
@@ -6468,26 +7007,10 @@ proto.ondewo.s2t.AcousticModels.serializeBinaryToWriter = function(message, writ
|
|
|
6468
7007
|
f
|
|
6469
7008
|
);
|
|
6470
7009
|
}
|
|
6471
|
-
f = message.getQuartznet();
|
|
6472
|
-
if (f != null) {
|
|
6473
|
-
writer.writeMessage(
|
|
6474
|
-
2,
|
|
6475
|
-
f,
|
|
6476
|
-
proto.ondewo.s2t.Quartznet.serializeBinaryToWriter
|
|
6477
|
-
);
|
|
6478
|
-
}
|
|
6479
|
-
f = message.getQuartznetTriton();
|
|
6480
|
-
if (f != null) {
|
|
6481
|
-
writer.writeMessage(
|
|
6482
|
-
3,
|
|
6483
|
-
f,
|
|
6484
|
-
proto.ondewo.s2t.QuartznetTriton.serializeBinaryToWriter
|
|
6485
|
-
);
|
|
6486
|
-
}
|
|
6487
7010
|
f = message.getWav2vec();
|
|
6488
7011
|
if (f != null) {
|
|
6489
7012
|
writer.writeMessage(
|
|
6490
|
-
|
|
7013
|
+
2,
|
|
6491
7014
|
f,
|
|
6492
7015
|
proto.ondewo.s2t.Wav2Vec.serializeBinaryToWriter
|
|
6493
7016
|
);
|
|
@@ -6495,7 +7018,7 @@ proto.ondewo.s2t.AcousticModels.serializeBinaryToWriter = function(message, writ
|
|
|
6495
7018
|
f = message.getWav2vecTriton();
|
|
6496
7019
|
if (f != null) {
|
|
6497
7020
|
writer.writeMessage(
|
|
6498
|
-
|
|
7021
|
+
3,
|
|
6499
7022
|
f,
|
|
6500
7023
|
proto.ondewo.s2t.Wav2VecTriton.serializeBinaryToWriter
|
|
6501
7024
|
);
|
|
@@ -6503,7 +7026,7 @@ proto.ondewo.s2t.AcousticModels.serializeBinaryToWriter = function(message, writ
|
|
|
6503
7026
|
f = message.getWhisper();
|
|
6504
7027
|
if (f != null) {
|
|
6505
7028
|
writer.writeMessage(
|
|
6506
|
-
|
|
7029
|
+
4,
|
|
6507
7030
|
f,
|
|
6508
7031
|
proto.ondewo.s2t.Whisper.serializeBinaryToWriter
|
|
6509
7032
|
);
|
|
@@ -6511,7 +7034,7 @@ proto.ondewo.s2t.AcousticModels.serializeBinaryToWriter = function(message, writ
|
|
|
6511
7034
|
f = message.getWhisperTriton();
|
|
6512
7035
|
if (f != null) {
|
|
6513
7036
|
writer.writeMessage(
|
|
6514
|
-
|
|
7037
|
+
5,
|
|
6515
7038
|
f,
|
|
6516
7039
|
proto.ondewo.s2t.WhisperTriton.serializeBinaryToWriter
|
|
6517
7040
|
);
|
|
@@ -6538,86 +7061,12 @@ proto.ondewo.s2t.AcousticModels.prototype.setType = function(value) {
|
|
|
6538
7061
|
|
|
6539
7062
|
|
|
6540
7063
|
/**
|
|
6541
|
-
* optional
|
|
6542
|
-
* @return {?proto.ondewo.s2t.Quartznet}
|
|
6543
|
-
*/
|
|
6544
|
-
proto.ondewo.s2t.AcousticModels.prototype.getQuartznet = function() {
|
|
6545
|
-
return /** @type{?proto.ondewo.s2t.Quartznet} */ (
|
|
6546
|
-
jspb.Message.getWrapperField(this, proto.ondewo.s2t.Quartznet, 2));
|
|
6547
|
-
};
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
/**
|
|
6551
|
-
* @param {?proto.ondewo.s2t.Quartznet|undefined} value
|
|
6552
|
-
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6553
|
-
*/
|
|
6554
|
-
proto.ondewo.s2t.AcousticModels.prototype.setQuartznet = function(value) {
|
|
6555
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
6556
|
-
};
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
/**
|
|
6560
|
-
* Clears the message field making it undefined.
|
|
6561
|
-
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6562
|
-
*/
|
|
6563
|
-
proto.ondewo.s2t.AcousticModels.prototype.clearQuartznet = function() {
|
|
6564
|
-
return this.setQuartznet(undefined);
|
|
6565
|
-
};
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
/**
|
|
6569
|
-
* Returns whether this field is set.
|
|
6570
|
-
* @return {boolean}
|
|
6571
|
-
*/
|
|
6572
|
-
proto.ondewo.s2t.AcousticModels.prototype.hasQuartznet = function() {
|
|
6573
|
-
return jspb.Message.getField(this, 2) != null;
|
|
6574
|
-
};
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
/**
|
|
6578
|
-
* optional QuartznetTriton quartznet_triton = 3;
|
|
6579
|
-
* @return {?proto.ondewo.s2t.QuartznetTriton}
|
|
6580
|
-
*/
|
|
6581
|
-
proto.ondewo.s2t.AcousticModels.prototype.getQuartznetTriton = function() {
|
|
6582
|
-
return /** @type{?proto.ondewo.s2t.QuartznetTriton} */ (
|
|
6583
|
-
jspb.Message.getWrapperField(this, proto.ondewo.s2t.QuartznetTriton, 3));
|
|
6584
|
-
};
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
/**
|
|
6588
|
-
* @param {?proto.ondewo.s2t.QuartznetTriton|undefined} value
|
|
6589
|
-
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6590
|
-
*/
|
|
6591
|
-
proto.ondewo.s2t.AcousticModels.prototype.setQuartznetTriton = function(value) {
|
|
6592
|
-
return jspb.Message.setWrapperField(this, 3, value);
|
|
6593
|
-
};
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
/**
|
|
6597
|
-
* Clears the message field making it undefined.
|
|
6598
|
-
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6599
|
-
*/
|
|
6600
|
-
proto.ondewo.s2t.AcousticModels.prototype.clearQuartznetTriton = function() {
|
|
6601
|
-
return this.setQuartznetTriton(undefined);
|
|
6602
|
-
};
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
/**
|
|
6606
|
-
* Returns whether this field is set.
|
|
6607
|
-
* @return {boolean}
|
|
6608
|
-
*/
|
|
6609
|
-
proto.ondewo.s2t.AcousticModels.prototype.hasQuartznetTriton = function() {
|
|
6610
|
-
return jspb.Message.getField(this, 3) != null;
|
|
6611
|
-
};
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
/**
|
|
6615
|
-
* optional Wav2Vec wav2vec = 4;
|
|
7064
|
+
* optional Wav2Vec wav2vec = 2;
|
|
6616
7065
|
* @return {?proto.ondewo.s2t.Wav2Vec}
|
|
6617
7066
|
*/
|
|
6618
7067
|
proto.ondewo.s2t.AcousticModels.prototype.getWav2vec = function() {
|
|
6619
7068
|
return /** @type{?proto.ondewo.s2t.Wav2Vec} */ (
|
|
6620
|
-
jspb.Message.getWrapperField(this, proto.ondewo.s2t.Wav2Vec,
|
|
7069
|
+
jspb.Message.getWrapperField(this, proto.ondewo.s2t.Wav2Vec, 2));
|
|
6621
7070
|
};
|
|
6622
7071
|
|
|
6623
7072
|
|
|
@@ -6626,7 +7075,7 @@ proto.ondewo.s2t.AcousticModels.prototype.getWav2vec = function() {
|
|
|
6626
7075
|
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6627
7076
|
*/
|
|
6628
7077
|
proto.ondewo.s2t.AcousticModels.prototype.setWav2vec = function(value) {
|
|
6629
|
-
return jspb.Message.setWrapperField(this,
|
|
7078
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
6630
7079
|
};
|
|
6631
7080
|
|
|
6632
7081
|
|
|
@@ -6644,17 +7093,17 @@ proto.ondewo.s2t.AcousticModels.prototype.clearWav2vec = function() {
|
|
|
6644
7093
|
* @return {boolean}
|
|
6645
7094
|
*/
|
|
6646
7095
|
proto.ondewo.s2t.AcousticModels.prototype.hasWav2vec = function() {
|
|
6647
|
-
return jspb.Message.getField(this,
|
|
7096
|
+
return jspb.Message.getField(this, 2) != null;
|
|
6648
7097
|
};
|
|
6649
7098
|
|
|
6650
7099
|
|
|
6651
7100
|
/**
|
|
6652
|
-
* optional Wav2VecTriton wav2vec_triton =
|
|
7101
|
+
* optional Wav2VecTriton wav2vec_triton = 3;
|
|
6653
7102
|
* @return {?proto.ondewo.s2t.Wav2VecTriton}
|
|
6654
7103
|
*/
|
|
6655
7104
|
proto.ondewo.s2t.AcousticModels.prototype.getWav2vecTriton = function() {
|
|
6656
7105
|
return /** @type{?proto.ondewo.s2t.Wav2VecTriton} */ (
|
|
6657
|
-
jspb.Message.getWrapperField(this, proto.ondewo.s2t.Wav2VecTriton,
|
|
7106
|
+
jspb.Message.getWrapperField(this, proto.ondewo.s2t.Wav2VecTriton, 3));
|
|
6658
7107
|
};
|
|
6659
7108
|
|
|
6660
7109
|
|
|
@@ -6663,7 +7112,7 @@ proto.ondewo.s2t.AcousticModels.prototype.getWav2vecTriton = function() {
|
|
|
6663
7112
|
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6664
7113
|
*/
|
|
6665
7114
|
proto.ondewo.s2t.AcousticModels.prototype.setWav2vecTriton = function(value) {
|
|
6666
|
-
return jspb.Message.setWrapperField(this,
|
|
7115
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
6667
7116
|
};
|
|
6668
7117
|
|
|
6669
7118
|
|
|
@@ -6681,17 +7130,17 @@ proto.ondewo.s2t.AcousticModels.prototype.clearWav2vecTriton = function() {
|
|
|
6681
7130
|
* @return {boolean}
|
|
6682
7131
|
*/
|
|
6683
7132
|
proto.ondewo.s2t.AcousticModels.prototype.hasWav2vecTriton = function() {
|
|
6684
|
-
return jspb.Message.getField(this,
|
|
7133
|
+
return jspb.Message.getField(this, 3) != null;
|
|
6685
7134
|
};
|
|
6686
7135
|
|
|
6687
7136
|
|
|
6688
7137
|
/**
|
|
6689
|
-
* optional Whisper whisper =
|
|
7138
|
+
* optional Whisper whisper = 4;
|
|
6690
7139
|
* @return {?proto.ondewo.s2t.Whisper}
|
|
6691
7140
|
*/
|
|
6692
7141
|
proto.ondewo.s2t.AcousticModels.prototype.getWhisper = function() {
|
|
6693
7142
|
return /** @type{?proto.ondewo.s2t.Whisper} */ (
|
|
6694
|
-
jspb.Message.getWrapperField(this, proto.ondewo.s2t.Whisper,
|
|
7143
|
+
jspb.Message.getWrapperField(this, proto.ondewo.s2t.Whisper, 4));
|
|
6695
7144
|
};
|
|
6696
7145
|
|
|
6697
7146
|
|
|
@@ -6700,7 +7149,7 @@ proto.ondewo.s2t.AcousticModels.prototype.getWhisper = function() {
|
|
|
6700
7149
|
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6701
7150
|
*/
|
|
6702
7151
|
proto.ondewo.s2t.AcousticModels.prototype.setWhisper = function(value) {
|
|
6703
|
-
return jspb.Message.setWrapperField(this,
|
|
7152
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
6704
7153
|
};
|
|
6705
7154
|
|
|
6706
7155
|
|
|
@@ -6718,17 +7167,17 @@ proto.ondewo.s2t.AcousticModels.prototype.clearWhisper = function() {
|
|
|
6718
7167
|
* @return {boolean}
|
|
6719
7168
|
*/
|
|
6720
7169
|
proto.ondewo.s2t.AcousticModels.prototype.hasWhisper = function() {
|
|
6721
|
-
return jspb.Message.getField(this,
|
|
7170
|
+
return jspb.Message.getField(this, 4) != null;
|
|
6722
7171
|
};
|
|
6723
7172
|
|
|
6724
7173
|
|
|
6725
7174
|
/**
|
|
6726
|
-
* optional WhisperTriton whisper_triton =
|
|
7175
|
+
* optional WhisperTriton whisper_triton = 5;
|
|
6727
7176
|
* @return {?proto.ondewo.s2t.WhisperTriton}
|
|
6728
7177
|
*/
|
|
6729
7178
|
proto.ondewo.s2t.AcousticModels.prototype.getWhisperTriton = function() {
|
|
6730
7179
|
return /** @type{?proto.ondewo.s2t.WhisperTriton} */ (
|
|
6731
|
-
jspb.Message.getWrapperField(this, proto.ondewo.s2t.WhisperTriton,
|
|
7180
|
+
jspb.Message.getWrapperField(this, proto.ondewo.s2t.WhisperTriton, 5));
|
|
6732
7181
|
};
|
|
6733
7182
|
|
|
6734
7183
|
|
|
@@ -6737,7 +7186,7 @@ proto.ondewo.s2t.AcousticModels.prototype.getWhisperTriton = function() {
|
|
|
6737
7186
|
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6738
7187
|
*/
|
|
6739
7188
|
proto.ondewo.s2t.AcousticModels.prototype.setWhisperTriton = function(value) {
|
|
6740
|
-
return jspb.Message.setWrapperField(this,
|
|
7189
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
6741
7190
|
};
|
|
6742
7191
|
|
|
6743
7192
|
|
|
@@ -6755,7 +7204,7 @@ proto.ondewo.s2t.AcousticModels.prototype.clearWhisperTriton = function() {
|
|
|
6755
7204
|
* @return {boolean}
|
|
6756
7205
|
*/
|
|
6757
7206
|
proto.ondewo.s2t.AcousticModels.prototype.hasWhisperTriton = function() {
|
|
6758
|
-
return jspb.Message.getField(this,
|
|
7207
|
+
return jspb.Message.getField(this, 5) != null;
|
|
6759
7208
|
};
|
|
6760
7209
|
|
|
6761
7210
|
|
|
@@ -6793,7 +7242,8 @@ proto.ondewo.s2t.Whisper.toObject = function(includeInstance, msg) {
|
|
|
6793
7242
|
var f, obj = {
|
|
6794
7243
|
modelPath: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6795
7244
|
useGpu: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
6796
|
-
language: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
7245
|
+
language: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
7246
|
+
task: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
6797
7247
|
};
|
|
6798
7248
|
|
|
6799
7249
|
if (includeInstance) {
|
|
@@ -6842,6 +7292,10 @@ proto.ondewo.s2t.Whisper.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
6842
7292
|
var value = /** @type {string} */ (reader.readString());
|
|
6843
7293
|
msg.setLanguage(value);
|
|
6844
7294
|
break;
|
|
7295
|
+
case 4:
|
|
7296
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7297
|
+
msg.setTask(value);
|
|
7298
|
+
break;
|
|
6845
7299
|
default:
|
|
6846
7300
|
reader.skipField();
|
|
6847
7301
|
break;
|
|
@@ -6892,6 +7346,13 @@ proto.ondewo.s2t.Whisper.serializeBinaryToWriter = function(message, writer) {
|
|
|
6892
7346
|
f
|
|
6893
7347
|
);
|
|
6894
7348
|
}
|
|
7349
|
+
f = message.getTask();
|
|
7350
|
+
if (f.length > 0) {
|
|
7351
|
+
writer.writeString(
|
|
7352
|
+
4,
|
|
7353
|
+
f
|
|
7354
|
+
);
|
|
7355
|
+
}
|
|
6895
7356
|
};
|
|
6896
7357
|
|
|
6897
7358
|
|
|
@@ -6949,6 +7410,24 @@ proto.ondewo.s2t.Whisper.prototype.setLanguage = function(value) {
|
|
|
6949
7410
|
};
|
|
6950
7411
|
|
|
6951
7412
|
|
|
7413
|
+
/**
|
|
7414
|
+
* optional string task = 4;
|
|
7415
|
+
* @return {string}
|
|
7416
|
+
*/
|
|
7417
|
+
proto.ondewo.s2t.Whisper.prototype.getTask = function() {
|
|
7418
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
7419
|
+
};
|
|
7420
|
+
|
|
7421
|
+
|
|
7422
|
+
/**
|
|
7423
|
+
* @param {string} value
|
|
7424
|
+
* @return {!proto.ondewo.s2t.Whisper} returns this
|
|
7425
|
+
*/
|
|
7426
|
+
proto.ondewo.s2t.Whisper.prototype.setTask = function(value) {
|
|
7427
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
7428
|
+
};
|
|
7429
|
+
|
|
7430
|
+
|
|
6952
7431
|
|
|
6953
7432
|
|
|
6954
7433
|
|
|
@@ -6984,7 +7463,11 @@ proto.ondewo.s2t.WhisperTriton.toObject = function(includeInstance, msg) {
|
|
|
6984
7463
|
processorPath: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6985
7464
|
tritonModelName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
6986
7465
|
tritonModelVersion: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
6987
|
-
checkStatusTimeout: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
7466
|
+
checkStatusTimeout: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
7467
|
+
language: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
7468
|
+
task: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
7469
|
+
tritonServerHost: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
7470
|
+
tritonServerPort: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
6988
7471
|
};
|
|
6989
7472
|
|
|
6990
7473
|
if (includeInstance) {
|
|
@@ -7037,6 +7520,22 @@ proto.ondewo.s2t.WhisperTriton.deserializeBinaryFromReader = function(msg, reade
|
|
|
7037
7520
|
var value = /** @type {number} */ (reader.readInt64());
|
|
7038
7521
|
msg.setCheckStatusTimeout(value);
|
|
7039
7522
|
break;
|
|
7523
|
+
case 5:
|
|
7524
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7525
|
+
msg.setLanguage(value);
|
|
7526
|
+
break;
|
|
7527
|
+
case 6:
|
|
7528
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7529
|
+
msg.setTask(value);
|
|
7530
|
+
break;
|
|
7531
|
+
case 7:
|
|
7532
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7533
|
+
msg.setTritonServerHost(value);
|
|
7534
|
+
break;
|
|
7535
|
+
case 8:
|
|
7536
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
7537
|
+
msg.setTritonServerPort(value);
|
|
7538
|
+
break;
|
|
7040
7539
|
default:
|
|
7041
7540
|
reader.skipField();
|
|
7042
7541
|
break;
|
|
@@ -7094,15 +7593,115 @@ proto.ondewo.s2t.WhisperTriton.serializeBinaryToWriter = function(message, write
|
|
|
7094
7593
|
f
|
|
7095
7594
|
);
|
|
7096
7595
|
}
|
|
7596
|
+
f = message.getLanguage();
|
|
7597
|
+
if (f.length > 0) {
|
|
7598
|
+
writer.writeString(
|
|
7599
|
+
5,
|
|
7600
|
+
f
|
|
7601
|
+
);
|
|
7602
|
+
}
|
|
7603
|
+
f = message.getTask();
|
|
7604
|
+
if (f.length > 0) {
|
|
7605
|
+
writer.writeString(
|
|
7606
|
+
6,
|
|
7607
|
+
f
|
|
7608
|
+
);
|
|
7609
|
+
}
|
|
7610
|
+
f = message.getTritonServerHost();
|
|
7611
|
+
if (f.length > 0) {
|
|
7612
|
+
writer.writeString(
|
|
7613
|
+
7,
|
|
7614
|
+
f
|
|
7615
|
+
);
|
|
7616
|
+
}
|
|
7617
|
+
f = message.getTritonServerPort();
|
|
7618
|
+
if (f !== 0) {
|
|
7619
|
+
writer.writeInt64(
|
|
7620
|
+
8,
|
|
7621
|
+
f
|
|
7622
|
+
);
|
|
7623
|
+
}
|
|
7624
|
+
};
|
|
7625
|
+
|
|
7626
|
+
|
|
7627
|
+
/**
|
|
7628
|
+
* optional string processor_path = 1;
|
|
7629
|
+
* @return {string}
|
|
7630
|
+
*/
|
|
7631
|
+
proto.ondewo.s2t.WhisperTriton.prototype.getProcessorPath = function() {
|
|
7632
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7633
|
+
};
|
|
7634
|
+
|
|
7635
|
+
|
|
7636
|
+
/**
|
|
7637
|
+
* @param {string} value
|
|
7638
|
+
* @return {!proto.ondewo.s2t.WhisperTriton} returns this
|
|
7639
|
+
*/
|
|
7640
|
+
proto.ondewo.s2t.WhisperTriton.prototype.setProcessorPath = function(value) {
|
|
7641
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7642
|
+
};
|
|
7643
|
+
|
|
7644
|
+
|
|
7645
|
+
/**
|
|
7646
|
+
* optional string triton_model_name = 2;
|
|
7647
|
+
* @return {string}
|
|
7648
|
+
*/
|
|
7649
|
+
proto.ondewo.s2t.WhisperTriton.prototype.getTritonModelName = function() {
|
|
7650
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7651
|
+
};
|
|
7652
|
+
|
|
7653
|
+
|
|
7654
|
+
/**
|
|
7655
|
+
* @param {string} value
|
|
7656
|
+
* @return {!proto.ondewo.s2t.WhisperTriton} returns this
|
|
7657
|
+
*/
|
|
7658
|
+
proto.ondewo.s2t.WhisperTriton.prototype.setTritonModelName = function(value) {
|
|
7659
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7660
|
+
};
|
|
7661
|
+
|
|
7662
|
+
|
|
7663
|
+
/**
|
|
7664
|
+
* optional string triton_model_version = 3;
|
|
7665
|
+
* @return {string}
|
|
7666
|
+
*/
|
|
7667
|
+
proto.ondewo.s2t.WhisperTriton.prototype.getTritonModelVersion = function() {
|
|
7668
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
7669
|
+
};
|
|
7670
|
+
|
|
7671
|
+
|
|
7672
|
+
/**
|
|
7673
|
+
* @param {string} value
|
|
7674
|
+
* @return {!proto.ondewo.s2t.WhisperTriton} returns this
|
|
7675
|
+
*/
|
|
7676
|
+
proto.ondewo.s2t.WhisperTriton.prototype.setTritonModelVersion = function(value) {
|
|
7677
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
7678
|
+
};
|
|
7679
|
+
|
|
7680
|
+
|
|
7681
|
+
/**
|
|
7682
|
+
* optional int64 check_status_timeout = 4;
|
|
7683
|
+
* @return {number}
|
|
7684
|
+
*/
|
|
7685
|
+
proto.ondewo.s2t.WhisperTriton.prototype.getCheckStatusTimeout = function() {
|
|
7686
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
7097
7687
|
};
|
|
7098
7688
|
|
|
7099
7689
|
|
|
7100
7690
|
/**
|
|
7101
|
-
*
|
|
7691
|
+
* @param {number} value
|
|
7692
|
+
* @return {!proto.ondewo.s2t.WhisperTriton} returns this
|
|
7693
|
+
*/
|
|
7694
|
+
proto.ondewo.s2t.WhisperTriton.prototype.setCheckStatusTimeout = function(value) {
|
|
7695
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
7696
|
+
};
|
|
7697
|
+
|
|
7698
|
+
|
|
7699
|
+
/**
|
|
7700
|
+
* optional string language = 5;
|
|
7102
7701
|
* @return {string}
|
|
7103
7702
|
*/
|
|
7104
|
-
proto.ondewo.s2t.WhisperTriton.prototype.
|
|
7105
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
7703
|
+
proto.ondewo.s2t.WhisperTriton.prototype.getLanguage = function() {
|
|
7704
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
7106
7705
|
};
|
|
7107
7706
|
|
|
7108
7707
|
|
|
@@ -7110,17 +7709,17 @@ proto.ondewo.s2t.WhisperTriton.prototype.getProcessorPath = function() {
|
|
|
7110
7709
|
* @param {string} value
|
|
7111
7710
|
* @return {!proto.ondewo.s2t.WhisperTriton} returns this
|
|
7112
7711
|
*/
|
|
7113
|
-
proto.ondewo.s2t.WhisperTriton.prototype.
|
|
7114
|
-
return jspb.Message.setProto3StringField(this,
|
|
7712
|
+
proto.ondewo.s2t.WhisperTriton.prototype.setLanguage = function(value) {
|
|
7713
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
7115
7714
|
};
|
|
7116
7715
|
|
|
7117
7716
|
|
|
7118
7717
|
/**
|
|
7119
|
-
* optional string
|
|
7718
|
+
* optional string task = 6;
|
|
7120
7719
|
* @return {string}
|
|
7121
7720
|
*/
|
|
7122
|
-
proto.ondewo.s2t.WhisperTriton.prototype.
|
|
7123
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
7721
|
+
proto.ondewo.s2t.WhisperTriton.prototype.getTask = function() {
|
|
7722
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
7124
7723
|
};
|
|
7125
7724
|
|
|
7126
7725
|
|
|
@@ -7128,17 +7727,17 @@ proto.ondewo.s2t.WhisperTriton.prototype.getTritonModelName = function() {
|
|
|
7128
7727
|
* @param {string} value
|
|
7129
7728
|
* @return {!proto.ondewo.s2t.WhisperTriton} returns this
|
|
7130
7729
|
*/
|
|
7131
|
-
proto.ondewo.s2t.WhisperTriton.prototype.
|
|
7132
|
-
return jspb.Message.setProto3StringField(this,
|
|
7730
|
+
proto.ondewo.s2t.WhisperTriton.prototype.setTask = function(value) {
|
|
7731
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
7133
7732
|
};
|
|
7134
7733
|
|
|
7135
7734
|
|
|
7136
7735
|
/**
|
|
7137
|
-
* optional string
|
|
7736
|
+
* optional string triton_server_host = 7;
|
|
7138
7737
|
* @return {string}
|
|
7139
7738
|
*/
|
|
7140
|
-
proto.ondewo.s2t.WhisperTriton.prototype.
|
|
7141
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
7739
|
+
proto.ondewo.s2t.WhisperTriton.prototype.getTritonServerHost = function() {
|
|
7740
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
7142
7741
|
};
|
|
7143
7742
|
|
|
7144
7743
|
|
|
@@ -7146,17 +7745,17 @@ proto.ondewo.s2t.WhisperTriton.prototype.getTritonModelVersion = function() {
|
|
|
7146
7745
|
* @param {string} value
|
|
7147
7746
|
* @return {!proto.ondewo.s2t.WhisperTriton} returns this
|
|
7148
7747
|
*/
|
|
7149
|
-
proto.ondewo.s2t.WhisperTriton.prototype.
|
|
7150
|
-
return jspb.Message.setProto3StringField(this,
|
|
7748
|
+
proto.ondewo.s2t.WhisperTriton.prototype.setTritonServerHost = function(value) {
|
|
7749
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
7151
7750
|
};
|
|
7152
7751
|
|
|
7153
7752
|
|
|
7154
7753
|
/**
|
|
7155
|
-
* optional int64
|
|
7754
|
+
* optional int64 triton_server_port = 8;
|
|
7156
7755
|
* @return {number}
|
|
7157
7756
|
*/
|
|
7158
|
-
proto.ondewo.s2t.WhisperTriton.prototype.
|
|
7159
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
|
7757
|
+
proto.ondewo.s2t.WhisperTriton.prototype.getTritonServerPort = function() {
|
|
7758
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
7160
7759
|
};
|
|
7161
7760
|
|
|
7162
7761
|
|
|
@@ -7164,8 +7763,8 @@ proto.ondewo.s2t.WhisperTriton.prototype.getCheckStatusTimeout = function() {
|
|
|
7164
7763
|
* @param {number} value
|
|
7165
7764
|
* @return {!proto.ondewo.s2t.WhisperTriton} returns this
|
|
7166
7765
|
*/
|
|
7167
|
-
proto.ondewo.s2t.WhisperTriton.prototype.
|
|
7168
|
-
return jspb.Message.setProto3IntField(this,
|
|
7766
|
+
proto.ondewo.s2t.WhisperTriton.prototype.setTritonServerPort = function(value) {
|
|
7767
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
7169
7768
|
};
|
|
7170
7769
|
|
|
7171
7770
|
|
|
@@ -7364,7 +7963,9 @@ proto.ondewo.s2t.Wav2VecTriton.toObject = function(includeInstance, msg) {
|
|
|
7364
7963
|
processorPath: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7365
7964
|
tritonModelName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7366
7965
|
tritonModelVersion: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
7367
|
-
checkStatusTimeout: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
7966
|
+
checkStatusTimeout: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
7967
|
+
tritonServerHost: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
7968
|
+
tritonServerPort: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
7368
7969
|
};
|
|
7369
7970
|
|
|
7370
7971
|
if (includeInstance) {
|
|
@@ -7417,6 +8018,14 @@ proto.ondewo.s2t.Wav2VecTriton.deserializeBinaryFromReader = function(msg, reade
|
|
|
7417
8018
|
var value = /** @type {number} */ (reader.readInt64());
|
|
7418
8019
|
msg.setCheckStatusTimeout(value);
|
|
7419
8020
|
break;
|
|
8021
|
+
case 5:
|
|
8022
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8023
|
+
msg.setTritonServerHost(value);
|
|
8024
|
+
break;
|
|
8025
|
+
case 6:
|
|
8026
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
8027
|
+
msg.setTritonServerPort(value);
|
|
8028
|
+
break;
|
|
7420
8029
|
default:
|
|
7421
8030
|
reader.skipField();
|
|
7422
8031
|
break;
|
|
@@ -7474,239 +8083,17 @@ proto.ondewo.s2t.Wav2VecTriton.serializeBinaryToWriter = function(message, write
|
|
|
7474
8083
|
f
|
|
7475
8084
|
);
|
|
7476
8085
|
}
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
|
|
7480
|
-
/**
|
|
7481
|
-
* optional string processor_path = 1;
|
|
7482
|
-
* @return {string}
|
|
7483
|
-
*/
|
|
7484
|
-
proto.ondewo.s2t.Wav2VecTriton.prototype.getProcessorPath = function() {
|
|
7485
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7486
|
-
};
|
|
7487
|
-
|
|
7488
|
-
|
|
7489
|
-
/**
|
|
7490
|
-
* @param {string} value
|
|
7491
|
-
* @return {!proto.ondewo.s2t.Wav2VecTriton} returns this
|
|
7492
|
-
*/
|
|
7493
|
-
proto.ondewo.s2t.Wav2VecTriton.prototype.setProcessorPath = function(value) {
|
|
7494
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7495
|
-
};
|
|
7496
|
-
|
|
7497
|
-
|
|
7498
|
-
/**
|
|
7499
|
-
* optional string triton_model_name = 2;
|
|
7500
|
-
* @return {string}
|
|
7501
|
-
*/
|
|
7502
|
-
proto.ondewo.s2t.Wav2VecTriton.prototype.getTritonModelName = function() {
|
|
7503
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7504
|
-
};
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
-
/**
|
|
7508
|
-
* @param {string} value
|
|
7509
|
-
* @return {!proto.ondewo.s2t.Wav2VecTriton} returns this
|
|
7510
|
-
*/
|
|
7511
|
-
proto.ondewo.s2t.Wav2VecTriton.prototype.setTritonModelName = function(value) {
|
|
7512
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7513
|
-
};
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
/**
|
|
7517
|
-
* optional string triton_model_version = 3;
|
|
7518
|
-
* @return {string}
|
|
7519
|
-
*/
|
|
7520
|
-
proto.ondewo.s2t.Wav2VecTriton.prototype.getTritonModelVersion = function() {
|
|
7521
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
7522
|
-
};
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
/**
|
|
7526
|
-
* @param {string} value
|
|
7527
|
-
* @return {!proto.ondewo.s2t.Wav2VecTriton} returns this
|
|
7528
|
-
*/
|
|
7529
|
-
proto.ondewo.s2t.Wav2VecTriton.prototype.setTritonModelVersion = function(value) {
|
|
7530
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
7531
|
-
};
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
/**
|
|
7535
|
-
* optional int64 check_status_timeout = 4;
|
|
7536
|
-
* @return {number}
|
|
7537
|
-
*/
|
|
7538
|
-
proto.ondewo.s2t.Wav2VecTriton.prototype.getCheckStatusTimeout = function() {
|
|
7539
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
7540
|
-
};
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
/**
|
|
7544
|
-
* @param {number} value
|
|
7545
|
-
* @return {!proto.ondewo.s2t.Wav2VecTriton} returns this
|
|
7546
|
-
*/
|
|
7547
|
-
proto.ondewo.s2t.Wav2VecTriton.prototype.setCheckStatusTimeout = function(value) {
|
|
7548
|
-
return jspb.Message.setProto3IntField(this, 4, value);
|
|
7549
|
-
};
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7556
|
-
/**
|
|
7557
|
-
* Creates an object representation of this proto.
|
|
7558
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7559
|
-
* Optional fields that are not set will be set to undefined.
|
|
7560
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7561
|
-
* For the list of reserved names please see:
|
|
7562
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7563
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7564
|
-
* JSPB instance for transitional soy proto support:
|
|
7565
|
-
* http://goto/soy-param-migration
|
|
7566
|
-
* @return {!Object}
|
|
7567
|
-
*/
|
|
7568
|
-
proto.ondewo.s2t.Quartznet.prototype.toObject = function(opt_includeInstance) {
|
|
7569
|
-
return proto.ondewo.s2t.Quartznet.toObject(opt_includeInstance, this);
|
|
7570
|
-
};
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
/**
|
|
7574
|
-
* Static version of the {@see toObject} method.
|
|
7575
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7576
|
-
* the JSPB instance for transitional soy proto support:
|
|
7577
|
-
* http://goto/soy-param-migration
|
|
7578
|
-
* @param {!proto.ondewo.s2t.Quartznet} msg The msg instance to transform.
|
|
7579
|
-
* @return {!Object}
|
|
7580
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7581
|
-
*/
|
|
7582
|
-
proto.ondewo.s2t.Quartznet.toObject = function(includeInstance, msg) {
|
|
7583
|
-
var f, obj = {
|
|
7584
|
-
configPath: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7585
|
-
loadType: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7586
|
-
ptFiles: (f = msg.getPtFiles()) && proto.ondewo.s2t.PtFiles.toObject(includeInstance, f),
|
|
7587
|
-
ckptFile: (f = msg.getCkptFile()) && proto.ondewo.s2t.CkptFile.toObject(includeInstance, f),
|
|
7588
|
-
useGpu: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
7589
|
-
};
|
|
7590
|
-
|
|
7591
|
-
if (includeInstance) {
|
|
7592
|
-
obj.$jspbMessageInstance = msg;
|
|
7593
|
-
}
|
|
7594
|
-
return obj;
|
|
7595
|
-
};
|
|
7596
|
-
}
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
/**
|
|
7600
|
-
* Deserializes binary data (in protobuf wire format).
|
|
7601
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7602
|
-
* @return {!proto.ondewo.s2t.Quartznet}
|
|
7603
|
-
*/
|
|
7604
|
-
proto.ondewo.s2t.Quartznet.deserializeBinary = function(bytes) {
|
|
7605
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
7606
|
-
var msg = new proto.ondewo.s2t.Quartznet;
|
|
7607
|
-
return proto.ondewo.s2t.Quartznet.deserializeBinaryFromReader(msg, reader);
|
|
7608
|
-
};
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
/**
|
|
7612
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
7613
|
-
* given reader into the given message object.
|
|
7614
|
-
* @param {!proto.ondewo.s2t.Quartznet} msg The message object to deserialize into.
|
|
7615
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7616
|
-
* @return {!proto.ondewo.s2t.Quartznet}
|
|
7617
|
-
*/
|
|
7618
|
-
proto.ondewo.s2t.Quartznet.deserializeBinaryFromReader = function(msg, reader) {
|
|
7619
|
-
while (reader.nextField()) {
|
|
7620
|
-
if (reader.isEndGroup()) {
|
|
7621
|
-
break;
|
|
7622
|
-
}
|
|
7623
|
-
var field = reader.getFieldNumber();
|
|
7624
|
-
switch (field) {
|
|
7625
|
-
case 1:
|
|
7626
|
-
var value = /** @type {string} */ (reader.readString());
|
|
7627
|
-
msg.setConfigPath(value);
|
|
7628
|
-
break;
|
|
7629
|
-
case 2:
|
|
7630
|
-
var value = /** @type {string} */ (reader.readString());
|
|
7631
|
-
msg.setLoadType(value);
|
|
7632
|
-
break;
|
|
7633
|
-
case 3:
|
|
7634
|
-
var value = new proto.ondewo.s2t.PtFiles;
|
|
7635
|
-
reader.readMessage(value,proto.ondewo.s2t.PtFiles.deserializeBinaryFromReader);
|
|
7636
|
-
msg.setPtFiles(value);
|
|
7637
|
-
break;
|
|
7638
|
-
case 4:
|
|
7639
|
-
var value = new proto.ondewo.s2t.CkptFile;
|
|
7640
|
-
reader.readMessage(value,proto.ondewo.s2t.CkptFile.deserializeBinaryFromReader);
|
|
7641
|
-
msg.setCkptFile(value);
|
|
7642
|
-
break;
|
|
7643
|
-
case 5:
|
|
7644
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
7645
|
-
msg.setUseGpu(value);
|
|
7646
|
-
break;
|
|
7647
|
-
default:
|
|
7648
|
-
reader.skipField();
|
|
7649
|
-
break;
|
|
7650
|
-
}
|
|
7651
|
-
}
|
|
7652
|
-
return msg;
|
|
7653
|
-
};
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
/**
|
|
7657
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
7658
|
-
* @return {!Uint8Array}
|
|
7659
|
-
*/
|
|
7660
|
-
proto.ondewo.s2t.Quartznet.prototype.serializeBinary = function() {
|
|
7661
|
-
var writer = new jspb.BinaryWriter();
|
|
7662
|
-
proto.ondewo.s2t.Quartznet.serializeBinaryToWriter(this, writer);
|
|
7663
|
-
return writer.getResultBuffer();
|
|
7664
|
-
};
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
/**
|
|
7668
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
7669
|
-
* format), writing to the given BinaryWriter.
|
|
7670
|
-
* @param {!proto.ondewo.s2t.Quartznet} message
|
|
7671
|
-
* @param {!jspb.BinaryWriter} writer
|
|
7672
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7673
|
-
*/
|
|
7674
|
-
proto.ondewo.s2t.Quartznet.serializeBinaryToWriter = function(message, writer) {
|
|
7675
|
-
var f = undefined;
|
|
7676
|
-
f = message.getConfigPath();
|
|
7677
|
-
if (f.length > 0) {
|
|
7678
|
-
writer.writeString(
|
|
7679
|
-
1,
|
|
7680
|
-
f
|
|
7681
|
-
);
|
|
7682
|
-
}
|
|
7683
|
-
f = message.getLoadType();
|
|
8086
|
+
f = message.getTritonServerHost();
|
|
7684
8087
|
if (f.length > 0) {
|
|
7685
8088
|
writer.writeString(
|
|
7686
|
-
|
|
8089
|
+
5,
|
|
7687
8090
|
f
|
|
7688
8091
|
);
|
|
7689
8092
|
}
|
|
7690
|
-
f = message.
|
|
7691
|
-
if (f
|
|
7692
|
-
writer.
|
|
7693
|
-
|
|
7694
|
-
f,
|
|
7695
|
-
proto.ondewo.s2t.PtFiles.serializeBinaryToWriter
|
|
7696
|
-
);
|
|
7697
|
-
}
|
|
7698
|
-
f = message.getCkptFile();
|
|
7699
|
-
if (f != null) {
|
|
7700
|
-
writer.writeMessage(
|
|
7701
|
-
4,
|
|
7702
|
-
f,
|
|
7703
|
-
proto.ondewo.s2t.CkptFile.serializeBinaryToWriter
|
|
7704
|
-
);
|
|
7705
|
-
}
|
|
7706
|
-
f = message.getUseGpu();
|
|
7707
|
-
if (f) {
|
|
7708
|
-
writer.writeBool(
|
|
7709
|
-
5,
|
|
8093
|
+
f = message.getTritonServerPort();
|
|
8094
|
+
if (f !== 0) {
|
|
8095
|
+
writer.writeInt64(
|
|
8096
|
+
6,
|
|
7710
8097
|
f
|
|
7711
8098
|
);
|
|
7712
8099
|
}
|
|
@@ -7714,130 +8101,110 @@ proto.ondewo.s2t.Quartznet.serializeBinaryToWriter = function(message, writer) {
|
|
|
7714
8101
|
|
|
7715
8102
|
|
|
7716
8103
|
/**
|
|
7717
|
-
* optional string
|
|
8104
|
+
* optional string processor_path = 1;
|
|
7718
8105
|
* @return {string}
|
|
7719
8106
|
*/
|
|
7720
|
-
proto.ondewo.s2t.
|
|
8107
|
+
proto.ondewo.s2t.Wav2VecTriton.prototype.getProcessorPath = function() {
|
|
7721
8108
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7722
8109
|
};
|
|
7723
8110
|
|
|
7724
8111
|
|
|
7725
8112
|
/**
|
|
7726
8113
|
* @param {string} value
|
|
7727
|
-
* @return {!proto.ondewo.s2t.
|
|
8114
|
+
* @return {!proto.ondewo.s2t.Wav2VecTriton} returns this
|
|
7728
8115
|
*/
|
|
7729
|
-
proto.ondewo.s2t.
|
|
8116
|
+
proto.ondewo.s2t.Wav2VecTriton.prototype.setProcessorPath = function(value) {
|
|
7730
8117
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7731
8118
|
};
|
|
7732
8119
|
|
|
7733
8120
|
|
|
7734
8121
|
/**
|
|
7735
|
-
* optional string
|
|
8122
|
+
* optional string triton_model_name = 2;
|
|
7736
8123
|
* @return {string}
|
|
7737
8124
|
*/
|
|
7738
|
-
proto.ondewo.s2t.
|
|
8125
|
+
proto.ondewo.s2t.Wav2VecTriton.prototype.getTritonModelName = function() {
|
|
7739
8126
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7740
8127
|
};
|
|
7741
8128
|
|
|
7742
8129
|
|
|
7743
|
-
/**
|
|
7744
|
-
* @param {string} value
|
|
7745
|
-
* @return {!proto.ondewo.s2t.
|
|
7746
|
-
*/
|
|
7747
|
-
proto.ondewo.s2t.
|
|
7748
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7749
|
-
};
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
/**
|
|
7753
|
-
* optional PtFiles pt_files = 3;
|
|
7754
|
-
* @return {?proto.ondewo.s2t.PtFiles}
|
|
7755
|
-
*/
|
|
7756
|
-
proto.ondewo.s2t.Quartznet.prototype.getPtFiles = function() {
|
|
7757
|
-
return /** @type{?proto.ondewo.s2t.PtFiles} */ (
|
|
7758
|
-
jspb.Message.getWrapperField(this, proto.ondewo.s2t.PtFiles, 3));
|
|
7759
|
-
};
|
|
7760
|
-
|
|
7761
|
-
|
|
7762
|
-
/**
|
|
7763
|
-
* @param {?proto.ondewo.s2t.PtFiles|undefined} value
|
|
7764
|
-
* @return {!proto.ondewo.s2t.Quartznet} returns this
|
|
7765
|
-
*/
|
|
7766
|
-
proto.ondewo.s2t.Quartznet.prototype.setPtFiles = function(value) {
|
|
7767
|
-
return jspb.Message.setWrapperField(this, 3, value);
|
|
8130
|
+
/**
|
|
8131
|
+
* @param {string} value
|
|
8132
|
+
* @return {!proto.ondewo.s2t.Wav2VecTriton} returns this
|
|
8133
|
+
*/
|
|
8134
|
+
proto.ondewo.s2t.Wav2VecTriton.prototype.setTritonModelName = function(value) {
|
|
8135
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7768
8136
|
};
|
|
7769
8137
|
|
|
7770
8138
|
|
|
7771
8139
|
/**
|
|
7772
|
-
*
|
|
7773
|
-
* @return {
|
|
8140
|
+
* optional string triton_model_version = 3;
|
|
8141
|
+
* @return {string}
|
|
7774
8142
|
*/
|
|
7775
|
-
proto.ondewo.s2t.
|
|
7776
|
-
return
|
|
8143
|
+
proto.ondewo.s2t.Wav2VecTriton.prototype.getTritonModelVersion = function() {
|
|
8144
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
7777
8145
|
};
|
|
7778
8146
|
|
|
7779
8147
|
|
|
7780
8148
|
/**
|
|
7781
|
-
*
|
|
7782
|
-
* @return {
|
|
8149
|
+
* @param {string} value
|
|
8150
|
+
* @return {!proto.ondewo.s2t.Wav2VecTriton} returns this
|
|
7783
8151
|
*/
|
|
7784
|
-
proto.ondewo.s2t.
|
|
7785
|
-
return jspb.Message.
|
|
8152
|
+
proto.ondewo.s2t.Wav2VecTriton.prototype.setTritonModelVersion = function(value) {
|
|
8153
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
7786
8154
|
};
|
|
7787
8155
|
|
|
7788
8156
|
|
|
7789
8157
|
/**
|
|
7790
|
-
* optional
|
|
7791
|
-
* @return {
|
|
8158
|
+
* optional int64 check_status_timeout = 4;
|
|
8159
|
+
* @return {number}
|
|
7792
8160
|
*/
|
|
7793
|
-
proto.ondewo.s2t.
|
|
7794
|
-
return /** @type{
|
|
7795
|
-
jspb.Message.getWrapperField(this, proto.ondewo.s2t.CkptFile, 4));
|
|
8161
|
+
proto.ondewo.s2t.Wav2VecTriton.prototype.getCheckStatusTimeout = function() {
|
|
8162
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
7796
8163
|
};
|
|
7797
8164
|
|
|
7798
8165
|
|
|
7799
8166
|
/**
|
|
7800
|
-
* @param {
|
|
7801
|
-
* @return {!proto.ondewo.s2t.
|
|
7802
|
-
*/
|
|
7803
|
-
proto.ondewo.s2t.
|
|
7804
|
-
return jspb.Message.
|
|
8167
|
+
* @param {number} value
|
|
8168
|
+
* @return {!proto.ondewo.s2t.Wav2VecTriton} returns this
|
|
8169
|
+
*/
|
|
8170
|
+
proto.ondewo.s2t.Wav2VecTriton.prototype.setCheckStatusTimeout = function(value) {
|
|
8171
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
7805
8172
|
};
|
|
7806
8173
|
|
|
7807
8174
|
|
|
7808
8175
|
/**
|
|
7809
|
-
*
|
|
7810
|
-
* @return {
|
|
8176
|
+
* optional string triton_server_host = 5;
|
|
8177
|
+
* @return {string}
|
|
7811
8178
|
*/
|
|
7812
|
-
proto.ondewo.s2t.
|
|
7813
|
-
return
|
|
8179
|
+
proto.ondewo.s2t.Wav2VecTriton.prototype.getTritonServerHost = function() {
|
|
8180
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
7814
8181
|
};
|
|
7815
8182
|
|
|
7816
8183
|
|
|
7817
8184
|
/**
|
|
7818
|
-
*
|
|
7819
|
-
* @return {
|
|
8185
|
+
* @param {string} value
|
|
8186
|
+
* @return {!proto.ondewo.s2t.Wav2VecTriton} returns this
|
|
7820
8187
|
*/
|
|
7821
|
-
proto.ondewo.s2t.
|
|
7822
|
-
return jspb.Message.
|
|
8188
|
+
proto.ondewo.s2t.Wav2VecTriton.prototype.setTritonServerHost = function(value) {
|
|
8189
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
7823
8190
|
};
|
|
7824
8191
|
|
|
7825
8192
|
|
|
7826
8193
|
/**
|
|
7827
|
-
* optional
|
|
7828
|
-
* @return {
|
|
8194
|
+
* optional int64 triton_server_port = 6;
|
|
8195
|
+
* @return {number}
|
|
7829
8196
|
*/
|
|
7830
|
-
proto.ondewo.s2t.
|
|
7831
|
-
return /** @type {
|
|
8197
|
+
proto.ondewo.s2t.Wav2VecTriton.prototype.getTritonServerPort = function() {
|
|
8198
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
7832
8199
|
};
|
|
7833
8200
|
|
|
7834
8201
|
|
|
7835
8202
|
/**
|
|
7836
|
-
* @param {
|
|
7837
|
-
* @return {!proto.ondewo.s2t.
|
|
8203
|
+
* @param {number} value
|
|
8204
|
+
* @return {!proto.ondewo.s2t.Wav2VecTriton} returns this
|
|
7838
8205
|
*/
|
|
7839
|
-
proto.ondewo.s2t.
|
|
7840
|
-
return jspb.Message.
|
|
8206
|
+
proto.ondewo.s2t.Wav2VecTriton.prototype.setTritonServerPort = function(value) {
|
|
8207
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
7841
8208
|
};
|
|
7842
8209
|
|
|
7843
8210
|
|
|
@@ -8134,196 +8501,6 @@ proto.ondewo.s2t.CkptFile.prototype.setPath = function(value) {
|
|
|
8134
8501
|
|
|
8135
8502
|
|
|
8136
8503
|
|
|
8137
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8138
|
-
/**
|
|
8139
|
-
* Creates an object representation of this proto.
|
|
8140
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8141
|
-
* Optional fields that are not set will be set to undefined.
|
|
8142
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8143
|
-
* For the list of reserved names please see:
|
|
8144
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8145
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8146
|
-
* JSPB instance for transitional soy proto support:
|
|
8147
|
-
* http://goto/soy-param-migration
|
|
8148
|
-
* @return {!Object}
|
|
8149
|
-
*/
|
|
8150
|
-
proto.ondewo.s2t.QuartznetTriton.prototype.toObject = function(opt_includeInstance) {
|
|
8151
|
-
return proto.ondewo.s2t.QuartznetTriton.toObject(opt_includeInstance, this);
|
|
8152
|
-
};
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
/**
|
|
8156
|
-
* Static version of the {@see toObject} method.
|
|
8157
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8158
|
-
* the JSPB instance for transitional soy proto support:
|
|
8159
|
-
* http://goto/soy-param-migration
|
|
8160
|
-
* @param {!proto.ondewo.s2t.QuartznetTriton} msg The msg instance to transform.
|
|
8161
|
-
* @return {!Object}
|
|
8162
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8163
|
-
*/
|
|
8164
|
-
proto.ondewo.s2t.QuartznetTriton.toObject = function(includeInstance, msg) {
|
|
8165
|
-
var f, obj = {
|
|
8166
|
-
configPath: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8167
|
-
tritonUrl: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8168
|
-
tritonModel: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
8169
|
-
};
|
|
8170
|
-
|
|
8171
|
-
if (includeInstance) {
|
|
8172
|
-
obj.$jspbMessageInstance = msg;
|
|
8173
|
-
}
|
|
8174
|
-
return obj;
|
|
8175
|
-
};
|
|
8176
|
-
}
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
/**
|
|
8180
|
-
* Deserializes binary data (in protobuf wire format).
|
|
8181
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8182
|
-
* @return {!proto.ondewo.s2t.QuartznetTriton}
|
|
8183
|
-
*/
|
|
8184
|
-
proto.ondewo.s2t.QuartznetTriton.deserializeBinary = function(bytes) {
|
|
8185
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
8186
|
-
var msg = new proto.ondewo.s2t.QuartznetTriton;
|
|
8187
|
-
return proto.ondewo.s2t.QuartznetTriton.deserializeBinaryFromReader(msg, reader);
|
|
8188
|
-
};
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
/**
|
|
8192
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
8193
|
-
* given reader into the given message object.
|
|
8194
|
-
* @param {!proto.ondewo.s2t.QuartznetTriton} msg The message object to deserialize into.
|
|
8195
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8196
|
-
* @return {!proto.ondewo.s2t.QuartznetTriton}
|
|
8197
|
-
*/
|
|
8198
|
-
proto.ondewo.s2t.QuartznetTriton.deserializeBinaryFromReader = function(msg, reader) {
|
|
8199
|
-
while (reader.nextField()) {
|
|
8200
|
-
if (reader.isEndGroup()) {
|
|
8201
|
-
break;
|
|
8202
|
-
}
|
|
8203
|
-
var field = reader.getFieldNumber();
|
|
8204
|
-
switch (field) {
|
|
8205
|
-
case 1:
|
|
8206
|
-
var value = /** @type {string} */ (reader.readString());
|
|
8207
|
-
msg.setConfigPath(value);
|
|
8208
|
-
break;
|
|
8209
|
-
case 2:
|
|
8210
|
-
var value = /** @type {string} */ (reader.readString());
|
|
8211
|
-
msg.setTritonUrl(value);
|
|
8212
|
-
break;
|
|
8213
|
-
case 3:
|
|
8214
|
-
var value = /** @type {string} */ (reader.readString());
|
|
8215
|
-
msg.setTritonModel(value);
|
|
8216
|
-
break;
|
|
8217
|
-
default:
|
|
8218
|
-
reader.skipField();
|
|
8219
|
-
break;
|
|
8220
|
-
}
|
|
8221
|
-
}
|
|
8222
|
-
return msg;
|
|
8223
|
-
};
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
/**
|
|
8227
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
8228
|
-
* @return {!Uint8Array}
|
|
8229
|
-
*/
|
|
8230
|
-
proto.ondewo.s2t.QuartznetTriton.prototype.serializeBinary = function() {
|
|
8231
|
-
var writer = new jspb.BinaryWriter();
|
|
8232
|
-
proto.ondewo.s2t.QuartznetTriton.serializeBinaryToWriter(this, writer);
|
|
8233
|
-
return writer.getResultBuffer();
|
|
8234
|
-
};
|
|
8235
|
-
|
|
8236
|
-
|
|
8237
|
-
/**
|
|
8238
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
8239
|
-
* format), writing to the given BinaryWriter.
|
|
8240
|
-
* @param {!proto.ondewo.s2t.QuartznetTriton} message
|
|
8241
|
-
* @param {!jspb.BinaryWriter} writer
|
|
8242
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8243
|
-
*/
|
|
8244
|
-
proto.ondewo.s2t.QuartznetTriton.serializeBinaryToWriter = function(message, writer) {
|
|
8245
|
-
var f = undefined;
|
|
8246
|
-
f = message.getConfigPath();
|
|
8247
|
-
if (f.length > 0) {
|
|
8248
|
-
writer.writeString(
|
|
8249
|
-
1,
|
|
8250
|
-
f
|
|
8251
|
-
);
|
|
8252
|
-
}
|
|
8253
|
-
f = message.getTritonUrl();
|
|
8254
|
-
if (f.length > 0) {
|
|
8255
|
-
writer.writeString(
|
|
8256
|
-
2,
|
|
8257
|
-
f
|
|
8258
|
-
);
|
|
8259
|
-
}
|
|
8260
|
-
f = message.getTritonModel();
|
|
8261
|
-
if (f.length > 0) {
|
|
8262
|
-
writer.writeString(
|
|
8263
|
-
3,
|
|
8264
|
-
f
|
|
8265
|
-
);
|
|
8266
|
-
}
|
|
8267
|
-
};
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
/**
|
|
8271
|
-
* optional string config_path = 1;
|
|
8272
|
-
* @return {string}
|
|
8273
|
-
*/
|
|
8274
|
-
proto.ondewo.s2t.QuartznetTriton.prototype.getConfigPath = function() {
|
|
8275
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8276
|
-
};
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
/**
|
|
8280
|
-
* @param {string} value
|
|
8281
|
-
* @return {!proto.ondewo.s2t.QuartznetTriton} returns this
|
|
8282
|
-
*/
|
|
8283
|
-
proto.ondewo.s2t.QuartznetTriton.prototype.setConfigPath = function(value) {
|
|
8284
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8285
|
-
};
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
/**
|
|
8289
|
-
* optional string triton_url = 2;
|
|
8290
|
-
* @return {string}
|
|
8291
|
-
*/
|
|
8292
|
-
proto.ondewo.s2t.QuartznetTriton.prototype.getTritonUrl = function() {
|
|
8293
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
8294
|
-
};
|
|
8295
|
-
|
|
8296
|
-
|
|
8297
|
-
/**
|
|
8298
|
-
* @param {string} value
|
|
8299
|
-
* @return {!proto.ondewo.s2t.QuartznetTriton} returns this
|
|
8300
|
-
*/
|
|
8301
|
-
proto.ondewo.s2t.QuartznetTriton.prototype.setTritonUrl = function(value) {
|
|
8302
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
8303
|
-
};
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
/**
|
|
8307
|
-
* optional string triton_model = 3;
|
|
8308
|
-
* @return {string}
|
|
8309
|
-
*/
|
|
8310
|
-
proto.ondewo.s2t.QuartznetTriton.prototype.getTritonModel = function() {
|
|
8311
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
8312
|
-
};
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
/**
|
|
8316
|
-
* @param {string} value
|
|
8317
|
-
* @return {!proto.ondewo.s2t.QuartznetTriton} returns this
|
|
8318
|
-
*/
|
|
8319
|
-
proto.ondewo.s2t.QuartznetTriton.prototype.setTritonModel = function(value) {
|
|
8320
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
8321
|
-
};
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
8504
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8328
8505
|
/**
|
|
8329
8506
|
* Creates an object representation of this proto.
|
|
@@ -9156,8 +9333,7 @@ proto.ondewo.s2t.VoiceActivityDetection.toObject = function(includeInstance, msg
|
|
|
9156
9333
|
var f, obj = {
|
|
9157
9334
|
active: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
9158
9335
|
samplingRate: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
9159
|
-
pyannote: (f = msg.getPyannote()) && proto.ondewo.s2t.Pyannote.toObject(includeInstance, f)
|
|
9160
|
-
matchbox: (f = msg.getMatchbox()) && proto.ondewo.s2t.Matchbox.toObject(includeInstance, f)
|
|
9336
|
+
pyannote: (f = msg.getPyannote()) && proto.ondewo.s2t.Pyannote.toObject(includeInstance, f)
|
|
9161
9337
|
};
|
|
9162
9338
|
|
|
9163
9339
|
if (includeInstance) {
|
|
@@ -9207,11 +9383,6 @@ proto.ondewo.s2t.VoiceActivityDetection.deserializeBinaryFromReader = function(m
|
|
|
9207
9383
|
reader.readMessage(value,proto.ondewo.s2t.Pyannote.deserializeBinaryFromReader);
|
|
9208
9384
|
msg.setPyannote(value);
|
|
9209
9385
|
break;
|
|
9210
|
-
case 4:
|
|
9211
|
-
var value = new proto.ondewo.s2t.Matchbox;
|
|
9212
|
-
reader.readMessage(value,proto.ondewo.s2t.Matchbox.deserializeBinaryFromReader);
|
|
9213
|
-
msg.setMatchbox(value);
|
|
9214
|
-
break;
|
|
9215
9386
|
default:
|
|
9216
9387
|
reader.skipField();
|
|
9217
9388
|
break;
|
|
@@ -9263,14 +9434,6 @@ proto.ondewo.s2t.VoiceActivityDetection.serializeBinaryToWriter = function(messa
|
|
|
9263
9434
|
proto.ondewo.s2t.Pyannote.serializeBinaryToWriter
|
|
9264
9435
|
);
|
|
9265
9436
|
}
|
|
9266
|
-
f = message.getMatchbox();
|
|
9267
|
-
if (f != null) {
|
|
9268
|
-
writer.writeMessage(
|
|
9269
|
-
4,
|
|
9270
|
-
f,
|
|
9271
|
-
proto.ondewo.s2t.Matchbox.serializeBinaryToWriter
|
|
9272
|
-
);
|
|
9273
|
-
}
|
|
9274
9437
|
};
|
|
9275
9438
|
|
|
9276
9439
|
|
|
@@ -9337,81 +9500,19 @@ proto.ondewo.s2t.VoiceActivityDetection.prototype.clearPyannote = function() {
|
|
|
9337
9500
|
return this.setPyannote(undefined);
|
|
9338
9501
|
};
|
|
9339
9502
|
|
|
9340
|
-
|
|
9341
|
-
/**
|
|
9342
|
-
* Returns whether this field is set.
|
|
9343
|
-
* @return {boolean}
|
|
9344
|
-
*/
|
|
9345
|
-
proto.ondewo.s2t.VoiceActivityDetection.prototype.hasPyannote = function() {
|
|
9346
|
-
return jspb.Message.getField(this, 3) != null;
|
|
9347
|
-
};
|
|
9348
|
-
|
|
9349
|
-
|
|
9350
|
-
/**
|
|
9351
|
-
* optional Matchbox matchbox = 4;
|
|
9352
|
-
* @return {?proto.ondewo.s2t.Matchbox}
|
|
9353
|
-
*/
|
|
9354
|
-
proto.ondewo.s2t.VoiceActivityDetection.prototype.getMatchbox = function() {
|
|
9355
|
-
return /** @type{?proto.ondewo.s2t.Matchbox} */ (
|
|
9356
|
-
jspb.Message.getWrapperField(this, proto.ondewo.s2t.Matchbox, 4));
|
|
9357
|
-
};
|
|
9358
|
-
|
|
9359
|
-
|
|
9360
|
-
/**
|
|
9361
|
-
* @param {?proto.ondewo.s2t.Matchbox|undefined} value
|
|
9362
|
-
* @return {!proto.ondewo.s2t.VoiceActivityDetection} returns this
|
|
9363
|
-
*/
|
|
9364
|
-
proto.ondewo.s2t.VoiceActivityDetection.prototype.setMatchbox = function(value) {
|
|
9365
|
-
return jspb.Message.setWrapperField(this, 4, value);
|
|
9366
|
-
};
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
/**
|
|
9370
|
-
* Clears the message field making it undefined.
|
|
9371
|
-
* @return {!proto.ondewo.s2t.VoiceActivityDetection} returns this
|
|
9372
|
-
*/
|
|
9373
|
-
proto.ondewo.s2t.VoiceActivityDetection.prototype.clearMatchbox = function() {
|
|
9374
|
-
return this.setMatchbox(undefined);
|
|
9375
|
-
};
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
/**
|
|
9379
|
-
* Returns whether this field is set.
|
|
9380
|
-
* @return {boolean}
|
|
9381
|
-
*/
|
|
9382
|
-
proto.ondewo.s2t.VoiceActivityDetection.prototype.hasMatchbox = function() {
|
|
9383
|
-
return jspb.Message.getField(this, 4) != null;
|
|
9384
|
-
};
|
|
9385
|
-
|
|
9386
|
-
|
|
9387
|
-
|
|
9388
|
-
/**
|
|
9389
|
-
* Oneof group definitions for this message. Each group defines the field
|
|
9390
|
-
* numbers belonging to that group. When of these fields' value is set, all
|
|
9391
|
-
* other fields in the group are cleared. During deserialization, if multiple
|
|
9392
|
-
* fields are encountered for a group, only the last value seen will be kept.
|
|
9393
|
-
* @private {!Array<!Array<number>>}
|
|
9394
|
-
* @const
|
|
9395
|
-
*/
|
|
9396
|
-
proto.ondewo.s2t.Pyannote.oneofGroups_ = [[5]];
|
|
9397
|
-
|
|
9398
|
-
/**
|
|
9399
|
-
* @enum {number}
|
|
9400
|
-
*/
|
|
9401
|
-
proto.ondewo.s2t.Pyannote.OneofLogScaleCase = {
|
|
9402
|
-
ONEOF_LOG_SCALE_NOT_SET: 0,
|
|
9403
|
-
LOG_SCALE: 5
|
|
9404
|
-
};
|
|
9405
|
-
|
|
9503
|
+
|
|
9406
9504
|
/**
|
|
9407
|
-
*
|
|
9505
|
+
* Returns whether this field is set.
|
|
9506
|
+
* @return {boolean}
|
|
9408
9507
|
*/
|
|
9409
|
-
proto.ondewo.s2t.
|
|
9410
|
-
return
|
|
9508
|
+
proto.ondewo.s2t.VoiceActivityDetection.prototype.hasPyannote = function() {
|
|
9509
|
+
return jspb.Message.getField(this, 3) != null;
|
|
9411
9510
|
};
|
|
9412
9511
|
|
|
9413
9512
|
|
|
9414
9513
|
|
|
9514
|
+
|
|
9515
|
+
|
|
9415
9516
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9416
9517
|
/**
|
|
9417
9518
|
* Creates an object representation of this proto.
|
|
@@ -9441,13 +9542,12 @@ proto.ondewo.s2t.Pyannote.prototype.toObject = function(opt_includeInstance) {
|
|
|
9441
9542
|
*/
|
|
9442
9543
|
proto.ondewo.s2t.Pyannote.toObject = function(includeInstance, msg) {
|
|
9443
9544
|
var f, obj = {
|
|
9444
|
-
|
|
9545
|
+
modelName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
9445
9546
|
minAudioSize: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
9446
|
-
|
|
9447
|
-
|
|
9448
|
-
|
|
9449
|
-
|
|
9450
|
-
minDurationOn: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0)
|
|
9547
|
+
minDurationOff: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
|
9548
|
+
minDurationOn: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
|
9549
|
+
tritonServerHost: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
9550
|
+
tritonServerPort: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
9451
9551
|
};
|
|
9452
9552
|
|
|
9453
9553
|
if (includeInstance) {
|
|
@@ -9486,7 +9586,7 @@ proto.ondewo.s2t.Pyannote.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
9486
9586
|
switch (field) {
|
|
9487
9587
|
case 1:
|
|
9488
9588
|
var value = /** @type {string} */ (reader.readString());
|
|
9489
|
-
msg.
|
|
9589
|
+
msg.setModelName(value);
|
|
9490
9590
|
break;
|
|
9491
9591
|
case 2:
|
|
9492
9592
|
var value = /** @type {number} */ (reader.readInt64());
|
|
@@ -9494,23 +9594,19 @@ proto.ondewo.s2t.Pyannote.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
9494
9594
|
break;
|
|
9495
9595
|
case 3:
|
|
9496
9596
|
var value = /** @type {number} */ (reader.readFloat());
|
|
9497
|
-
msg.
|
|
9597
|
+
msg.setMinDurationOff(value);
|
|
9498
9598
|
break;
|
|
9499
9599
|
case 4:
|
|
9500
9600
|
var value = /** @type {number} */ (reader.readFloat());
|
|
9501
|
-
msg.
|
|
9601
|
+
msg.setMinDurationOn(value);
|
|
9502
9602
|
break;
|
|
9503
9603
|
case 5:
|
|
9504
|
-
var value = /** @type {
|
|
9505
|
-
msg.
|
|
9604
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9605
|
+
msg.setTritonServerHost(value);
|
|
9506
9606
|
break;
|
|
9507
9607
|
case 6:
|
|
9508
|
-
var value = /** @type {number} */ (reader.
|
|
9509
|
-
msg.
|
|
9510
|
-
break;
|
|
9511
|
-
case 7:
|
|
9512
|
-
var value = /** @type {number} */ (reader.readFloat());
|
|
9513
|
-
msg.setMinDurationOn(value);
|
|
9608
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
9609
|
+
msg.setTritonServerPort(value);
|
|
9514
9610
|
break;
|
|
9515
9611
|
default:
|
|
9516
9612
|
reader.skipField();
|
|
@@ -9541,7 +9637,7 @@ proto.ondewo.s2t.Pyannote.prototype.serializeBinary = function() {
|
|
|
9541
9637
|
*/
|
|
9542
9638
|
proto.ondewo.s2t.Pyannote.serializeBinaryToWriter = function(message, writer) {
|
|
9543
9639
|
var f = undefined;
|
|
9544
|
-
f = message.
|
|
9640
|
+
f = message.getModelName();
|
|
9545
9641
|
if (f.length > 0) {
|
|
9546
9642
|
writer.writeString(
|
|
9547
9643
|
1,
|
|
@@ -9555,49 +9651,42 @@ proto.ondewo.s2t.Pyannote.serializeBinaryToWriter = function(message, writer) {
|
|
|
9555
9651
|
f
|
|
9556
9652
|
);
|
|
9557
9653
|
}
|
|
9558
|
-
f = message.
|
|
9654
|
+
f = message.getMinDurationOff();
|
|
9559
9655
|
if (f !== 0.0) {
|
|
9560
9656
|
writer.writeFloat(
|
|
9561
9657
|
3,
|
|
9562
9658
|
f
|
|
9563
9659
|
);
|
|
9564
9660
|
}
|
|
9565
|
-
f = message.
|
|
9661
|
+
f = message.getMinDurationOn();
|
|
9566
9662
|
if (f !== 0.0) {
|
|
9567
9663
|
writer.writeFloat(
|
|
9568
9664
|
4,
|
|
9569
9665
|
f
|
|
9570
9666
|
);
|
|
9571
9667
|
}
|
|
9572
|
-
f =
|
|
9573
|
-
if (f
|
|
9574
|
-
writer.
|
|
9668
|
+
f = message.getTritonServerHost();
|
|
9669
|
+
if (f.length > 0) {
|
|
9670
|
+
writer.writeString(
|
|
9575
9671
|
5,
|
|
9576
9672
|
f
|
|
9577
9673
|
);
|
|
9578
9674
|
}
|
|
9579
|
-
f = message.
|
|
9580
|
-
if (f !== 0
|
|
9581
|
-
writer.
|
|
9675
|
+
f = message.getTritonServerPort();
|
|
9676
|
+
if (f !== 0) {
|
|
9677
|
+
writer.writeInt64(
|
|
9582
9678
|
6,
|
|
9583
9679
|
f
|
|
9584
9680
|
);
|
|
9585
9681
|
}
|
|
9586
|
-
f = message.getMinDurationOn();
|
|
9587
|
-
if (f !== 0.0) {
|
|
9588
|
-
writer.writeFloat(
|
|
9589
|
-
7,
|
|
9590
|
-
f
|
|
9591
|
-
);
|
|
9592
|
-
}
|
|
9593
9682
|
};
|
|
9594
9683
|
|
|
9595
9684
|
|
|
9596
9685
|
/**
|
|
9597
|
-
* optional string
|
|
9686
|
+
* optional string model_name = 1;
|
|
9598
9687
|
* @return {string}
|
|
9599
9688
|
*/
|
|
9600
|
-
proto.ondewo.s2t.Pyannote.prototype.
|
|
9689
|
+
proto.ondewo.s2t.Pyannote.prototype.getModelName = function() {
|
|
9601
9690
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
9602
9691
|
};
|
|
9603
9692
|
|
|
@@ -9606,7 +9695,7 @@ proto.ondewo.s2t.Pyannote.prototype.getModelPath = function() {
|
|
|
9606
9695
|
* @param {string} value
|
|
9607
9696
|
* @return {!proto.ondewo.s2t.Pyannote} returns this
|
|
9608
9697
|
*/
|
|
9609
|
-
proto.ondewo.s2t.Pyannote.prototype.
|
|
9698
|
+
proto.ondewo.s2t.Pyannote.prototype.setModelName = function(value) {
|
|
9610
9699
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
9611
9700
|
};
|
|
9612
9701
|
|
|
@@ -9630,10 +9719,10 @@ proto.ondewo.s2t.Pyannote.prototype.setMinAudioSize = function(value) {
|
|
|
9630
9719
|
|
|
9631
9720
|
|
|
9632
9721
|
/**
|
|
9633
|
-
* optional float
|
|
9722
|
+
* optional float min_duration_off = 3;
|
|
9634
9723
|
* @return {number}
|
|
9635
9724
|
*/
|
|
9636
|
-
proto.ondewo.s2t.Pyannote.prototype.
|
|
9725
|
+
proto.ondewo.s2t.Pyannote.prototype.getMinDurationOff = function() {
|
|
9637
9726
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
9638
9727
|
};
|
|
9639
9728
|
|
|
@@ -9642,16 +9731,16 @@ proto.ondewo.s2t.Pyannote.prototype.getOffset = function() {
|
|
|
9642
9731
|
* @param {number} value
|
|
9643
9732
|
* @return {!proto.ondewo.s2t.Pyannote} returns this
|
|
9644
9733
|
*/
|
|
9645
|
-
proto.ondewo.s2t.Pyannote.prototype.
|
|
9734
|
+
proto.ondewo.s2t.Pyannote.prototype.setMinDurationOff = function(value) {
|
|
9646
9735
|
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
9647
9736
|
};
|
|
9648
9737
|
|
|
9649
9738
|
|
|
9650
9739
|
/**
|
|
9651
|
-
* optional float
|
|
9740
|
+
* optional float min_duration_on = 4;
|
|
9652
9741
|
* @return {number}
|
|
9653
9742
|
*/
|
|
9654
|
-
proto.ondewo.s2t.Pyannote.prototype.
|
|
9743
|
+
proto.ondewo.s2t.Pyannote.prototype.getMinDurationOn = function() {
|
|
9655
9744
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
|
9656
9745
|
};
|
|
9657
9746
|
|
|
@@ -9660,71 +9749,35 @@ proto.ondewo.s2t.Pyannote.prototype.getOnset = function() {
|
|
|
9660
9749
|
* @param {number} value
|
|
9661
9750
|
* @return {!proto.ondewo.s2t.Pyannote} returns this
|
|
9662
9751
|
*/
|
|
9663
|
-
proto.ondewo.s2t.Pyannote.prototype.
|
|
9752
|
+
proto.ondewo.s2t.Pyannote.prototype.setMinDurationOn = function(value) {
|
|
9664
9753
|
return jspb.Message.setProto3FloatField(this, 4, value);
|
|
9665
9754
|
};
|
|
9666
9755
|
|
|
9667
9756
|
|
|
9668
9757
|
/**
|
|
9669
|
-
* optional
|
|
9670
|
-
* @return {
|
|
9671
|
-
*/
|
|
9672
|
-
proto.ondewo.s2t.Pyannote.prototype.getLogScale = function() {
|
|
9673
|
-
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
9674
|
-
};
|
|
9675
|
-
|
|
9676
|
-
|
|
9677
|
-
/**
|
|
9678
|
-
* @param {boolean} value
|
|
9679
|
-
* @return {!proto.ondewo.s2t.Pyannote} returns this
|
|
9680
|
-
*/
|
|
9681
|
-
proto.ondewo.s2t.Pyannote.prototype.setLogScale = function(value) {
|
|
9682
|
-
return jspb.Message.setOneofField(this, 5, proto.ondewo.s2t.Pyannote.oneofGroups_[0], value);
|
|
9683
|
-
};
|
|
9684
|
-
|
|
9685
|
-
|
|
9686
|
-
/**
|
|
9687
|
-
* Clears the field making it undefined.
|
|
9688
|
-
* @return {!proto.ondewo.s2t.Pyannote} returns this
|
|
9689
|
-
*/
|
|
9690
|
-
proto.ondewo.s2t.Pyannote.prototype.clearLogScale = function() {
|
|
9691
|
-
return jspb.Message.setOneofField(this, 5, proto.ondewo.s2t.Pyannote.oneofGroups_[0], undefined);
|
|
9692
|
-
};
|
|
9693
|
-
|
|
9694
|
-
|
|
9695
|
-
/**
|
|
9696
|
-
* Returns whether this field is set.
|
|
9697
|
-
* @return {boolean}
|
|
9698
|
-
*/
|
|
9699
|
-
proto.ondewo.s2t.Pyannote.prototype.hasLogScale = function() {
|
|
9700
|
-
return jspb.Message.getField(this, 5) != null;
|
|
9701
|
-
};
|
|
9702
|
-
|
|
9703
|
-
|
|
9704
|
-
/**
|
|
9705
|
-
* optional float min_duration_off = 6;
|
|
9706
|
-
* @return {number}
|
|
9758
|
+
* optional string triton_server_host = 5;
|
|
9759
|
+
* @return {string}
|
|
9707
9760
|
*/
|
|
9708
|
-
proto.ondewo.s2t.Pyannote.prototype.
|
|
9709
|
-
return /** @type {
|
|
9761
|
+
proto.ondewo.s2t.Pyannote.prototype.getTritonServerHost = function() {
|
|
9762
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
9710
9763
|
};
|
|
9711
9764
|
|
|
9712
9765
|
|
|
9713
9766
|
/**
|
|
9714
|
-
* @param {
|
|
9767
|
+
* @param {string} value
|
|
9715
9768
|
* @return {!proto.ondewo.s2t.Pyannote} returns this
|
|
9716
9769
|
*/
|
|
9717
|
-
proto.ondewo.s2t.Pyannote.prototype.
|
|
9718
|
-
return jspb.Message.
|
|
9770
|
+
proto.ondewo.s2t.Pyannote.prototype.setTritonServerHost = function(value) {
|
|
9771
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
9719
9772
|
};
|
|
9720
9773
|
|
|
9721
9774
|
|
|
9722
9775
|
/**
|
|
9723
|
-
* optional
|
|
9776
|
+
* optional int64 triton_server_port = 6;
|
|
9724
9777
|
* @return {number}
|
|
9725
9778
|
*/
|
|
9726
|
-
proto.ondewo.s2t.Pyannote.prototype.
|
|
9727
|
-
return /** @type {number} */ (jspb.Message.
|
|
9779
|
+
proto.ondewo.s2t.Pyannote.prototype.getTritonServerPort = function() {
|
|
9780
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
9728
9781
|
};
|
|
9729
9782
|
|
|
9730
9783
|
|
|
@@ -9732,198 +9785,8 @@ proto.ondewo.s2t.Pyannote.prototype.getMinDurationOn = function() {
|
|
|
9732
9785
|
* @param {number} value
|
|
9733
9786
|
* @return {!proto.ondewo.s2t.Pyannote} returns this
|
|
9734
9787
|
*/
|
|
9735
|
-
proto.ondewo.s2t.Pyannote.prototype.
|
|
9736
|
-
return jspb.Message.
|
|
9737
|
-
};
|
|
9738
|
-
|
|
9739
|
-
|
|
9740
|
-
|
|
9741
|
-
|
|
9742
|
-
|
|
9743
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9744
|
-
/**
|
|
9745
|
-
* Creates an object representation of this proto.
|
|
9746
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
9747
|
-
* Optional fields that are not set will be set to undefined.
|
|
9748
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
9749
|
-
* For the list of reserved names please see:
|
|
9750
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
9751
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
9752
|
-
* JSPB instance for transitional soy proto support:
|
|
9753
|
-
* http://goto/soy-param-migration
|
|
9754
|
-
* @return {!Object}
|
|
9755
|
-
*/
|
|
9756
|
-
proto.ondewo.s2t.Matchbox.prototype.toObject = function(opt_includeInstance) {
|
|
9757
|
-
return proto.ondewo.s2t.Matchbox.toObject(opt_includeInstance, this);
|
|
9758
|
-
};
|
|
9759
|
-
|
|
9760
|
-
|
|
9761
|
-
/**
|
|
9762
|
-
* Static version of the {@see toObject} method.
|
|
9763
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
9764
|
-
* the JSPB instance for transitional soy proto support:
|
|
9765
|
-
* http://goto/soy-param-migration
|
|
9766
|
-
* @param {!proto.ondewo.s2t.Matchbox} msg The msg instance to transform.
|
|
9767
|
-
* @return {!Object}
|
|
9768
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
9769
|
-
*/
|
|
9770
|
-
proto.ondewo.s2t.Matchbox.toObject = function(includeInstance, msg) {
|
|
9771
|
-
var f, obj = {
|
|
9772
|
-
modelConfig: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
9773
|
-
encoderPath: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
9774
|
-
decoderPath: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
9775
|
-
};
|
|
9776
|
-
|
|
9777
|
-
if (includeInstance) {
|
|
9778
|
-
obj.$jspbMessageInstance = msg;
|
|
9779
|
-
}
|
|
9780
|
-
return obj;
|
|
9781
|
-
};
|
|
9782
|
-
}
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
/**
|
|
9786
|
-
* Deserializes binary data (in protobuf wire format).
|
|
9787
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
9788
|
-
* @return {!proto.ondewo.s2t.Matchbox}
|
|
9789
|
-
*/
|
|
9790
|
-
proto.ondewo.s2t.Matchbox.deserializeBinary = function(bytes) {
|
|
9791
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
9792
|
-
var msg = new proto.ondewo.s2t.Matchbox;
|
|
9793
|
-
return proto.ondewo.s2t.Matchbox.deserializeBinaryFromReader(msg, reader);
|
|
9794
|
-
};
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
/**
|
|
9798
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
9799
|
-
* given reader into the given message object.
|
|
9800
|
-
* @param {!proto.ondewo.s2t.Matchbox} msg The message object to deserialize into.
|
|
9801
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
9802
|
-
* @return {!proto.ondewo.s2t.Matchbox}
|
|
9803
|
-
*/
|
|
9804
|
-
proto.ondewo.s2t.Matchbox.deserializeBinaryFromReader = function(msg, reader) {
|
|
9805
|
-
while (reader.nextField()) {
|
|
9806
|
-
if (reader.isEndGroup()) {
|
|
9807
|
-
break;
|
|
9808
|
-
}
|
|
9809
|
-
var field = reader.getFieldNumber();
|
|
9810
|
-
switch (field) {
|
|
9811
|
-
case 1:
|
|
9812
|
-
var value = /** @type {string} */ (reader.readString());
|
|
9813
|
-
msg.setModelConfig(value);
|
|
9814
|
-
break;
|
|
9815
|
-
case 2:
|
|
9816
|
-
var value = /** @type {string} */ (reader.readString());
|
|
9817
|
-
msg.setEncoderPath(value);
|
|
9818
|
-
break;
|
|
9819
|
-
case 3:
|
|
9820
|
-
var value = /** @type {string} */ (reader.readString());
|
|
9821
|
-
msg.setDecoderPath(value);
|
|
9822
|
-
break;
|
|
9823
|
-
default:
|
|
9824
|
-
reader.skipField();
|
|
9825
|
-
break;
|
|
9826
|
-
}
|
|
9827
|
-
}
|
|
9828
|
-
return msg;
|
|
9829
|
-
};
|
|
9830
|
-
|
|
9831
|
-
|
|
9832
|
-
/**
|
|
9833
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
9834
|
-
* @return {!Uint8Array}
|
|
9835
|
-
*/
|
|
9836
|
-
proto.ondewo.s2t.Matchbox.prototype.serializeBinary = function() {
|
|
9837
|
-
var writer = new jspb.BinaryWriter();
|
|
9838
|
-
proto.ondewo.s2t.Matchbox.serializeBinaryToWriter(this, writer);
|
|
9839
|
-
return writer.getResultBuffer();
|
|
9840
|
-
};
|
|
9841
|
-
|
|
9842
|
-
|
|
9843
|
-
/**
|
|
9844
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
9845
|
-
* format), writing to the given BinaryWriter.
|
|
9846
|
-
* @param {!proto.ondewo.s2t.Matchbox} message
|
|
9847
|
-
* @param {!jspb.BinaryWriter} writer
|
|
9848
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
9849
|
-
*/
|
|
9850
|
-
proto.ondewo.s2t.Matchbox.serializeBinaryToWriter = function(message, writer) {
|
|
9851
|
-
var f = undefined;
|
|
9852
|
-
f = message.getModelConfig();
|
|
9853
|
-
if (f.length > 0) {
|
|
9854
|
-
writer.writeString(
|
|
9855
|
-
1,
|
|
9856
|
-
f
|
|
9857
|
-
);
|
|
9858
|
-
}
|
|
9859
|
-
f = message.getEncoderPath();
|
|
9860
|
-
if (f.length > 0) {
|
|
9861
|
-
writer.writeString(
|
|
9862
|
-
2,
|
|
9863
|
-
f
|
|
9864
|
-
);
|
|
9865
|
-
}
|
|
9866
|
-
f = message.getDecoderPath();
|
|
9867
|
-
if (f.length > 0) {
|
|
9868
|
-
writer.writeString(
|
|
9869
|
-
3,
|
|
9870
|
-
f
|
|
9871
|
-
);
|
|
9872
|
-
}
|
|
9873
|
-
};
|
|
9874
|
-
|
|
9875
|
-
|
|
9876
|
-
/**
|
|
9877
|
-
* optional string model_config = 1;
|
|
9878
|
-
* @return {string}
|
|
9879
|
-
*/
|
|
9880
|
-
proto.ondewo.s2t.Matchbox.prototype.getModelConfig = function() {
|
|
9881
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
9882
|
-
};
|
|
9883
|
-
|
|
9884
|
-
|
|
9885
|
-
/**
|
|
9886
|
-
* @param {string} value
|
|
9887
|
-
* @return {!proto.ondewo.s2t.Matchbox} returns this
|
|
9888
|
-
*/
|
|
9889
|
-
proto.ondewo.s2t.Matchbox.prototype.setModelConfig = function(value) {
|
|
9890
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
9891
|
-
};
|
|
9892
|
-
|
|
9893
|
-
|
|
9894
|
-
/**
|
|
9895
|
-
* optional string encoder_path = 2;
|
|
9896
|
-
* @return {string}
|
|
9897
|
-
*/
|
|
9898
|
-
proto.ondewo.s2t.Matchbox.prototype.getEncoderPath = function() {
|
|
9899
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
9900
|
-
};
|
|
9901
|
-
|
|
9902
|
-
|
|
9903
|
-
/**
|
|
9904
|
-
* @param {string} value
|
|
9905
|
-
* @return {!proto.ondewo.s2t.Matchbox} returns this
|
|
9906
|
-
*/
|
|
9907
|
-
proto.ondewo.s2t.Matchbox.prototype.setEncoderPath = function(value) {
|
|
9908
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
9909
|
-
};
|
|
9910
|
-
|
|
9911
|
-
|
|
9912
|
-
/**
|
|
9913
|
-
* optional string decoder_path = 3;
|
|
9914
|
-
* @return {string}
|
|
9915
|
-
*/
|
|
9916
|
-
proto.ondewo.s2t.Matchbox.prototype.getDecoderPath = function() {
|
|
9917
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
9918
|
-
};
|
|
9919
|
-
|
|
9920
|
-
|
|
9921
|
-
/**
|
|
9922
|
-
* @param {string} value
|
|
9923
|
-
* @return {!proto.ondewo.s2t.Matchbox} returns this
|
|
9924
|
-
*/
|
|
9925
|
-
proto.ondewo.s2t.Matchbox.prototype.setDecoderPath = function(value) {
|
|
9926
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
9788
|
+
proto.ondewo.s2t.Pyannote.prototype.setTritonServerPort = function(value) {
|
|
9789
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
9927
9790
|
};
|
|
9928
9791
|
|
|
9929
9792
|
|
|
@@ -11922,15 +11785,6 @@ proto.ondewo.s2t.TrainUserLanguageModelRequest.prototype.setOrder = function(val
|
|
|
11922
11785
|
};
|
|
11923
11786
|
|
|
11924
11787
|
|
|
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
11788
|
/**
|
|
11935
11789
|
* @enum {number}
|
|
11936
11790
|
*/
|
|
@@ -11941,4 +11795,13 @@ proto.ondewo.s2t.Decoding = {
|
|
|
11941
11795
|
BEAM_SEARCH: 3
|
|
11942
11796
|
};
|
|
11943
11797
|
|
|
11798
|
+
/**
|
|
11799
|
+
* @enum {number}
|
|
11800
|
+
*/
|
|
11801
|
+
proto.ondewo.s2t.InferenceBackend = {
|
|
11802
|
+
INFERENCE_BACKEND_UNKNOWN: 0,
|
|
11803
|
+
INFERENCE_BACKEND_PYTORCH: 1,
|
|
11804
|
+
INFERENCE_BACKEND_FLAX: 2
|
|
11805
|
+
};
|
|
11806
|
+
|
|
11944
11807
|
goog.object.extend(exports, proto.ondewo.s2t);
|