@ondewo/s2t-client-typescript 4.0.0 → 5.2.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/README.md +54 -13
- package/api/ondewo/s2t/speech-to-text_pb.d.ts +97 -28
- package/api/ondewo/s2t/speech-to-text_pb.js +639 -82
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/public-api.js +2 -2
|
@@ -17,11 +17,11 @@ var global = (function() { return this || window || global || self || Function('
|
|
|
17
17
|
|
|
18
18
|
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
19
19
|
goog.object.extend(proto, google_protobuf_empty_pb);
|
|
20
|
+
goog.exportSymbol('proto.ondewo.s2t.AcousticModels', null, global);
|
|
20
21
|
goog.exportSymbol('proto.ondewo.s2t.AddDataToUserLanguageModelRequest', null, global);
|
|
21
|
-
goog.exportSymbol('proto.ondewo.s2t.CTCDecoding', null, global);
|
|
22
22
|
goog.exportSymbol('proto.ondewo.s2t.CkptFile', null, global);
|
|
23
23
|
goog.exportSymbol('proto.ondewo.s2t.CreateUserLanguageModelRequest', null, global);
|
|
24
|
-
goog.exportSymbol('proto.ondewo.s2t.
|
|
24
|
+
goog.exportSymbol('proto.ondewo.s2t.Decoding', null, global);
|
|
25
25
|
goog.exportSymbol('proto.ondewo.s2t.DeleteUserLanguageModelRequest', null, global);
|
|
26
26
|
goog.exportSymbol('proto.ondewo.s2t.LanguageModelPipelineId', null, global);
|
|
27
27
|
goog.exportSymbol('proto.ondewo.s2t.LanguageModels', null, global);
|
|
@@ -71,6 +71,8 @@ goog.exportSymbol('proto.ondewo.s2t.UtteranceDetectionOptions.OneofTranscribeNot
|
|
|
71
71
|
goog.exportSymbol('proto.ondewo.s2t.VoiceActivityDetection', null, global);
|
|
72
72
|
goog.exportSymbol('proto.ondewo.s2t.Wav2Vec', null, global);
|
|
73
73
|
goog.exportSymbol('proto.ondewo.s2t.Wav2VecTriton', null, global);
|
|
74
|
+
goog.exportSymbol('proto.ondewo.s2t.Whisper', null, global);
|
|
75
|
+
goog.exportSymbol('proto.ondewo.s2t.WhisperTriton', null, global);
|
|
74
76
|
goog.exportSymbol('proto.ondewo.s2t.WordTiming', null, global);
|
|
75
77
|
/**
|
|
76
78
|
* Generated by JsPbCodeGenerator.
|
|
@@ -523,16 +525,58 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
523
525
|
* @extends {jspb.Message}
|
|
524
526
|
* @constructor
|
|
525
527
|
*/
|
|
526
|
-
proto.ondewo.s2t.
|
|
528
|
+
proto.ondewo.s2t.AcousticModels = function(opt_data) {
|
|
527
529
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
528
530
|
};
|
|
529
|
-
goog.inherits(proto.ondewo.s2t.
|
|
531
|
+
goog.inherits(proto.ondewo.s2t.AcousticModels, jspb.Message);
|
|
530
532
|
if (goog.DEBUG && !COMPILED) {
|
|
531
533
|
/**
|
|
532
534
|
* @public
|
|
533
535
|
* @override
|
|
534
536
|
*/
|
|
535
|
-
proto.ondewo.s2t.
|
|
537
|
+
proto.ondewo.s2t.AcousticModels.displayName = 'proto.ondewo.s2t.AcousticModels';
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* Generated by JsPbCodeGenerator.
|
|
541
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
542
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
543
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
544
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
545
|
+
* valid.
|
|
546
|
+
* @extends {jspb.Message}
|
|
547
|
+
* @constructor
|
|
548
|
+
*/
|
|
549
|
+
proto.ondewo.s2t.Whisper = function(opt_data) {
|
|
550
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
551
|
+
};
|
|
552
|
+
goog.inherits(proto.ondewo.s2t.Whisper, jspb.Message);
|
|
553
|
+
if (goog.DEBUG && !COMPILED) {
|
|
554
|
+
/**
|
|
555
|
+
* @public
|
|
556
|
+
* @override
|
|
557
|
+
*/
|
|
558
|
+
proto.ondewo.s2t.Whisper.displayName = 'proto.ondewo.s2t.Whisper';
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Generated by JsPbCodeGenerator.
|
|
562
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
563
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
564
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
565
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
566
|
+
* valid.
|
|
567
|
+
* @extends {jspb.Message}
|
|
568
|
+
* @constructor
|
|
569
|
+
*/
|
|
570
|
+
proto.ondewo.s2t.WhisperTriton = function(opt_data) {
|
|
571
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
572
|
+
};
|
|
573
|
+
goog.inherits(proto.ondewo.s2t.WhisperTriton, jspb.Message);
|
|
574
|
+
if (goog.DEBUG && !COMPILED) {
|
|
575
|
+
/**
|
|
576
|
+
* @public
|
|
577
|
+
* @override
|
|
578
|
+
*/
|
|
579
|
+
proto.ondewo.s2t.WhisperTriton.displayName = 'proto.ondewo.s2t.WhisperTriton';
|
|
536
580
|
}
|
|
537
581
|
/**
|
|
538
582
|
* Generated by JsPbCodeGenerator.
|
|
@@ -1157,7 +1201,7 @@ proto.ondewo.s2t.TranscribeRequestConfig.prototype.toObject = function(opt_inclu
|
|
|
1157
1201
|
proto.ondewo.s2t.TranscribeRequestConfig.toObject = function(includeInstance, msg) {
|
|
1158
1202
|
var f, obj = {
|
|
1159
1203
|
s2tPipelineId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1160
|
-
|
|
1204
|
+
decoding: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
1161
1205
|
languageModelName: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1162
1206
|
postProcessing: (f = msg.getPostProcessing()) && proto.ondewo.s2t.PostProcessingOptions.toObject(includeInstance, f),
|
|
1163
1207
|
utteranceDetection: (f = msg.getUtteranceDetection()) && proto.ondewo.s2t.UtteranceDetectionOptions.toObject(includeInstance, f),
|
|
@@ -1205,8 +1249,8 @@ proto.ondewo.s2t.TranscribeRequestConfig.deserializeBinaryFromReader = function(
|
|
|
1205
1249
|
msg.setS2tPipelineId(value);
|
|
1206
1250
|
break;
|
|
1207
1251
|
case 2:
|
|
1208
|
-
var value = /** @type {!proto.ondewo.s2t.
|
|
1209
|
-
msg.
|
|
1252
|
+
var value = /** @type {!proto.ondewo.s2t.Decoding} */ (reader.readEnum());
|
|
1253
|
+
msg.setDecoding(value);
|
|
1210
1254
|
break;
|
|
1211
1255
|
case 3:
|
|
1212
1256
|
var value = /** @type {string} */ (reader.readString());
|
|
@@ -1273,7 +1317,7 @@ proto.ondewo.s2t.TranscribeRequestConfig.serializeBinaryToWriter = function(mess
|
|
|
1273
1317
|
f
|
|
1274
1318
|
);
|
|
1275
1319
|
}
|
|
1276
|
-
f = message.
|
|
1320
|
+
f = message.getDecoding();
|
|
1277
1321
|
if (f !== 0.0) {
|
|
1278
1322
|
writer.writeEnum(
|
|
1279
1323
|
2,
|
|
@@ -1349,19 +1393,19 @@ proto.ondewo.s2t.TranscribeRequestConfig.prototype.setS2tPipelineId = function(v
|
|
|
1349
1393
|
|
|
1350
1394
|
|
|
1351
1395
|
/**
|
|
1352
|
-
* optional
|
|
1353
|
-
* @return {!proto.ondewo.s2t.
|
|
1396
|
+
* optional Decoding decoding = 2;
|
|
1397
|
+
* @return {!proto.ondewo.s2t.Decoding}
|
|
1354
1398
|
*/
|
|
1355
|
-
proto.ondewo.s2t.TranscribeRequestConfig.prototype.
|
|
1356
|
-
return /** @type {!proto.ondewo.s2t.
|
|
1399
|
+
proto.ondewo.s2t.TranscribeRequestConfig.prototype.getDecoding = function() {
|
|
1400
|
+
return /** @type {!proto.ondewo.s2t.Decoding} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1357
1401
|
};
|
|
1358
1402
|
|
|
1359
1403
|
|
|
1360
1404
|
/**
|
|
1361
|
-
* @param {!proto.ondewo.s2t.
|
|
1405
|
+
* @param {!proto.ondewo.s2t.Decoding} value
|
|
1362
1406
|
* @return {!proto.ondewo.s2t.TranscribeRequestConfig} returns this
|
|
1363
1407
|
*/
|
|
1364
|
-
proto.ondewo.s2t.TranscribeRequestConfig.prototype.
|
|
1408
|
+
proto.ondewo.s2t.TranscribeRequestConfig.prototype.setDecoding = function(value) {
|
|
1365
1409
|
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
1366
1410
|
};
|
|
1367
1411
|
|
|
@@ -5988,7 +6032,7 @@ proto.ondewo.s2t.S2TInference.prototype.toObject = function(opt_includeInstance)
|
|
|
5988
6032
|
*/
|
|
5989
6033
|
proto.ondewo.s2t.S2TInference.toObject = function(includeInstance, msg) {
|
|
5990
6034
|
var f, obj = {
|
|
5991
|
-
|
|
6035
|
+
acousticModels: (f = msg.getAcousticModels()) && proto.ondewo.s2t.AcousticModels.toObject(includeInstance, f),
|
|
5992
6036
|
languageModels: (f = msg.getLanguageModels()) && proto.ondewo.s2t.LanguageModels.toObject(includeInstance, f)
|
|
5993
6037
|
};
|
|
5994
6038
|
|
|
@@ -6027,9 +6071,9 @@ proto.ondewo.s2t.S2TInference.deserializeBinaryFromReader = function(msg, reader
|
|
|
6027
6071
|
var field = reader.getFieldNumber();
|
|
6028
6072
|
switch (field) {
|
|
6029
6073
|
case 1:
|
|
6030
|
-
var value = new proto.ondewo.s2t.
|
|
6031
|
-
reader.readMessage(value,proto.ondewo.s2t.
|
|
6032
|
-
msg.
|
|
6074
|
+
var value = new proto.ondewo.s2t.AcousticModels;
|
|
6075
|
+
reader.readMessage(value,proto.ondewo.s2t.AcousticModels.deserializeBinaryFromReader);
|
|
6076
|
+
msg.setAcousticModels(value);
|
|
6033
6077
|
break;
|
|
6034
6078
|
case 2:
|
|
6035
6079
|
var value = new proto.ondewo.s2t.LanguageModels;
|
|
@@ -6065,12 +6109,12 @@ proto.ondewo.s2t.S2TInference.prototype.serializeBinary = function() {
|
|
|
6065
6109
|
*/
|
|
6066
6110
|
proto.ondewo.s2t.S2TInference.serializeBinaryToWriter = function(message, writer) {
|
|
6067
6111
|
var f = undefined;
|
|
6068
|
-
f = message.
|
|
6112
|
+
f = message.getAcousticModels();
|
|
6069
6113
|
if (f != null) {
|
|
6070
6114
|
writer.writeMessage(
|
|
6071
6115
|
1,
|
|
6072
6116
|
f,
|
|
6073
|
-
proto.ondewo.s2t.
|
|
6117
|
+
proto.ondewo.s2t.AcousticModels.serializeBinaryToWriter
|
|
6074
6118
|
);
|
|
6075
6119
|
}
|
|
6076
6120
|
f = message.getLanguageModels();
|
|
@@ -6085,20 +6129,20 @@ proto.ondewo.s2t.S2TInference.serializeBinaryToWriter = function(message, writer
|
|
|
6085
6129
|
|
|
6086
6130
|
|
|
6087
6131
|
/**
|
|
6088
|
-
* optional
|
|
6089
|
-
* @return {?proto.ondewo.s2t.
|
|
6132
|
+
* optional AcousticModels acoustic_models = 1;
|
|
6133
|
+
* @return {?proto.ondewo.s2t.AcousticModels}
|
|
6090
6134
|
*/
|
|
6091
|
-
proto.ondewo.s2t.S2TInference.prototype.
|
|
6092
|
-
return /** @type{?proto.ondewo.s2t.
|
|
6093
|
-
jspb.Message.getWrapperField(this, proto.ondewo.s2t.
|
|
6135
|
+
proto.ondewo.s2t.S2TInference.prototype.getAcousticModels = function() {
|
|
6136
|
+
return /** @type{?proto.ondewo.s2t.AcousticModels} */ (
|
|
6137
|
+
jspb.Message.getWrapperField(this, proto.ondewo.s2t.AcousticModels, 1));
|
|
6094
6138
|
};
|
|
6095
6139
|
|
|
6096
6140
|
|
|
6097
6141
|
/**
|
|
6098
|
-
* @param {?proto.ondewo.s2t.
|
|
6142
|
+
* @param {?proto.ondewo.s2t.AcousticModels|undefined} value
|
|
6099
6143
|
* @return {!proto.ondewo.s2t.S2TInference} returns this
|
|
6100
6144
|
*/
|
|
6101
|
-
proto.ondewo.s2t.S2TInference.prototype.
|
|
6145
|
+
proto.ondewo.s2t.S2TInference.prototype.setAcousticModels = function(value) {
|
|
6102
6146
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
6103
6147
|
};
|
|
6104
6148
|
|
|
@@ -6107,8 +6151,8 @@ proto.ondewo.s2t.S2TInference.prototype.setCtcAcousticModels = function(value) {
|
|
|
6107
6151
|
* Clears the message field making it undefined.
|
|
6108
6152
|
* @return {!proto.ondewo.s2t.S2TInference} returns this
|
|
6109
6153
|
*/
|
|
6110
|
-
proto.ondewo.s2t.S2TInference.prototype.
|
|
6111
|
-
return this.
|
|
6154
|
+
proto.ondewo.s2t.S2TInference.prototype.clearAcousticModels = function() {
|
|
6155
|
+
return this.setAcousticModels(undefined);
|
|
6112
6156
|
};
|
|
6113
6157
|
|
|
6114
6158
|
|
|
@@ -6116,7 +6160,7 @@ proto.ondewo.s2t.S2TInference.prototype.clearCtcAcousticModels = function() {
|
|
|
6116
6160
|
* Returns whether this field is set.
|
|
6117
6161
|
* @return {boolean}
|
|
6118
6162
|
*/
|
|
6119
|
-
proto.ondewo.s2t.S2TInference.prototype.
|
|
6163
|
+
proto.ondewo.s2t.S2TInference.prototype.hasAcousticModels = function() {
|
|
6120
6164
|
return jspb.Message.getField(this, 1) != null;
|
|
6121
6165
|
};
|
|
6122
6166
|
|
|
@@ -6174,8 +6218,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
6174
6218
|
* http://goto/soy-param-migration
|
|
6175
6219
|
* @return {!Object}
|
|
6176
6220
|
*/
|
|
6177
|
-
proto.ondewo.s2t.
|
|
6178
|
-
return proto.ondewo.s2t.
|
|
6221
|
+
proto.ondewo.s2t.AcousticModels.prototype.toObject = function(opt_includeInstance) {
|
|
6222
|
+
return proto.ondewo.s2t.AcousticModels.toObject(opt_includeInstance, this);
|
|
6179
6223
|
};
|
|
6180
6224
|
|
|
6181
6225
|
|
|
@@ -6184,17 +6228,19 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.toObject = function(opt_includeInst
|
|
|
6184
6228
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6185
6229
|
* the JSPB instance for transitional soy proto support:
|
|
6186
6230
|
* http://goto/soy-param-migration
|
|
6187
|
-
* @param {!proto.ondewo.s2t.
|
|
6231
|
+
* @param {!proto.ondewo.s2t.AcousticModels} msg The msg instance to transform.
|
|
6188
6232
|
* @return {!Object}
|
|
6189
6233
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6190
6234
|
*/
|
|
6191
|
-
proto.ondewo.s2t.
|
|
6235
|
+
proto.ondewo.s2t.AcousticModels.toObject = function(includeInstance, msg) {
|
|
6192
6236
|
var f, obj = {
|
|
6193
6237
|
type: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6194
6238
|
quartznet: (f = msg.getQuartznet()) && proto.ondewo.s2t.Quartznet.toObject(includeInstance, f),
|
|
6195
6239
|
quartznetTriton: (f = msg.getQuartznetTriton()) && proto.ondewo.s2t.QuartznetTriton.toObject(includeInstance, f),
|
|
6196
6240
|
wav2vec: (f = msg.getWav2vec()) && proto.ondewo.s2t.Wav2Vec.toObject(includeInstance, f),
|
|
6197
|
-
wav2vecTriton: (f = msg.getWav2vecTriton()) && proto.ondewo.s2t.Wav2VecTriton.toObject(includeInstance, f)
|
|
6241
|
+
wav2vecTriton: (f = msg.getWav2vecTriton()) && proto.ondewo.s2t.Wav2VecTriton.toObject(includeInstance, f),
|
|
6242
|
+
whisper: (f = msg.getWhisper()) && proto.ondewo.s2t.Whisper.toObject(includeInstance, f),
|
|
6243
|
+
whisperTriton: (f = msg.getWhisperTriton()) && proto.ondewo.s2t.WhisperTriton.toObject(includeInstance, f)
|
|
6198
6244
|
};
|
|
6199
6245
|
|
|
6200
6246
|
if (includeInstance) {
|
|
@@ -6208,23 +6254,23 @@ proto.ondewo.s2t.CtcAcousticModels.toObject = function(includeInstance, msg) {
|
|
|
6208
6254
|
/**
|
|
6209
6255
|
* Deserializes binary data (in protobuf wire format).
|
|
6210
6256
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6211
|
-
* @return {!proto.ondewo.s2t.
|
|
6257
|
+
* @return {!proto.ondewo.s2t.AcousticModels}
|
|
6212
6258
|
*/
|
|
6213
|
-
proto.ondewo.s2t.
|
|
6259
|
+
proto.ondewo.s2t.AcousticModels.deserializeBinary = function(bytes) {
|
|
6214
6260
|
var reader = new jspb.BinaryReader(bytes);
|
|
6215
|
-
var msg = new proto.ondewo.s2t.
|
|
6216
|
-
return proto.ondewo.s2t.
|
|
6261
|
+
var msg = new proto.ondewo.s2t.AcousticModels;
|
|
6262
|
+
return proto.ondewo.s2t.AcousticModels.deserializeBinaryFromReader(msg, reader);
|
|
6217
6263
|
};
|
|
6218
6264
|
|
|
6219
6265
|
|
|
6220
6266
|
/**
|
|
6221
6267
|
* Deserializes binary data (in protobuf wire format) from the
|
|
6222
6268
|
* given reader into the given message object.
|
|
6223
|
-
* @param {!proto.ondewo.s2t.
|
|
6269
|
+
* @param {!proto.ondewo.s2t.AcousticModels} msg The message object to deserialize into.
|
|
6224
6270
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6225
|
-
* @return {!proto.ondewo.s2t.
|
|
6271
|
+
* @return {!proto.ondewo.s2t.AcousticModels}
|
|
6226
6272
|
*/
|
|
6227
|
-
proto.ondewo.s2t.
|
|
6273
|
+
proto.ondewo.s2t.AcousticModels.deserializeBinaryFromReader = function(msg, reader) {
|
|
6228
6274
|
while (reader.nextField()) {
|
|
6229
6275
|
if (reader.isEndGroup()) {
|
|
6230
6276
|
break;
|
|
@@ -6255,6 +6301,16 @@ proto.ondewo.s2t.CtcAcousticModels.deserializeBinaryFromReader = function(msg, r
|
|
|
6255
6301
|
reader.readMessage(value,proto.ondewo.s2t.Wav2VecTriton.deserializeBinaryFromReader);
|
|
6256
6302
|
msg.setWav2vecTriton(value);
|
|
6257
6303
|
break;
|
|
6304
|
+
case 6:
|
|
6305
|
+
var value = new proto.ondewo.s2t.Whisper;
|
|
6306
|
+
reader.readMessage(value,proto.ondewo.s2t.Whisper.deserializeBinaryFromReader);
|
|
6307
|
+
msg.setWhisper(value);
|
|
6308
|
+
break;
|
|
6309
|
+
case 7:
|
|
6310
|
+
var value = new proto.ondewo.s2t.WhisperTriton;
|
|
6311
|
+
reader.readMessage(value,proto.ondewo.s2t.WhisperTriton.deserializeBinaryFromReader);
|
|
6312
|
+
msg.setWhisperTriton(value);
|
|
6313
|
+
break;
|
|
6258
6314
|
default:
|
|
6259
6315
|
reader.skipField();
|
|
6260
6316
|
break;
|
|
@@ -6268,9 +6324,9 @@ proto.ondewo.s2t.CtcAcousticModels.deserializeBinaryFromReader = function(msg, r
|
|
|
6268
6324
|
* Serializes the message to binary data (in protobuf wire format).
|
|
6269
6325
|
* @return {!Uint8Array}
|
|
6270
6326
|
*/
|
|
6271
|
-
proto.ondewo.s2t.
|
|
6327
|
+
proto.ondewo.s2t.AcousticModels.prototype.serializeBinary = function() {
|
|
6272
6328
|
var writer = new jspb.BinaryWriter();
|
|
6273
|
-
proto.ondewo.s2t.
|
|
6329
|
+
proto.ondewo.s2t.AcousticModels.serializeBinaryToWriter(this, writer);
|
|
6274
6330
|
return writer.getResultBuffer();
|
|
6275
6331
|
};
|
|
6276
6332
|
|
|
@@ -6278,11 +6334,11 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.serializeBinary = function() {
|
|
|
6278
6334
|
/**
|
|
6279
6335
|
* Serializes the given message to binary data (in protobuf wire
|
|
6280
6336
|
* format), writing to the given BinaryWriter.
|
|
6281
|
-
* @param {!proto.ondewo.s2t.
|
|
6337
|
+
* @param {!proto.ondewo.s2t.AcousticModels} message
|
|
6282
6338
|
* @param {!jspb.BinaryWriter} writer
|
|
6283
6339
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6284
6340
|
*/
|
|
6285
|
-
proto.ondewo.s2t.
|
|
6341
|
+
proto.ondewo.s2t.AcousticModels.serializeBinaryToWriter = function(message, writer) {
|
|
6286
6342
|
var f = undefined;
|
|
6287
6343
|
f = message.getType();
|
|
6288
6344
|
if (f.length > 0) {
|
|
@@ -6323,6 +6379,22 @@ proto.ondewo.s2t.CtcAcousticModels.serializeBinaryToWriter = function(message, w
|
|
|
6323
6379
|
proto.ondewo.s2t.Wav2VecTriton.serializeBinaryToWriter
|
|
6324
6380
|
);
|
|
6325
6381
|
}
|
|
6382
|
+
f = message.getWhisper();
|
|
6383
|
+
if (f != null) {
|
|
6384
|
+
writer.writeMessage(
|
|
6385
|
+
6,
|
|
6386
|
+
f,
|
|
6387
|
+
proto.ondewo.s2t.Whisper.serializeBinaryToWriter
|
|
6388
|
+
);
|
|
6389
|
+
}
|
|
6390
|
+
f = message.getWhisperTriton();
|
|
6391
|
+
if (f != null) {
|
|
6392
|
+
writer.writeMessage(
|
|
6393
|
+
7,
|
|
6394
|
+
f,
|
|
6395
|
+
proto.ondewo.s2t.WhisperTriton.serializeBinaryToWriter
|
|
6396
|
+
);
|
|
6397
|
+
}
|
|
6326
6398
|
};
|
|
6327
6399
|
|
|
6328
6400
|
|
|
@@ -6330,16 +6402,16 @@ proto.ondewo.s2t.CtcAcousticModels.serializeBinaryToWriter = function(message, w
|
|
|
6330
6402
|
* optional string type = 1;
|
|
6331
6403
|
* @return {string}
|
|
6332
6404
|
*/
|
|
6333
|
-
proto.ondewo.s2t.
|
|
6405
|
+
proto.ondewo.s2t.AcousticModels.prototype.getType = function() {
|
|
6334
6406
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6335
6407
|
};
|
|
6336
6408
|
|
|
6337
6409
|
|
|
6338
6410
|
/**
|
|
6339
6411
|
* @param {string} value
|
|
6340
|
-
* @return {!proto.ondewo.s2t.
|
|
6412
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6341
6413
|
*/
|
|
6342
|
-
proto.ondewo.s2t.
|
|
6414
|
+
proto.ondewo.s2t.AcousticModels.prototype.setType = function(value) {
|
|
6343
6415
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6344
6416
|
};
|
|
6345
6417
|
|
|
@@ -6348,7 +6420,7 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.setType = function(value) {
|
|
|
6348
6420
|
* optional Quartznet quartznet = 2;
|
|
6349
6421
|
* @return {?proto.ondewo.s2t.Quartznet}
|
|
6350
6422
|
*/
|
|
6351
|
-
proto.ondewo.s2t.
|
|
6423
|
+
proto.ondewo.s2t.AcousticModels.prototype.getQuartznet = function() {
|
|
6352
6424
|
return /** @type{?proto.ondewo.s2t.Quartznet} */ (
|
|
6353
6425
|
jspb.Message.getWrapperField(this, proto.ondewo.s2t.Quartznet, 2));
|
|
6354
6426
|
};
|
|
@@ -6356,18 +6428,18 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.getQuartznet = function() {
|
|
|
6356
6428
|
|
|
6357
6429
|
/**
|
|
6358
6430
|
* @param {?proto.ondewo.s2t.Quartznet|undefined} value
|
|
6359
|
-
* @return {!proto.ondewo.s2t.
|
|
6431
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6360
6432
|
*/
|
|
6361
|
-
proto.ondewo.s2t.
|
|
6433
|
+
proto.ondewo.s2t.AcousticModels.prototype.setQuartznet = function(value) {
|
|
6362
6434
|
return jspb.Message.setWrapperField(this, 2, value);
|
|
6363
6435
|
};
|
|
6364
6436
|
|
|
6365
6437
|
|
|
6366
6438
|
/**
|
|
6367
6439
|
* Clears the message field making it undefined.
|
|
6368
|
-
* @return {!proto.ondewo.s2t.
|
|
6440
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6369
6441
|
*/
|
|
6370
|
-
proto.ondewo.s2t.
|
|
6442
|
+
proto.ondewo.s2t.AcousticModels.prototype.clearQuartznet = function() {
|
|
6371
6443
|
return this.setQuartznet(undefined);
|
|
6372
6444
|
};
|
|
6373
6445
|
|
|
@@ -6376,7 +6448,7 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.clearQuartznet = function() {
|
|
|
6376
6448
|
* Returns whether this field is set.
|
|
6377
6449
|
* @return {boolean}
|
|
6378
6450
|
*/
|
|
6379
|
-
proto.ondewo.s2t.
|
|
6451
|
+
proto.ondewo.s2t.AcousticModels.prototype.hasQuartznet = function() {
|
|
6380
6452
|
return jspb.Message.getField(this, 2) != null;
|
|
6381
6453
|
};
|
|
6382
6454
|
|
|
@@ -6385,7 +6457,7 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.hasQuartznet = function() {
|
|
|
6385
6457
|
* optional QuartznetTriton quartznet_triton = 3;
|
|
6386
6458
|
* @return {?proto.ondewo.s2t.QuartznetTriton}
|
|
6387
6459
|
*/
|
|
6388
|
-
proto.ondewo.s2t.
|
|
6460
|
+
proto.ondewo.s2t.AcousticModels.prototype.getQuartznetTriton = function() {
|
|
6389
6461
|
return /** @type{?proto.ondewo.s2t.QuartznetTriton} */ (
|
|
6390
6462
|
jspb.Message.getWrapperField(this, proto.ondewo.s2t.QuartznetTriton, 3));
|
|
6391
6463
|
};
|
|
@@ -6393,18 +6465,18 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.getQuartznetTriton = function() {
|
|
|
6393
6465
|
|
|
6394
6466
|
/**
|
|
6395
6467
|
* @param {?proto.ondewo.s2t.QuartznetTriton|undefined} value
|
|
6396
|
-
* @return {!proto.ondewo.s2t.
|
|
6468
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6397
6469
|
*/
|
|
6398
|
-
proto.ondewo.s2t.
|
|
6470
|
+
proto.ondewo.s2t.AcousticModels.prototype.setQuartznetTriton = function(value) {
|
|
6399
6471
|
return jspb.Message.setWrapperField(this, 3, value);
|
|
6400
6472
|
};
|
|
6401
6473
|
|
|
6402
6474
|
|
|
6403
6475
|
/**
|
|
6404
6476
|
* Clears the message field making it undefined.
|
|
6405
|
-
* @return {!proto.ondewo.s2t.
|
|
6477
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6406
6478
|
*/
|
|
6407
|
-
proto.ondewo.s2t.
|
|
6479
|
+
proto.ondewo.s2t.AcousticModels.prototype.clearQuartznetTriton = function() {
|
|
6408
6480
|
return this.setQuartznetTriton(undefined);
|
|
6409
6481
|
};
|
|
6410
6482
|
|
|
@@ -6413,7 +6485,7 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.clearQuartznetTriton = function() {
|
|
|
6413
6485
|
* Returns whether this field is set.
|
|
6414
6486
|
* @return {boolean}
|
|
6415
6487
|
*/
|
|
6416
|
-
proto.ondewo.s2t.
|
|
6488
|
+
proto.ondewo.s2t.AcousticModels.prototype.hasQuartznetTriton = function() {
|
|
6417
6489
|
return jspb.Message.getField(this, 3) != null;
|
|
6418
6490
|
};
|
|
6419
6491
|
|
|
@@ -6422,7 +6494,7 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.hasQuartznetTriton = function() {
|
|
|
6422
6494
|
* optional Wav2Vec wav2vec = 4;
|
|
6423
6495
|
* @return {?proto.ondewo.s2t.Wav2Vec}
|
|
6424
6496
|
*/
|
|
6425
|
-
proto.ondewo.s2t.
|
|
6497
|
+
proto.ondewo.s2t.AcousticModels.prototype.getWav2vec = function() {
|
|
6426
6498
|
return /** @type{?proto.ondewo.s2t.Wav2Vec} */ (
|
|
6427
6499
|
jspb.Message.getWrapperField(this, proto.ondewo.s2t.Wav2Vec, 4));
|
|
6428
6500
|
};
|
|
@@ -6430,18 +6502,18 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.getWav2vec = function() {
|
|
|
6430
6502
|
|
|
6431
6503
|
/**
|
|
6432
6504
|
* @param {?proto.ondewo.s2t.Wav2Vec|undefined} value
|
|
6433
|
-
* @return {!proto.ondewo.s2t.
|
|
6505
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6434
6506
|
*/
|
|
6435
|
-
proto.ondewo.s2t.
|
|
6507
|
+
proto.ondewo.s2t.AcousticModels.prototype.setWav2vec = function(value) {
|
|
6436
6508
|
return jspb.Message.setWrapperField(this, 4, value);
|
|
6437
6509
|
};
|
|
6438
6510
|
|
|
6439
6511
|
|
|
6440
6512
|
/**
|
|
6441
6513
|
* Clears the message field making it undefined.
|
|
6442
|
-
* @return {!proto.ondewo.s2t.
|
|
6514
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6443
6515
|
*/
|
|
6444
|
-
proto.ondewo.s2t.
|
|
6516
|
+
proto.ondewo.s2t.AcousticModels.prototype.clearWav2vec = function() {
|
|
6445
6517
|
return this.setWav2vec(undefined);
|
|
6446
6518
|
};
|
|
6447
6519
|
|
|
@@ -6450,7 +6522,7 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.clearWav2vec = function() {
|
|
|
6450
6522
|
* Returns whether this field is set.
|
|
6451
6523
|
* @return {boolean}
|
|
6452
6524
|
*/
|
|
6453
|
-
proto.ondewo.s2t.
|
|
6525
|
+
proto.ondewo.s2t.AcousticModels.prototype.hasWav2vec = function() {
|
|
6454
6526
|
return jspb.Message.getField(this, 4) != null;
|
|
6455
6527
|
};
|
|
6456
6528
|
|
|
@@ -6459,7 +6531,7 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.hasWav2vec = function() {
|
|
|
6459
6531
|
* optional Wav2VecTriton wav2vec_triton = 5;
|
|
6460
6532
|
* @return {?proto.ondewo.s2t.Wav2VecTriton}
|
|
6461
6533
|
*/
|
|
6462
|
-
proto.ondewo.s2t.
|
|
6534
|
+
proto.ondewo.s2t.AcousticModels.prototype.getWav2vecTriton = function() {
|
|
6463
6535
|
return /** @type{?proto.ondewo.s2t.Wav2VecTriton} */ (
|
|
6464
6536
|
jspb.Message.getWrapperField(this, proto.ondewo.s2t.Wav2VecTriton, 5));
|
|
6465
6537
|
};
|
|
@@ -6467,18 +6539,18 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.getWav2vecTriton = function() {
|
|
|
6467
6539
|
|
|
6468
6540
|
/**
|
|
6469
6541
|
* @param {?proto.ondewo.s2t.Wav2VecTriton|undefined} value
|
|
6470
|
-
* @return {!proto.ondewo.s2t.
|
|
6542
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6471
6543
|
*/
|
|
6472
|
-
proto.ondewo.s2t.
|
|
6544
|
+
proto.ondewo.s2t.AcousticModels.prototype.setWav2vecTriton = function(value) {
|
|
6473
6545
|
return jspb.Message.setWrapperField(this, 5, value);
|
|
6474
6546
|
};
|
|
6475
6547
|
|
|
6476
6548
|
|
|
6477
6549
|
/**
|
|
6478
6550
|
* Clears the message field making it undefined.
|
|
6479
|
-
* @return {!proto.ondewo.s2t.
|
|
6551
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6480
6552
|
*/
|
|
6481
|
-
proto.ondewo.s2t.
|
|
6553
|
+
proto.ondewo.s2t.AcousticModels.prototype.clearWav2vecTriton = function() {
|
|
6482
6554
|
return this.setWav2vecTriton(undefined);
|
|
6483
6555
|
};
|
|
6484
6556
|
|
|
@@ -6487,11 +6559,495 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.clearWav2vecTriton = function() {
|
|
|
6487
6559
|
* Returns whether this field is set.
|
|
6488
6560
|
* @return {boolean}
|
|
6489
6561
|
*/
|
|
6490
|
-
proto.ondewo.s2t.
|
|
6562
|
+
proto.ondewo.s2t.AcousticModels.prototype.hasWav2vecTriton = function() {
|
|
6491
6563
|
return jspb.Message.getField(this, 5) != null;
|
|
6492
6564
|
};
|
|
6493
6565
|
|
|
6494
6566
|
|
|
6567
|
+
/**
|
|
6568
|
+
* optional Whisper whisper = 6;
|
|
6569
|
+
* @return {?proto.ondewo.s2t.Whisper}
|
|
6570
|
+
*/
|
|
6571
|
+
proto.ondewo.s2t.AcousticModels.prototype.getWhisper = function() {
|
|
6572
|
+
return /** @type{?proto.ondewo.s2t.Whisper} */ (
|
|
6573
|
+
jspb.Message.getWrapperField(this, proto.ondewo.s2t.Whisper, 6));
|
|
6574
|
+
};
|
|
6575
|
+
|
|
6576
|
+
|
|
6577
|
+
/**
|
|
6578
|
+
* @param {?proto.ondewo.s2t.Whisper|undefined} value
|
|
6579
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6580
|
+
*/
|
|
6581
|
+
proto.ondewo.s2t.AcousticModels.prototype.setWhisper = function(value) {
|
|
6582
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
6583
|
+
};
|
|
6584
|
+
|
|
6585
|
+
|
|
6586
|
+
/**
|
|
6587
|
+
* Clears the message field making it undefined.
|
|
6588
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6589
|
+
*/
|
|
6590
|
+
proto.ondewo.s2t.AcousticModels.prototype.clearWhisper = function() {
|
|
6591
|
+
return this.setWhisper(undefined);
|
|
6592
|
+
};
|
|
6593
|
+
|
|
6594
|
+
|
|
6595
|
+
/**
|
|
6596
|
+
* Returns whether this field is set.
|
|
6597
|
+
* @return {boolean}
|
|
6598
|
+
*/
|
|
6599
|
+
proto.ondewo.s2t.AcousticModels.prototype.hasWhisper = function() {
|
|
6600
|
+
return jspb.Message.getField(this, 6) != null;
|
|
6601
|
+
};
|
|
6602
|
+
|
|
6603
|
+
|
|
6604
|
+
/**
|
|
6605
|
+
* optional WhisperTriton whisper_triton = 7;
|
|
6606
|
+
* @return {?proto.ondewo.s2t.WhisperTriton}
|
|
6607
|
+
*/
|
|
6608
|
+
proto.ondewo.s2t.AcousticModels.prototype.getWhisperTriton = function() {
|
|
6609
|
+
return /** @type{?proto.ondewo.s2t.WhisperTriton} */ (
|
|
6610
|
+
jspb.Message.getWrapperField(this, proto.ondewo.s2t.WhisperTriton, 7));
|
|
6611
|
+
};
|
|
6612
|
+
|
|
6613
|
+
|
|
6614
|
+
/**
|
|
6615
|
+
* @param {?proto.ondewo.s2t.WhisperTriton|undefined} value
|
|
6616
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6617
|
+
*/
|
|
6618
|
+
proto.ondewo.s2t.AcousticModels.prototype.setWhisperTriton = function(value) {
|
|
6619
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
6620
|
+
};
|
|
6621
|
+
|
|
6622
|
+
|
|
6623
|
+
/**
|
|
6624
|
+
* Clears the message field making it undefined.
|
|
6625
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6626
|
+
*/
|
|
6627
|
+
proto.ondewo.s2t.AcousticModels.prototype.clearWhisperTriton = function() {
|
|
6628
|
+
return this.setWhisperTriton(undefined);
|
|
6629
|
+
};
|
|
6630
|
+
|
|
6631
|
+
|
|
6632
|
+
/**
|
|
6633
|
+
* Returns whether this field is set.
|
|
6634
|
+
* @return {boolean}
|
|
6635
|
+
*/
|
|
6636
|
+
proto.ondewo.s2t.AcousticModels.prototype.hasWhisperTriton = function() {
|
|
6637
|
+
return jspb.Message.getField(this, 7) != null;
|
|
6638
|
+
};
|
|
6639
|
+
|
|
6640
|
+
|
|
6641
|
+
|
|
6642
|
+
|
|
6643
|
+
|
|
6644
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6645
|
+
/**
|
|
6646
|
+
* Creates an object representation of this proto.
|
|
6647
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6648
|
+
* Optional fields that are not set will be set to undefined.
|
|
6649
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6650
|
+
* For the list of reserved names please see:
|
|
6651
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6652
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6653
|
+
* JSPB instance for transitional soy proto support:
|
|
6654
|
+
* http://goto/soy-param-migration
|
|
6655
|
+
* @return {!Object}
|
|
6656
|
+
*/
|
|
6657
|
+
proto.ondewo.s2t.Whisper.prototype.toObject = function(opt_includeInstance) {
|
|
6658
|
+
return proto.ondewo.s2t.Whisper.toObject(opt_includeInstance, this);
|
|
6659
|
+
};
|
|
6660
|
+
|
|
6661
|
+
|
|
6662
|
+
/**
|
|
6663
|
+
* Static version of the {@see toObject} method.
|
|
6664
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6665
|
+
* the JSPB instance for transitional soy proto support:
|
|
6666
|
+
* http://goto/soy-param-migration
|
|
6667
|
+
* @param {!proto.ondewo.s2t.Whisper} msg The msg instance to transform.
|
|
6668
|
+
* @return {!Object}
|
|
6669
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6670
|
+
*/
|
|
6671
|
+
proto.ondewo.s2t.Whisper.toObject = function(includeInstance, msg) {
|
|
6672
|
+
var f, obj = {
|
|
6673
|
+
modelPath: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6674
|
+
useGpu: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
6675
|
+
language: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
6676
|
+
};
|
|
6677
|
+
|
|
6678
|
+
if (includeInstance) {
|
|
6679
|
+
obj.$jspbMessageInstance = msg;
|
|
6680
|
+
}
|
|
6681
|
+
return obj;
|
|
6682
|
+
};
|
|
6683
|
+
}
|
|
6684
|
+
|
|
6685
|
+
|
|
6686
|
+
/**
|
|
6687
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6688
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6689
|
+
* @return {!proto.ondewo.s2t.Whisper}
|
|
6690
|
+
*/
|
|
6691
|
+
proto.ondewo.s2t.Whisper.deserializeBinary = function(bytes) {
|
|
6692
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6693
|
+
var msg = new proto.ondewo.s2t.Whisper;
|
|
6694
|
+
return proto.ondewo.s2t.Whisper.deserializeBinaryFromReader(msg, reader);
|
|
6695
|
+
};
|
|
6696
|
+
|
|
6697
|
+
|
|
6698
|
+
/**
|
|
6699
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6700
|
+
* given reader into the given message object.
|
|
6701
|
+
* @param {!proto.ondewo.s2t.Whisper} msg The message object to deserialize into.
|
|
6702
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6703
|
+
* @return {!proto.ondewo.s2t.Whisper}
|
|
6704
|
+
*/
|
|
6705
|
+
proto.ondewo.s2t.Whisper.deserializeBinaryFromReader = function(msg, reader) {
|
|
6706
|
+
while (reader.nextField()) {
|
|
6707
|
+
if (reader.isEndGroup()) {
|
|
6708
|
+
break;
|
|
6709
|
+
}
|
|
6710
|
+
var field = reader.getFieldNumber();
|
|
6711
|
+
switch (field) {
|
|
6712
|
+
case 1:
|
|
6713
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6714
|
+
msg.setModelPath(value);
|
|
6715
|
+
break;
|
|
6716
|
+
case 2:
|
|
6717
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
6718
|
+
msg.setUseGpu(value);
|
|
6719
|
+
break;
|
|
6720
|
+
case 3:
|
|
6721
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6722
|
+
msg.setLanguage(value);
|
|
6723
|
+
break;
|
|
6724
|
+
default:
|
|
6725
|
+
reader.skipField();
|
|
6726
|
+
break;
|
|
6727
|
+
}
|
|
6728
|
+
}
|
|
6729
|
+
return msg;
|
|
6730
|
+
};
|
|
6731
|
+
|
|
6732
|
+
|
|
6733
|
+
/**
|
|
6734
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6735
|
+
* @return {!Uint8Array}
|
|
6736
|
+
*/
|
|
6737
|
+
proto.ondewo.s2t.Whisper.prototype.serializeBinary = function() {
|
|
6738
|
+
var writer = new jspb.BinaryWriter();
|
|
6739
|
+
proto.ondewo.s2t.Whisper.serializeBinaryToWriter(this, writer);
|
|
6740
|
+
return writer.getResultBuffer();
|
|
6741
|
+
};
|
|
6742
|
+
|
|
6743
|
+
|
|
6744
|
+
/**
|
|
6745
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6746
|
+
* format), writing to the given BinaryWriter.
|
|
6747
|
+
* @param {!proto.ondewo.s2t.Whisper} message
|
|
6748
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6749
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6750
|
+
*/
|
|
6751
|
+
proto.ondewo.s2t.Whisper.serializeBinaryToWriter = function(message, writer) {
|
|
6752
|
+
var f = undefined;
|
|
6753
|
+
f = message.getModelPath();
|
|
6754
|
+
if (f.length > 0) {
|
|
6755
|
+
writer.writeString(
|
|
6756
|
+
1,
|
|
6757
|
+
f
|
|
6758
|
+
);
|
|
6759
|
+
}
|
|
6760
|
+
f = message.getUseGpu();
|
|
6761
|
+
if (f) {
|
|
6762
|
+
writer.writeBool(
|
|
6763
|
+
2,
|
|
6764
|
+
f
|
|
6765
|
+
);
|
|
6766
|
+
}
|
|
6767
|
+
f = message.getLanguage();
|
|
6768
|
+
if (f.length > 0) {
|
|
6769
|
+
writer.writeString(
|
|
6770
|
+
3,
|
|
6771
|
+
f
|
|
6772
|
+
);
|
|
6773
|
+
}
|
|
6774
|
+
};
|
|
6775
|
+
|
|
6776
|
+
|
|
6777
|
+
/**
|
|
6778
|
+
* optional string model_path = 1;
|
|
6779
|
+
* @return {string}
|
|
6780
|
+
*/
|
|
6781
|
+
proto.ondewo.s2t.Whisper.prototype.getModelPath = function() {
|
|
6782
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6783
|
+
};
|
|
6784
|
+
|
|
6785
|
+
|
|
6786
|
+
/**
|
|
6787
|
+
* @param {string} value
|
|
6788
|
+
* @return {!proto.ondewo.s2t.Whisper} returns this
|
|
6789
|
+
*/
|
|
6790
|
+
proto.ondewo.s2t.Whisper.prototype.setModelPath = function(value) {
|
|
6791
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6792
|
+
};
|
|
6793
|
+
|
|
6794
|
+
|
|
6795
|
+
/**
|
|
6796
|
+
* optional bool use_gpu = 2;
|
|
6797
|
+
* @return {boolean}
|
|
6798
|
+
*/
|
|
6799
|
+
proto.ondewo.s2t.Whisper.prototype.getUseGpu = function() {
|
|
6800
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
6801
|
+
};
|
|
6802
|
+
|
|
6803
|
+
|
|
6804
|
+
/**
|
|
6805
|
+
* @param {boolean} value
|
|
6806
|
+
* @return {!proto.ondewo.s2t.Whisper} returns this
|
|
6807
|
+
*/
|
|
6808
|
+
proto.ondewo.s2t.Whisper.prototype.setUseGpu = function(value) {
|
|
6809
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
6810
|
+
};
|
|
6811
|
+
|
|
6812
|
+
|
|
6813
|
+
/**
|
|
6814
|
+
* optional string language = 3;
|
|
6815
|
+
* @return {string}
|
|
6816
|
+
*/
|
|
6817
|
+
proto.ondewo.s2t.Whisper.prototype.getLanguage = function() {
|
|
6818
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
6819
|
+
};
|
|
6820
|
+
|
|
6821
|
+
|
|
6822
|
+
/**
|
|
6823
|
+
* @param {string} value
|
|
6824
|
+
* @return {!proto.ondewo.s2t.Whisper} returns this
|
|
6825
|
+
*/
|
|
6826
|
+
proto.ondewo.s2t.Whisper.prototype.setLanguage = function(value) {
|
|
6827
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
6828
|
+
};
|
|
6829
|
+
|
|
6830
|
+
|
|
6831
|
+
|
|
6832
|
+
|
|
6833
|
+
|
|
6834
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6835
|
+
/**
|
|
6836
|
+
* Creates an object representation of this proto.
|
|
6837
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6838
|
+
* Optional fields that are not set will be set to undefined.
|
|
6839
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6840
|
+
* For the list of reserved names please see:
|
|
6841
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6842
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6843
|
+
* JSPB instance for transitional soy proto support:
|
|
6844
|
+
* http://goto/soy-param-migration
|
|
6845
|
+
* @return {!Object}
|
|
6846
|
+
*/
|
|
6847
|
+
proto.ondewo.s2t.WhisperTriton.prototype.toObject = function(opt_includeInstance) {
|
|
6848
|
+
return proto.ondewo.s2t.WhisperTriton.toObject(opt_includeInstance, this);
|
|
6849
|
+
};
|
|
6850
|
+
|
|
6851
|
+
|
|
6852
|
+
/**
|
|
6853
|
+
* Static version of the {@see toObject} method.
|
|
6854
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6855
|
+
* the JSPB instance for transitional soy proto support:
|
|
6856
|
+
* http://goto/soy-param-migration
|
|
6857
|
+
* @param {!proto.ondewo.s2t.WhisperTriton} msg The msg instance to transform.
|
|
6858
|
+
* @return {!Object}
|
|
6859
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6860
|
+
*/
|
|
6861
|
+
proto.ondewo.s2t.WhisperTriton.toObject = function(includeInstance, msg) {
|
|
6862
|
+
var f, obj = {
|
|
6863
|
+
processorPath: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6864
|
+
tritonModelName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
6865
|
+
tritonModelVersion: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
6866
|
+
checkStatusTimeout: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
6867
|
+
};
|
|
6868
|
+
|
|
6869
|
+
if (includeInstance) {
|
|
6870
|
+
obj.$jspbMessageInstance = msg;
|
|
6871
|
+
}
|
|
6872
|
+
return obj;
|
|
6873
|
+
};
|
|
6874
|
+
}
|
|
6875
|
+
|
|
6876
|
+
|
|
6877
|
+
/**
|
|
6878
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6879
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6880
|
+
* @return {!proto.ondewo.s2t.WhisperTriton}
|
|
6881
|
+
*/
|
|
6882
|
+
proto.ondewo.s2t.WhisperTriton.deserializeBinary = function(bytes) {
|
|
6883
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6884
|
+
var msg = new proto.ondewo.s2t.WhisperTriton;
|
|
6885
|
+
return proto.ondewo.s2t.WhisperTriton.deserializeBinaryFromReader(msg, reader);
|
|
6886
|
+
};
|
|
6887
|
+
|
|
6888
|
+
|
|
6889
|
+
/**
|
|
6890
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6891
|
+
* given reader into the given message object.
|
|
6892
|
+
* @param {!proto.ondewo.s2t.WhisperTriton} msg The message object to deserialize into.
|
|
6893
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6894
|
+
* @return {!proto.ondewo.s2t.WhisperTriton}
|
|
6895
|
+
*/
|
|
6896
|
+
proto.ondewo.s2t.WhisperTriton.deserializeBinaryFromReader = function(msg, reader) {
|
|
6897
|
+
while (reader.nextField()) {
|
|
6898
|
+
if (reader.isEndGroup()) {
|
|
6899
|
+
break;
|
|
6900
|
+
}
|
|
6901
|
+
var field = reader.getFieldNumber();
|
|
6902
|
+
switch (field) {
|
|
6903
|
+
case 1:
|
|
6904
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6905
|
+
msg.setProcessorPath(value);
|
|
6906
|
+
break;
|
|
6907
|
+
case 2:
|
|
6908
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6909
|
+
msg.setTritonModelName(value);
|
|
6910
|
+
break;
|
|
6911
|
+
case 3:
|
|
6912
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6913
|
+
msg.setTritonModelVersion(value);
|
|
6914
|
+
break;
|
|
6915
|
+
case 4:
|
|
6916
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
6917
|
+
msg.setCheckStatusTimeout(value);
|
|
6918
|
+
break;
|
|
6919
|
+
default:
|
|
6920
|
+
reader.skipField();
|
|
6921
|
+
break;
|
|
6922
|
+
}
|
|
6923
|
+
}
|
|
6924
|
+
return msg;
|
|
6925
|
+
};
|
|
6926
|
+
|
|
6927
|
+
|
|
6928
|
+
/**
|
|
6929
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6930
|
+
* @return {!Uint8Array}
|
|
6931
|
+
*/
|
|
6932
|
+
proto.ondewo.s2t.WhisperTriton.prototype.serializeBinary = function() {
|
|
6933
|
+
var writer = new jspb.BinaryWriter();
|
|
6934
|
+
proto.ondewo.s2t.WhisperTriton.serializeBinaryToWriter(this, writer);
|
|
6935
|
+
return writer.getResultBuffer();
|
|
6936
|
+
};
|
|
6937
|
+
|
|
6938
|
+
|
|
6939
|
+
/**
|
|
6940
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6941
|
+
* format), writing to the given BinaryWriter.
|
|
6942
|
+
* @param {!proto.ondewo.s2t.WhisperTriton} message
|
|
6943
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6944
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6945
|
+
*/
|
|
6946
|
+
proto.ondewo.s2t.WhisperTriton.serializeBinaryToWriter = function(message, writer) {
|
|
6947
|
+
var f = undefined;
|
|
6948
|
+
f = message.getProcessorPath();
|
|
6949
|
+
if (f.length > 0) {
|
|
6950
|
+
writer.writeString(
|
|
6951
|
+
1,
|
|
6952
|
+
f
|
|
6953
|
+
);
|
|
6954
|
+
}
|
|
6955
|
+
f = message.getTritonModelName();
|
|
6956
|
+
if (f.length > 0) {
|
|
6957
|
+
writer.writeString(
|
|
6958
|
+
2,
|
|
6959
|
+
f
|
|
6960
|
+
);
|
|
6961
|
+
}
|
|
6962
|
+
f = message.getTritonModelVersion();
|
|
6963
|
+
if (f.length > 0) {
|
|
6964
|
+
writer.writeString(
|
|
6965
|
+
3,
|
|
6966
|
+
f
|
|
6967
|
+
);
|
|
6968
|
+
}
|
|
6969
|
+
f = message.getCheckStatusTimeout();
|
|
6970
|
+
if (f !== 0) {
|
|
6971
|
+
writer.writeInt64(
|
|
6972
|
+
4,
|
|
6973
|
+
f
|
|
6974
|
+
);
|
|
6975
|
+
}
|
|
6976
|
+
};
|
|
6977
|
+
|
|
6978
|
+
|
|
6979
|
+
/**
|
|
6980
|
+
* optional string processor_path = 1;
|
|
6981
|
+
* @return {string}
|
|
6982
|
+
*/
|
|
6983
|
+
proto.ondewo.s2t.WhisperTriton.prototype.getProcessorPath = function() {
|
|
6984
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6985
|
+
};
|
|
6986
|
+
|
|
6987
|
+
|
|
6988
|
+
/**
|
|
6989
|
+
* @param {string} value
|
|
6990
|
+
* @return {!proto.ondewo.s2t.WhisperTriton} returns this
|
|
6991
|
+
*/
|
|
6992
|
+
proto.ondewo.s2t.WhisperTriton.prototype.setProcessorPath = function(value) {
|
|
6993
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6994
|
+
};
|
|
6995
|
+
|
|
6996
|
+
|
|
6997
|
+
/**
|
|
6998
|
+
* optional string triton_model_name = 2;
|
|
6999
|
+
* @return {string}
|
|
7000
|
+
*/
|
|
7001
|
+
proto.ondewo.s2t.WhisperTriton.prototype.getTritonModelName = function() {
|
|
7002
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7003
|
+
};
|
|
7004
|
+
|
|
7005
|
+
|
|
7006
|
+
/**
|
|
7007
|
+
* @param {string} value
|
|
7008
|
+
* @return {!proto.ondewo.s2t.WhisperTriton} returns this
|
|
7009
|
+
*/
|
|
7010
|
+
proto.ondewo.s2t.WhisperTriton.prototype.setTritonModelName = function(value) {
|
|
7011
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7012
|
+
};
|
|
7013
|
+
|
|
7014
|
+
|
|
7015
|
+
/**
|
|
7016
|
+
* optional string triton_model_version = 3;
|
|
7017
|
+
* @return {string}
|
|
7018
|
+
*/
|
|
7019
|
+
proto.ondewo.s2t.WhisperTriton.prototype.getTritonModelVersion = function() {
|
|
7020
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
7021
|
+
};
|
|
7022
|
+
|
|
7023
|
+
|
|
7024
|
+
/**
|
|
7025
|
+
* @param {string} value
|
|
7026
|
+
* @return {!proto.ondewo.s2t.WhisperTriton} returns this
|
|
7027
|
+
*/
|
|
7028
|
+
proto.ondewo.s2t.WhisperTriton.prototype.setTritonModelVersion = function(value) {
|
|
7029
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
7030
|
+
};
|
|
7031
|
+
|
|
7032
|
+
|
|
7033
|
+
/**
|
|
7034
|
+
* optional int64 check_status_timeout = 4;
|
|
7035
|
+
* @return {number}
|
|
7036
|
+
*/
|
|
7037
|
+
proto.ondewo.s2t.WhisperTriton.prototype.getCheckStatusTimeout = function() {
|
|
7038
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
7039
|
+
};
|
|
7040
|
+
|
|
7041
|
+
|
|
7042
|
+
/**
|
|
7043
|
+
* @param {number} value
|
|
7044
|
+
* @return {!proto.ondewo.s2t.WhisperTriton} returns this
|
|
7045
|
+
*/
|
|
7046
|
+
proto.ondewo.s2t.WhisperTriton.prototype.setCheckStatusTimeout = function(value) {
|
|
7047
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
7048
|
+
};
|
|
7049
|
+
|
|
7050
|
+
|
|
6495
7051
|
|
|
6496
7052
|
|
|
6497
7053
|
|
|
@@ -8168,7 +8724,7 @@ proto.ondewo.s2t.StreamingSpeechRecognition.prototype.toObject = function(opt_in
|
|
|
8168
8724
|
proto.ondewo.s2t.StreamingSpeechRecognition.toObject = function(includeInstance, msg) {
|
|
8169
8725
|
var f, obj = {
|
|
8170
8726
|
transcribeNotFinal: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
8171
|
-
|
|
8727
|
+
decodingMethod: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8172
8728
|
samplingRate: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
8173
8729
|
minAudioChunkSize: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
8174
8730
|
startOfUtteranceThreshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
|
@@ -8216,7 +8772,7 @@ proto.ondewo.s2t.StreamingSpeechRecognition.deserializeBinaryFromReader = functi
|
|
|
8216
8772
|
break;
|
|
8217
8773
|
case 2:
|
|
8218
8774
|
var value = /** @type {string} */ (reader.readString());
|
|
8219
|
-
msg.
|
|
8775
|
+
msg.setDecodingMethod(value);
|
|
8220
8776
|
break;
|
|
8221
8777
|
case 3:
|
|
8222
8778
|
var value = /** @type {number} */ (reader.readInt64());
|
|
@@ -8274,7 +8830,7 @@ proto.ondewo.s2t.StreamingSpeechRecognition.serializeBinaryToWriter = function(m
|
|
|
8274
8830
|
f
|
|
8275
8831
|
);
|
|
8276
8832
|
}
|
|
8277
|
-
f = message.
|
|
8833
|
+
f = message.getDecodingMethod();
|
|
8278
8834
|
if (f.length > 0) {
|
|
8279
8835
|
writer.writeString(
|
|
8280
8836
|
2,
|
|
@@ -8338,10 +8894,10 @@ proto.ondewo.s2t.StreamingSpeechRecognition.prototype.setTranscribeNotFinal = fu
|
|
|
8338
8894
|
|
|
8339
8895
|
|
|
8340
8896
|
/**
|
|
8341
|
-
* optional string
|
|
8897
|
+
* optional string decoding_method = 2;
|
|
8342
8898
|
* @return {string}
|
|
8343
8899
|
*/
|
|
8344
|
-
proto.ondewo.s2t.StreamingSpeechRecognition.prototype.
|
|
8900
|
+
proto.ondewo.s2t.StreamingSpeechRecognition.prototype.getDecodingMethod = function() {
|
|
8345
8901
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
8346
8902
|
};
|
|
8347
8903
|
|
|
@@ -8350,7 +8906,7 @@ proto.ondewo.s2t.StreamingSpeechRecognition.prototype.getCtcDecodingMethod = fun
|
|
|
8350
8906
|
* @param {string} value
|
|
8351
8907
|
* @return {!proto.ondewo.s2t.StreamingSpeechRecognition} returns this
|
|
8352
8908
|
*/
|
|
8353
|
-
proto.ondewo.s2t.StreamingSpeechRecognition.prototype.
|
|
8909
|
+
proto.ondewo.s2t.StreamingSpeechRecognition.prototype.setDecodingMethod = function(value) {
|
|
8354
8910
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
8355
8911
|
};
|
|
8356
8912
|
|
|
@@ -11248,10 +11804,11 @@ proto.ondewo.s2t.TrainUserLanguageModelRequest.prototype.setOrder = function(val
|
|
|
11248
11804
|
/**
|
|
11249
11805
|
* @enum {number}
|
|
11250
11806
|
*/
|
|
11251
|
-
proto.ondewo.s2t.
|
|
11807
|
+
proto.ondewo.s2t.Decoding = {
|
|
11252
11808
|
DEFAULT: 0,
|
|
11253
11809
|
GREEDY: 1,
|
|
11254
|
-
BEAM_SEARCH_WITH_LM: 2
|
|
11810
|
+
BEAM_SEARCH_WITH_LM: 2,
|
|
11811
|
+
BEAM_SEARCH: 3
|
|
11255
11812
|
};
|
|
11256
11813
|
|
|
11257
11814
|
goog.object.extend(exports, proto.ondewo.s2t);
|