@ondewo/s2t-client-typescript 7.4.1 → 7.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/README.md +41 -1
- package/api/ondewo/s2t/speech-to-text_pb.d.ts +161 -0
- package/api/ondewo/s2t/speech-to-text_pb.js +1023 -38
- package/auth/offlineTokenProvider.d.ts +193 -0
- package/auth/offlineTokenProvider.js +374 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -2
- package/public-api.js +4 -3
|
@@ -74,6 +74,7 @@ goog.exportSymbol('proto.ondewo.s2t.S2tLlmPostProcessingTranslationOptions', nul
|
|
|
74
74
|
goog.exportSymbol('proto.ondewo.s2t.S2tNormalization', null, global);
|
|
75
75
|
goog.exportSymbol('proto.ondewo.s2t.S2tPipelineId', null, global);
|
|
76
76
|
goog.exportSymbol('proto.ondewo.s2t.ServiceTier', null, global);
|
|
77
|
+
goog.exportSymbol('proto.ondewo.s2t.Silero', null, global);
|
|
77
78
|
goog.exportSymbol('proto.ondewo.s2t.Speech2TextConfig', null, global);
|
|
78
79
|
goog.exportSymbol('proto.ondewo.s2t.StreamingServer', null, global);
|
|
79
80
|
goog.exportSymbol('proto.ondewo.s2t.StreamingSpeechRecognition', null, global);
|
|
@@ -93,14 +94,17 @@ goog.exportSymbol('proto.ondewo.s2t.TranscribeStreamResponse.OneofConfigCase', n
|
|
|
93
94
|
goog.exportSymbol('proto.ondewo.s2t.Transcription', null, global);
|
|
94
95
|
goog.exportSymbol('proto.ondewo.s2t.TranscriptionAlternative', null, global);
|
|
95
96
|
goog.exportSymbol('proto.ondewo.s2t.TranscriptionReturnOptions', null, global);
|
|
97
|
+
goog.exportSymbol('proto.ondewo.s2t.TsdMethod', null, global);
|
|
96
98
|
goog.exportSymbol('proto.ondewo.s2t.TurnDetectionOptions', null, global);
|
|
97
99
|
goog.exportSymbol('proto.ondewo.s2t.UtteranceDetectionOptions', null, global);
|
|
98
100
|
goog.exportSymbol('proto.ondewo.s2t.UtteranceDetectionOptions.OneofTranscribeNotFinalCase', null, global);
|
|
99
101
|
goog.exportSymbol('proto.ondewo.s2t.UtteranceDetectionOptions.OneofTurnDetectionCase', null, global);
|
|
102
|
+
goog.exportSymbol('proto.ondewo.s2t.VadMethod', null, global);
|
|
100
103
|
goog.exportSymbol('proto.ondewo.s2t.Verbosity', null, global);
|
|
101
104
|
goog.exportSymbol('proto.ondewo.s2t.VoiceActivityDetection', null, global);
|
|
102
105
|
goog.exportSymbol('proto.ondewo.s2t.Wav2Vec', null, global);
|
|
103
106
|
goog.exportSymbol('proto.ondewo.s2t.Wav2VecTriton', null, global);
|
|
107
|
+
goog.exportSymbol('proto.ondewo.s2t.WespeakerTsd', null, global);
|
|
104
108
|
goog.exportSymbol('proto.ondewo.s2t.Whisper', null, global);
|
|
105
109
|
goog.exportSymbol('proto.ondewo.s2t.WhisperTriton', null, global);
|
|
106
110
|
goog.exportSymbol('proto.ondewo.s2t.WordAlternative', null, global);
|
|
@@ -1092,6 +1096,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1092
1096
|
*/
|
|
1093
1097
|
proto.ondewo.s2t.Pyannote.displayName = 'proto.ondewo.s2t.Pyannote';
|
|
1094
1098
|
}
|
|
1099
|
+
/**
|
|
1100
|
+
* Generated by JsPbCodeGenerator.
|
|
1101
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1102
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1103
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1104
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1105
|
+
* valid.
|
|
1106
|
+
* @extends {jspb.Message}
|
|
1107
|
+
* @constructor
|
|
1108
|
+
*/
|
|
1109
|
+
proto.ondewo.s2t.Silero = function(opt_data) {
|
|
1110
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1111
|
+
};
|
|
1112
|
+
goog.inherits(proto.ondewo.s2t.Silero, jspb.Message);
|
|
1113
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1114
|
+
/**
|
|
1115
|
+
* @public
|
|
1116
|
+
* @override
|
|
1117
|
+
*/
|
|
1118
|
+
proto.ondewo.s2t.Silero.displayName = 'proto.ondewo.s2t.Silero';
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* Generated by JsPbCodeGenerator.
|
|
1122
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1123
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1124
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1125
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1126
|
+
* valid.
|
|
1127
|
+
* @extends {jspb.Message}
|
|
1128
|
+
* @constructor
|
|
1129
|
+
*/
|
|
1130
|
+
proto.ondewo.s2t.WespeakerTsd = function(opt_data) {
|
|
1131
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1132
|
+
};
|
|
1133
|
+
goog.inherits(proto.ondewo.s2t.WespeakerTsd, jspb.Message);
|
|
1134
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1135
|
+
/**
|
|
1136
|
+
* @public
|
|
1137
|
+
* @override
|
|
1138
|
+
*/
|
|
1139
|
+
proto.ondewo.s2t.WespeakerTsd.displayName = 'proto.ondewo.s2t.WespeakerTsd';
|
|
1140
|
+
}
|
|
1095
1141
|
/**
|
|
1096
1142
|
* Generated by JsPbCodeGenerator.
|
|
1097
1143
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -15033,7 +15079,11 @@ proto.ondewo.s2t.VoiceActivityDetection.toObject = function(includeInstance, msg
|
|
|
15033
15079
|
var f, obj = {
|
|
15034
15080
|
active: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
15035
15081
|
samplingRate: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
15036
|
-
pyannote: (f = msg.getPyannote()) && proto.ondewo.s2t.Pyannote.toObject(includeInstance, f)
|
|
15082
|
+
pyannote: (f = msg.getPyannote()) && proto.ondewo.s2t.Pyannote.toObject(includeInstance, f),
|
|
15083
|
+
silero: (f = msg.getSilero()) && proto.ondewo.s2t.Silero.toObject(includeInstance, f),
|
|
15084
|
+
wespeakerTsd: (f = msg.getWespeakerTsd()) && proto.ondewo.s2t.WespeakerTsd.toObject(includeInstance, f),
|
|
15085
|
+
vadMethod: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
15086
|
+
tsdMethod: jspb.Message.getFieldWithDefault(msg, 7, 0)
|
|
15037
15087
|
};
|
|
15038
15088
|
|
|
15039
15089
|
if (includeInstance) {
|
|
@@ -15083,6 +15133,24 @@ proto.ondewo.s2t.VoiceActivityDetection.deserializeBinaryFromReader = function(m
|
|
|
15083
15133
|
reader.readMessage(value,proto.ondewo.s2t.Pyannote.deserializeBinaryFromReader);
|
|
15084
15134
|
msg.setPyannote(value);
|
|
15085
15135
|
break;
|
|
15136
|
+
case 4:
|
|
15137
|
+
var value = new proto.ondewo.s2t.Silero;
|
|
15138
|
+
reader.readMessage(value,proto.ondewo.s2t.Silero.deserializeBinaryFromReader);
|
|
15139
|
+
msg.setSilero(value);
|
|
15140
|
+
break;
|
|
15141
|
+
case 5:
|
|
15142
|
+
var value = new proto.ondewo.s2t.WespeakerTsd;
|
|
15143
|
+
reader.readMessage(value,proto.ondewo.s2t.WespeakerTsd.deserializeBinaryFromReader);
|
|
15144
|
+
msg.setWespeakerTsd(value);
|
|
15145
|
+
break;
|
|
15146
|
+
case 6:
|
|
15147
|
+
var value = /** @type {!proto.ondewo.s2t.VadMethod} */ (reader.readEnum());
|
|
15148
|
+
msg.setVadMethod(value);
|
|
15149
|
+
break;
|
|
15150
|
+
case 7:
|
|
15151
|
+
var value = /** @type {!proto.ondewo.s2t.TsdMethod} */ (reader.readEnum());
|
|
15152
|
+
msg.setTsdMethod(value);
|
|
15153
|
+
break;
|
|
15086
15154
|
default:
|
|
15087
15155
|
reader.skipField();
|
|
15088
15156
|
break;
|
|
@@ -15134,6 +15202,36 @@ proto.ondewo.s2t.VoiceActivityDetection.serializeBinaryToWriter = function(messa
|
|
|
15134
15202
|
proto.ondewo.s2t.Pyannote.serializeBinaryToWriter
|
|
15135
15203
|
);
|
|
15136
15204
|
}
|
|
15205
|
+
f = message.getSilero();
|
|
15206
|
+
if (f != null) {
|
|
15207
|
+
writer.writeMessage(
|
|
15208
|
+
4,
|
|
15209
|
+
f,
|
|
15210
|
+
proto.ondewo.s2t.Silero.serializeBinaryToWriter
|
|
15211
|
+
);
|
|
15212
|
+
}
|
|
15213
|
+
f = message.getWespeakerTsd();
|
|
15214
|
+
if (f != null) {
|
|
15215
|
+
writer.writeMessage(
|
|
15216
|
+
5,
|
|
15217
|
+
f,
|
|
15218
|
+
proto.ondewo.s2t.WespeakerTsd.serializeBinaryToWriter
|
|
15219
|
+
);
|
|
15220
|
+
}
|
|
15221
|
+
f = message.getVadMethod();
|
|
15222
|
+
if (f !== 0.0) {
|
|
15223
|
+
writer.writeEnum(
|
|
15224
|
+
6,
|
|
15225
|
+
f
|
|
15226
|
+
);
|
|
15227
|
+
}
|
|
15228
|
+
f = message.getTsdMethod();
|
|
15229
|
+
if (f !== 0.0) {
|
|
15230
|
+
writer.writeEnum(
|
|
15231
|
+
7,
|
|
15232
|
+
f
|
|
15233
|
+
);
|
|
15234
|
+
}
|
|
15137
15235
|
};
|
|
15138
15236
|
|
|
15139
15237
|
|
|
@@ -15210,6 +15308,116 @@ proto.ondewo.s2t.VoiceActivityDetection.prototype.hasPyannote = function() {
|
|
|
15210
15308
|
};
|
|
15211
15309
|
|
|
15212
15310
|
|
|
15311
|
+
/**
|
|
15312
|
+
* optional Silero silero = 4;
|
|
15313
|
+
* @return {?proto.ondewo.s2t.Silero}
|
|
15314
|
+
*/
|
|
15315
|
+
proto.ondewo.s2t.VoiceActivityDetection.prototype.getSilero = function() {
|
|
15316
|
+
return /** @type{?proto.ondewo.s2t.Silero} */ (
|
|
15317
|
+
jspb.Message.getWrapperField(this, proto.ondewo.s2t.Silero, 4));
|
|
15318
|
+
};
|
|
15319
|
+
|
|
15320
|
+
|
|
15321
|
+
/**
|
|
15322
|
+
* @param {?proto.ondewo.s2t.Silero|undefined} value
|
|
15323
|
+
* @return {!proto.ondewo.s2t.VoiceActivityDetection} returns this
|
|
15324
|
+
*/
|
|
15325
|
+
proto.ondewo.s2t.VoiceActivityDetection.prototype.setSilero = function(value) {
|
|
15326
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
15327
|
+
};
|
|
15328
|
+
|
|
15329
|
+
|
|
15330
|
+
/**
|
|
15331
|
+
* Clears the message field making it undefined.
|
|
15332
|
+
* @return {!proto.ondewo.s2t.VoiceActivityDetection} returns this
|
|
15333
|
+
*/
|
|
15334
|
+
proto.ondewo.s2t.VoiceActivityDetection.prototype.clearSilero = function() {
|
|
15335
|
+
return this.setSilero(undefined);
|
|
15336
|
+
};
|
|
15337
|
+
|
|
15338
|
+
|
|
15339
|
+
/**
|
|
15340
|
+
* Returns whether this field is set.
|
|
15341
|
+
* @return {boolean}
|
|
15342
|
+
*/
|
|
15343
|
+
proto.ondewo.s2t.VoiceActivityDetection.prototype.hasSilero = function() {
|
|
15344
|
+
return jspb.Message.getField(this, 4) != null;
|
|
15345
|
+
};
|
|
15346
|
+
|
|
15347
|
+
|
|
15348
|
+
/**
|
|
15349
|
+
* optional WespeakerTsd wespeaker_tsd = 5;
|
|
15350
|
+
* @return {?proto.ondewo.s2t.WespeakerTsd}
|
|
15351
|
+
*/
|
|
15352
|
+
proto.ondewo.s2t.VoiceActivityDetection.prototype.getWespeakerTsd = function() {
|
|
15353
|
+
return /** @type{?proto.ondewo.s2t.WespeakerTsd} */ (
|
|
15354
|
+
jspb.Message.getWrapperField(this, proto.ondewo.s2t.WespeakerTsd, 5));
|
|
15355
|
+
};
|
|
15356
|
+
|
|
15357
|
+
|
|
15358
|
+
/**
|
|
15359
|
+
* @param {?proto.ondewo.s2t.WespeakerTsd|undefined} value
|
|
15360
|
+
* @return {!proto.ondewo.s2t.VoiceActivityDetection} returns this
|
|
15361
|
+
*/
|
|
15362
|
+
proto.ondewo.s2t.VoiceActivityDetection.prototype.setWespeakerTsd = function(value) {
|
|
15363
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
15364
|
+
};
|
|
15365
|
+
|
|
15366
|
+
|
|
15367
|
+
/**
|
|
15368
|
+
* Clears the message field making it undefined.
|
|
15369
|
+
* @return {!proto.ondewo.s2t.VoiceActivityDetection} returns this
|
|
15370
|
+
*/
|
|
15371
|
+
proto.ondewo.s2t.VoiceActivityDetection.prototype.clearWespeakerTsd = function() {
|
|
15372
|
+
return this.setWespeakerTsd(undefined);
|
|
15373
|
+
};
|
|
15374
|
+
|
|
15375
|
+
|
|
15376
|
+
/**
|
|
15377
|
+
* Returns whether this field is set.
|
|
15378
|
+
* @return {boolean}
|
|
15379
|
+
*/
|
|
15380
|
+
proto.ondewo.s2t.VoiceActivityDetection.prototype.hasWespeakerTsd = function() {
|
|
15381
|
+
return jspb.Message.getField(this, 5) != null;
|
|
15382
|
+
};
|
|
15383
|
+
|
|
15384
|
+
|
|
15385
|
+
/**
|
|
15386
|
+
* optional VadMethod vad_method = 6;
|
|
15387
|
+
* @return {!proto.ondewo.s2t.VadMethod}
|
|
15388
|
+
*/
|
|
15389
|
+
proto.ondewo.s2t.VoiceActivityDetection.prototype.getVadMethod = function() {
|
|
15390
|
+
return /** @type {!proto.ondewo.s2t.VadMethod} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
15391
|
+
};
|
|
15392
|
+
|
|
15393
|
+
|
|
15394
|
+
/**
|
|
15395
|
+
* @param {!proto.ondewo.s2t.VadMethod} value
|
|
15396
|
+
* @return {!proto.ondewo.s2t.VoiceActivityDetection} returns this
|
|
15397
|
+
*/
|
|
15398
|
+
proto.ondewo.s2t.VoiceActivityDetection.prototype.setVadMethod = function(value) {
|
|
15399
|
+
return jspb.Message.setProto3EnumField(this, 6, value);
|
|
15400
|
+
};
|
|
15401
|
+
|
|
15402
|
+
|
|
15403
|
+
/**
|
|
15404
|
+
* optional TsdMethod tsd_method = 7;
|
|
15405
|
+
* @return {!proto.ondewo.s2t.TsdMethod}
|
|
15406
|
+
*/
|
|
15407
|
+
proto.ondewo.s2t.VoiceActivityDetection.prototype.getTsdMethod = function() {
|
|
15408
|
+
return /** @type {!proto.ondewo.s2t.TsdMethod} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
15409
|
+
};
|
|
15410
|
+
|
|
15411
|
+
|
|
15412
|
+
/**
|
|
15413
|
+
* @param {!proto.ondewo.s2t.TsdMethod} value
|
|
15414
|
+
* @return {!proto.ondewo.s2t.VoiceActivityDetection} returns this
|
|
15415
|
+
*/
|
|
15416
|
+
proto.ondewo.s2t.VoiceActivityDetection.prototype.setTsdMethod = function(value) {
|
|
15417
|
+
return jspb.Message.setProto3EnumField(this, 7, value);
|
|
15418
|
+
};
|
|
15419
|
+
|
|
15420
|
+
|
|
15213
15421
|
|
|
15214
15422
|
|
|
15215
15423
|
|
|
@@ -15491,13 +15699,6 @@ proto.ondewo.s2t.Pyannote.prototype.setTritonServerPort = function(value) {
|
|
|
15491
15699
|
|
|
15492
15700
|
|
|
15493
15701
|
|
|
15494
|
-
/**
|
|
15495
|
-
* List of repeated fields within this message type.
|
|
15496
|
-
* @private {!Array<number>}
|
|
15497
|
-
* @const
|
|
15498
|
-
*/
|
|
15499
|
-
proto.ondewo.s2t.PostProcessing.repeatedFields_ = [1];
|
|
15500
|
-
|
|
15501
15702
|
|
|
15502
15703
|
|
|
15503
15704
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -15513,8 +15714,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
15513
15714
|
* http://goto/soy-param-migration
|
|
15514
15715
|
* @return {!Object}
|
|
15515
15716
|
*/
|
|
15516
|
-
proto.ondewo.s2t.
|
|
15517
|
-
return proto.ondewo.s2t.
|
|
15717
|
+
proto.ondewo.s2t.Silero.prototype.toObject = function(opt_includeInstance) {
|
|
15718
|
+
return proto.ondewo.s2t.Silero.toObject(opt_includeInstance, this);
|
|
15518
15719
|
};
|
|
15519
15720
|
|
|
15520
15721
|
|
|
@@ -15523,14 +15724,20 @@ proto.ondewo.s2t.PostProcessing.prototype.toObject = function(opt_includeInstanc
|
|
|
15523
15724
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
15524
15725
|
* the JSPB instance for transitional soy proto support:
|
|
15525
15726
|
* http://goto/soy-param-migration
|
|
15526
|
-
* @param {!proto.ondewo.s2t.
|
|
15727
|
+
* @param {!proto.ondewo.s2t.Silero} msg The msg instance to transform.
|
|
15527
15728
|
* @return {!Object}
|
|
15528
15729
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15529
15730
|
*/
|
|
15530
|
-
proto.ondewo.s2t.
|
|
15731
|
+
proto.ondewo.s2t.Silero.toObject = function(includeInstance, msg) {
|
|
15531
15732
|
var f, obj = {
|
|
15532
|
-
|
|
15533
|
-
|
|
15733
|
+
modelName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
15734
|
+
minAudioSize: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
15735
|
+
threshold: (f = jspb.Message.getOptionalFloatingPointField(msg, 3)) == null ? undefined : f,
|
|
15736
|
+
minSpeechDurationMs: (f = jspb.Message.getOptionalFloatingPointField(msg, 4)) == null ? undefined : f,
|
|
15737
|
+
minSilenceDurationMs: (f = jspb.Message.getOptionalFloatingPointField(msg, 5)) == null ? undefined : f,
|
|
15738
|
+
speechPadMs: (f = jspb.Message.getOptionalFloatingPointField(msg, 6)) == null ? undefined : f,
|
|
15739
|
+
tritonServerHost: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
15740
|
+
tritonServerPort: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
15534
15741
|
};
|
|
15535
15742
|
|
|
15536
15743
|
if (includeInstance) {
|
|
@@ -15544,23 +15751,23 @@ postProcessors: (f = msg.getPostProcessors()) && proto.ondewo.s2t.PostProcessors
|
|
|
15544
15751
|
/**
|
|
15545
15752
|
* Deserializes binary data (in protobuf wire format).
|
|
15546
15753
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
15547
|
-
* @return {!proto.ondewo.s2t.
|
|
15754
|
+
* @return {!proto.ondewo.s2t.Silero}
|
|
15548
15755
|
*/
|
|
15549
|
-
proto.ondewo.s2t.
|
|
15756
|
+
proto.ondewo.s2t.Silero.deserializeBinary = function(bytes) {
|
|
15550
15757
|
var reader = new jspb.BinaryReader(bytes);
|
|
15551
|
-
var msg = new proto.ondewo.s2t.
|
|
15552
|
-
return proto.ondewo.s2t.
|
|
15758
|
+
var msg = new proto.ondewo.s2t.Silero;
|
|
15759
|
+
return proto.ondewo.s2t.Silero.deserializeBinaryFromReader(msg, reader);
|
|
15553
15760
|
};
|
|
15554
15761
|
|
|
15555
15762
|
|
|
15556
15763
|
/**
|
|
15557
15764
|
* Deserializes binary data (in protobuf wire format) from the
|
|
15558
15765
|
* given reader into the given message object.
|
|
15559
|
-
* @param {!proto.ondewo.s2t.
|
|
15766
|
+
* @param {!proto.ondewo.s2t.Silero} msg The message object to deserialize into.
|
|
15560
15767
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
15561
|
-
* @return {!proto.ondewo.s2t.
|
|
15768
|
+
* @return {!proto.ondewo.s2t.Silero}
|
|
15562
15769
|
*/
|
|
15563
|
-
proto.ondewo.s2t.
|
|
15770
|
+
proto.ondewo.s2t.Silero.deserializeBinaryFromReader = function(msg, reader) {
|
|
15564
15771
|
while (reader.nextField()) {
|
|
15565
15772
|
if (reader.isEndGroup()) {
|
|
15566
15773
|
break;
|
|
@@ -15569,12 +15776,35 @@ proto.ondewo.s2t.PostProcessing.deserializeBinaryFromReader = function(msg, read
|
|
|
15569
15776
|
switch (field) {
|
|
15570
15777
|
case 1:
|
|
15571
15778
|
var value = /** @type {string} */ (reader.readString());
|
|
15572
|
-
msg.
|
|
15779
|
+
msg.setModelName(value);
|
|
15573
15780
|
break;
|
|
15574
15781
|
case 2:
|
|
15575
|
-
var value =
|
|
15576
|
-
|
|
15577
|
-
|
|
15782
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
15783
|
+
msg.setMinAudioSize(value);
|
|
15784
|
+
break;
|
|
15785
|
+
case 3:
|
|
15786
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
15787
|
+
msg.setThreshold(value);
|
|
15788
|
+
break;
|
|
15789
|
+
case 4:
|
|
15790
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
15791
|
+
msg.setMinSpeechDurationMs(value);
|
|
15792
|
+
break;
|
|
15793
|
+
case 5:
|
|
15794
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
15795
|
+
msg.setMinSilenceDurationMs(value);
|
|
15796
|
+
break;
|
|
15797
|
+
case 6:
|
|
15798
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
15799
|
+
msg.setSpeechPadMs(value);
|
|
15800
|
+
break;
|
|
15801
|
+
case 7:
|
|
15802
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15803
|
+
msg.setTritonServerHost(value);
|
|
15804
|
+
break;
|
|
15805
|
+
case 8:
|
|
15806
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
15807
|
+
msg.setTritonServerPort(value);
|
|
15578
15808
|
break;
|
|
15579
15809
|
default:
|
|
15580
15810
|
reader.skipField();
|
|
@@ -15589,9 +15819,9 @@ proto.ondewo.s2t.PostProcessing.deserializeBinaryFromReader = function(msg, read
|
|
|
15589
15819
|
* Serializes the message to binary data (in protobuf wire format).
|
|
15590
15820
|
* @return {!Uint8Array}
|
|
15591
15821
|
*/
|
|
15592
|
-
proto.ondewo.s2t.
|
|
15822
|
+
proto.ondewo.s2t.Silero.prototype.serializeBinary = function() {
|
|
15593
15823
|
var writer = new jspb.BinaryWriter();
|
|
15594
|
-
proto.ondewo.s2t.
|
|
15824
|
+
proto.ondewo.s2t.Silero.serializeBinaryToWriter(this, writer);
|
|
15595
15825
|
return writer.getResultBuffer();
|
|
15596
15826
|
};
|
|
15597
15827
|
|
|
@@ -15599,33 +15829,769 @@ proto.ondewo.s2t.PostProcessing.prototype.serializeBinary = function() {
|
|
|
15599
15829
|
/**
|
|
15600
15830
|
* Serializes the given message to binary data (in protobuf wire
|
|
15601
15831
|
* format), writing to the given BinaryWriter.
|
|
15602
|
-
* @param {!proto.ondewo.s2t.
|
|
15832
|
+
* @param {!proto.ondewo.s2t.Silero} message
|
|
15603
15833
|
* @param {!jspb.BinaryWriter} writer
|
|
15604
15834
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15605
15835
|
*/
|
|
15606
|
-
proto.ondewo.s2t.
|
|
15836
|
+
proto.ondewo.s2t.Silero.serializeBinaryToWriter = function(message, writer) {
|
|
15607
15837
|
var f = undefined;
|
|
15608
|
-
f = message.
|
|
15838
|
+
f = message.getModelName();
|
|
15609
15839
|
if (f.length > 0) {
|
|
15610
|
-
writer.
|
|
15840
|
+
writer.writeString(
|
|
15611
15841
|
1,
|
|
15612
15842
|
f
|
|
15613
15843
|
);
|
|
15614
15844
|
}
|
|
15615
|
-
f = message.
|
|
15616
|
-
if (f
|
|
15617
|
-
writer.
|
|
15845
|
+
f = message.getMinAudioSize();
|
|
15846
|
+
if (f !== 0) {
|
|
15847
|
+
writer.writeInt64(
|
|
15618
15848
|
2,
|
|
15619
|
-
f
|
|
15620
|
-
|
|
15849
|
+
f
|
|
15850
|
+
);
|
|
15851
|
+
}
|
|
15852
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
15853
|
+
if (f != null) {
|
|
15854
|
+
writer.writeFloat(
|
|
15855
|
+
3,
|
|
15856
|
+
f
|
|
15857
|
+
);
|
|
15858
|
+
}
|
|
15859
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
|
15860
|
+
if (f != null) {
|
|
15861
|
+
writer.writeFloat(
|
|
15862
|
+
4,
|
|
15863
|
+
f
|
|
15864
|
+
);
|
|
15865
|
+
}
|
|
15866
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
|
15867
|
+
if (f != null) {
|
|
15868
|
+
writer.writeFloat(
|
|
15869
|
+
5,
|
|
15870
|
+
f
|
|
15871
|
+
);
|
|
15872
|
+
}
|
|
15873
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
|
15874
|
+
if (f != null) {
|
|
15875
|
+
writer.writeFloat(
|
|
15876
|
+
6,
|
|
15877
|
+
f
|
|
15878
|
+
);
|
|
15879
|
+
}
|
|
15880
|
+
f = message.getTritonServerHost();
|
|
15881
|
+
if (f.length > 0) {
|
|
15882
|
+
writer.writeString(
|
|
15883
|
+
7,
|
|
15884
|
+
f
|
|
15885
|
+
);
|
|
15886
|
+
}
|
|
15887
|
+
f = message.getTritonServerPort();
|
|
15888
|
+
if (f !== 0) {
|
|
15889
|
+
writer.writeInt64(
|
|
15890
|
+
8,
|
|
15891
|
+
f
|
|
15621
15892
|
);
|
|
15622
15893
|
}
|
|
15623
15894
|
};
|
|
15624
15895
|
|
|
15625
15896
|
|
|
15626
15897
|
/**
|
|
15627
|
-
*
|
|
15628
|
-
* @return {
|
|
15898
|
+
* optional string model_name = 1;
|
|
15899
|
+
* @return {string}
|
|
15900
|
+
*/
|
|
15901
|
+
proto.ondewo.s2t.Silero.prototype.getModelName = function() {
|
|
15902
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
15903
|
+
};
|
|
15904
|
+
|
|
15905
|
+
|
|
15906
|
+
/**
|
|
15907
|
+
* @param {string} value
|
|
15908
|
+
* @return {!proto.ondewo.s2t.Silero} returns this
|
|
15909
|
+
*/
|
|
15910
|
+
proto.ondewo.s2t.Silero.prototype.setModelName = function(value) {
|
|
15911
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
15912
|
+
};
|
|
15913
|
+
|
|
15914
|
+
|
|
15915
|
+
/**
|
|
15916
|
+
* optional int64 min_audio_size = 2;
|
|
15917
|
+
* @return {number}
|
|
15918
|
+
*/
|
|
15919
|
+
proto.ondewo.s2t.Silero.prototype.getMinAudioSize = function() {
|
|
15920
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
15921
|
+
};
|
|
15922
|
+
|
|
15923
|
+
|
|
15924
|
+
/**
|
|
15925
|
+
* @param {number} value
|
|
15926
|
+
* @return {!proto.ondewo.s2t.Silero} returns this
|
|
15927
|
+
*/
|
|
15928
|
+
proto.ondewo.s2t.Silero.prototype.setMinAudioSize = function(value) {
|
|
15929
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
15930
|
+
};
|
|
15931
|
+
|
|
15932
|
+
|
|
15933
|
+
/**
|
|
15934
|
+
* optional float threshold = 3;
|
|
15935
|
+
* @return {number}
|
|
15936
|
+
*/
|
|
15937
|
+
proto.ondewo.s2t.Silero.prototype.getThreshold = function() {
|
|
15938
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
15939
|
+
};
|
|
15940
|
+
|
|
15941
|
+
|
|
15942
|
+
/**
|
|
15943
|
+
* @param {number} value
|
|
15944
|
+
* @return {!proto.ondewo.s2t.Silero} returns this
|
|
15945
|
+
*/
|
|
15946
|
+
proto.ondewo.s2t.Silero.prototype.setThreshold = function(value) {
|
|
15947
|
+
return jspb.Message.setField(this, 3, value);
|
|
15948
|
+
};
|
|
15949
|
+
|
|
15950
|
+
|
|
15951
|
+
/**
|
|
15952
|
+
* Clears the field making it undefined.
|
|
15953
|
+
* @return {!proto.ondewo.s2t.Silero} returns this
|
|
15954
|
+
*/
|
|
15955
|
+
proto.ondewo.s2t.Silero.prototype.clearThreshold = function() {
|
|
15956
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
15957
|
+
};
|
|
15958
|
+
|
|
15959
|
+
|
|
15960
|
+
/**
|
|
15961
|
+
* Returns whether this field is set.
|
|
15962
|
+
* @return {boolean}
|
|
15963
|
+
*/
|
|
15964
|
+
proto.ondewo.s2t.Silero.prototype.hasThreshold = function() {
|
|
15965
|
+
return jspb.Message.getField(this, 3) != null;
|
|
15966
|
+
};
|
|
15967
|
+
|
|
15968
|
+
|
|
15969
|
+
/**
|
|
15970
|
+
* optional float min_speech_duration_ms = 4;
|
|
15971
|
+
* @return {number}
|
|
15972
|
+
*/
|
|
15973
|
+
proto.ondewo.s2t.Silero.prototype.getMinSpeechDurationMs = function() {
|
|
15974
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
|
15975
|
+
};
|
|
15976
|
+
|
|
15977
|
+
|
|
15978
|
+
/**
|
|
15979
|
+
* @param {number} value
|
|
15980
|
+
* @return {!proto.ondewo.s2t.Silero} returns this
|
|
15981
|
+
*/
|
|
15982
|
+
proto.ondewo.s2t.Silero.prototype.setMinSpeechDurationMs = function(value) {
|
|
15983
|
+
return jspb.Message.setField(this, 4, value);
|
|
15984
|
+
};
|
|
15985
|
+
|
|
15986
|
+
|
|
15987
|
+
/**
|
|
15988
|
+
* Clears the field making it undefined.
|
|
15989
|
+
* @return {!proto.ondewo.s2t.Silero} returns this
|
|
15990
|
+
*/
|
|
15991
|
+
proto.ondewo.s2t.Silero.prototype.clearMinSpeechDurationMs = function() {
|
|
15992
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
15993
|
+
};
|
|
15994
|
+
|
|
15995
|
+
|
|
15996
|
+
/**
|
|
15997
|
+
* Returns whether this field is set.
|
|
15998
|
+
* @return {boolean}
|
|
15999
|
+
*/
|
|
16000
|
+
proto.ondewo.s2t.Silero.prototype.hasMinSpeechDurationMs = function() {
|
|
16001
|
+
return jspb.Message.getField(this, 4) != null;
|
|
16002
|
+
};
|
|
16003
|
+
|
|
16004
|
+
|
|
16005
|
+
/**
|
|
16006
|
+
* optional float min_silence_duration_ms = 5;
|
|
16007
|
+
* @return {number}
|
|
16008
|
+
*/
|
|
16009
|
+
proto.ondewo.s2t.Silero.prototype.getMinSilenceDurationMs = function() {
|
|
16010
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
16011
|
+
};
|
|
16012
|
+
|
|
16013
|
+
|
|
16014
|
+
/**
|
|
16015
|
+
* @param {number} value
|
|
16016
|
+
* @return {!proto.ondewo.s2t.Silero} returns this
|
|
16017
|
+
*/
|
|
16018
|
+
proto.ondewo.s2t.Silero.prototype.setMinSilenceDurationMs = function(value) {
|
|
16019
|
+
return jspb.Message.setField(this, 5, value);
|
|
16020
|
+
};
|
|
16021
|
+
|
|
16022
|
+
|
|
16023
|
+
/**
|
|
16024
|
+
* Clears the field making it undefined.
|
|
16025
|
+
* @return {!proto.ondewo.s2t.Silero} returns this
|
|
16026
|
+
*/
|
|
16027
|
+
proto.ondewo.s2t.Silero.prototype.clearMinSilenceDurationMs = function() {
|
|
16028
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
16029
|
+
};
|
|
16030
|
+
|
|
16031
|
+
|
|
16032
|
+
/**
|
|
16033
|
+
* Returns whether this field is set.
|
|
16034
|
+
* @return {boolean}
|
|
16035
|
+
*/
|
|
16036
|
+
proto.ondewo.s2t.Silero.prototype.hasMinSilenceDurationMs = function() {
|
|
16037
|
+
return jspb.Message.getField(this, 5) != null;
|
|
16038
|
+
};
|
|
16039
|
+
|
|
16040
|
+
|
|
16041
|
+
/**
|
|
16042
|
+
* optional float speech_pad_ms = 6;
|
|
16043
|
+
* @return {number}
|
|
16044
|
+
*/
|
|
16045
|
+
proto.ondewo.s2t.Silero.prototype.getSpeechPadMs = function() {
|
|
16046
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
|
16047
|
+
};
|
|
16048
|
+
|
|
16049
|
+
|
|
16050
|
+
/**
|
|
16051
|
+
* @param {number} value
|
|
16052
|
+
* @return {!proto.ondewo.s2t.Silero} returns this
|
|
16053
|
+
*/
|
|
16054
|
+
proto.ondewo.s2t.Silero.prototype.setSpeechPadMs = function(value) {
|
|
16055
|
+
return jspb.Message.setField(this, 6, value);
|
|
16056
|
+
};
|
|
16057
|
+
|
|
16058
|
+
|
|
16059
|
+
/**
|
|
16060
|
+
* Clears the field making it undefined.
|
|
16061
|
+
* @return {!proto.ondewo.s2t.Silero} returns this
|
|
16062
|
+
*/
|
|
16063
|
+
proto.ondewo.s2t.Silero.prototype.clearSpeechPadMs = function() {
|
|
16064
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
16065
|
+
};
|
|
16066
|
+
|
|
16067
|
+
|
|
16068
|
+
/**
|
|
16069
|
+
* Returns whether this field is set.
|
|
16070
|
+
* @return {boolean}
|
|
16071
|
+
*/
|
|
16072
|
+
proto.ondewo.s2t.Silero.prototype.hasSpeechPadMs = function() {
|
|
16073
|
+
return jspb.Message.getField(this, 6) != null;
|
|
16074
|
+
};
|
|
16075
|
+
|
|
16076
|
+
|
|
16077
|
+
/**
|
|
16078
|
+
* optional string triton_server_host = 7;
|
|
16079
|
+
* @return {string}
|
|
16080
|
+
*/
|
|
16081
|
+
proto.ondewo.s2t.Silero.prototype.getTritonServerHost = function() {
|
|
16082
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
16083
|
+
};
|
|
16084
|
+
|
|
16085
|
+
|
|
16086
|
+
/**
|
|
16087
|
+
* @param {string} value
|
|
16088
|
+
* @return {!proto.ondewo.s2t.Silero} returns this
|
|
16089
|
+
*/
|
|
16090
|
+
proto.ondewo.s2t.Silero.prototype.setTritonServerHost = function(value) {
|
|
16091
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
16092
|
+
};
|
|
16093
|
+
|
|
16094
|
+
|
|
16095
|
+
/**
|
|
16096
|
+
* optional int64 triton_server_port = 8;
|
|
16097
|
+
* @return {number}
|
|
16098
|
+
*/
|
|
16099
|
+
proto.ondewo.s2t.Silero.prototype.getTritonServerPort = function() {
|
|
16100
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
16101
|
+
};
|
|
16102
|
+
|
|
16103
|
+
|
|
16104
|
+
/**
|
|
16105
|
+
* @param {number} value
|
|
16106
|
+
* @return {!proto.ondewo.s2t.Silero} returns this
|
|
16107
|
+
*/
|
|
16108
|
+
proto.ondewo.s2t.Silero.prototype.setTritonServerPort = function(value) {
|
|
16109
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
16110
|
+
};
|
|
16111
|
+
|
|
16112
|
+
|
|
16113
|
+
|
|
16114
|
+
|
|
16115
|
+
|
|
16116
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
16117
|
+
/**
|
|
16118
|
+
* Creates an object representation of this proto.
|
|
16119
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
16120
|
+
* Optional fields that are not set will be set to undefined.
|
|
16121
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
16122
|
+
* For the list of reserved names please see:
|
|
16123
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
16124
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
16125
|
+
* JSPB instance for transitional soy proto support:
|
|
16126
|
+
* http://goto/soy-param-migration
|
|
16127
|
+
* @return {!Object}
|
|
16128
|
+
*/
|
|
16129
|
+
proto.ondewo.s2t.WespeakerTsd.prototype.toObject = function(opt_includeInstance) {
|
|
16130
|
+
return proto.ondewo.s2t.WespeakerTsd.toObject(opt_includeInstance, this);
|
|
16131
|
+
};
|
|
16132
|
+
|
|
16133
|
+
|
|
16134
|
+
/**
|
|
16135
|
+
* Static version of the {@see toObject} method.
|
|
16136
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
16137
|
+
* the JSPB instance for transitional soy proto support:
|
|
16138
|
+
* http://goto/soy-param-migration
|
|
16139
|
+
* @param {!proto.ondewo.s2t.WespeakerTsd} msg The msg instance to transform.
|
|
16140
|
+
* @return {!Object}
|
|
16141
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
16142
|
+
*/
|
|
16143
|
+
proto.ondewo.s2t.WespeakerTsd.toObject = function(includeInstance, msg) {
|
|
16144
|
+
var f, obj = {
|
|
16145
|
+
active: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
16146
|
+
modelName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
16147
|
+
tritonServerHost: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
16148
|
+
tritonServerPort: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
16149
|
+
similarityThreshold: (f = jspb.Message.getOptionalFloatingPointField(msg, 5)) == null ? undefined : f,
|
|
16150
|
+
minAudioLength: (f = jspb.Message.getOptionalFloatingPointField(msg, 6)) == null ? undefined : f,
|
|
16151
|
+
referenceMaxLength: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0)
|
|
16152
|
+
};
|
|
16153
|
+
|
|
16154
|
+
if (includeInstance) {
|
|
16155
|
+
obj.$jspbMessageInstance = msg;
|
|
16156
|
+
}
|
|
16157
|
+
return obj;
|
|
16158
|
+
};
|
|
16159
|
+
}
|
|
16160
|
+
|
|
16161
|
+
|
|
16162
|
+
/**
|
|
16163
|
+
* Deserializes binary data (in protobuf wire format).
|
|
16164
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
16165
|
+
* @return {!proto.ondewo.s2t.WespeakerTsd}
|
|
16166
|
+
*/
|
|
16167
|
+
proto.ondewo.s2t.WespeakerTsd.deserializeBinary = function(bytes) {
|
|
16168
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
16169
|
+
var msg = new proto.ondewo.s2t.WespeakerTsd;
|
|
16170
|
+
return proto.ondewo.s2t.WespeakerTsd.deserializeBinaryFromReader(msg, reader);
|
|
16171
|
+
};
|
|
16172
|
+
|
|
16173
|
+
|
|
16174
|
+
/**
|
|
16175
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
16176
|
+
* given reader into the given message object.
|
|
16177
|
+
* @param {!proto.ondewo.s2t.WespeakerTsd} msg The message object to deserialize into.
|
|
16178
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
16179
|
+
* @return {!proto.ondewo.s2t.WespeakerTsd}
|
|
16180
|
+
*/
|
|
16181
|
+
proto.ondewo.s2t.WespeakerTsd.deserializeBinaryFromReader = function(msg, reader) {
|
|
16182
|
+
while (reader.nextField()) {
|
|
16183
|
+
if (reader.isEndGroup()) {
|
|
16184
|
+
break;
|
|
16185
|
+
}
|
|
16186
|
+
var field = reader.getFieldNumber();
|
|
16187
|
+
switch (field) {
|
|
16188
|
+
case 1:
|
|
16189
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
16190
|
+
msg.setActive(value);
|
|
16191
|
+
break;
|
|
16192
|
+
case 2:
|
|
16193
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16194
|
+
msg.setModelName(value);
|
|
16195
|
+
break;
|
|
16196
|
+
case 3:
|
|
16197
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16198
|
+
msg.setTritonServerHost(value);
|
|
16199
|
+
break;
|
|
16200
|
+
case 4:
|
|
16201
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
16202
|
+
msg.setTritonServerPort(value);
|
|
16203
|
+
break;
|
|
16204
|
+
case 5:
|
|
16205
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
16206
|
+
msg.setSimilarityThreshold(value);
|
|
16207
|
+
break;
|
|
16208
|
+
case 6:
|
|
16209
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
16210
|
+
msg.setMinAudioLength(value);
|
|
16211
|
+
break;
|
|
16212
|
+
case 7:
|
|
16213
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
16214
|
+
msg.setReferenceMaxLength(value);
|
|
16215
|
+
break;
|
|
16216
|
+
default:
|
|
16217
|
+
reader.skipField();
|
|
16218
|
+
break;
|
|
16219
|
+
}
|
|
16220
|
+
}
|
|
16221
|
+
return msg;
|
|
16222
|
+
};
|
|
16223
|
+
|
|
16224
|
+
|
|
16225
|
+
/**
|
|
16226
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
16227
|
+
* @return {!Uint8Array}
|
|
16228
|
+
*/
|
|
16229
|
+
proto.ondewo.s2t.WespeakerTsd.prototype.serializeBinary = function() {
|
|
16230
|
+
var writer = new jspb.BinaryWriter();
|
|
16231
|
+
proto.ondewo.s2t.WespeakerTsd.serializeBinaryToWriter(this, writer);
|
|
16232
|
+
return writer.getResultBuffer();
|
|
16233
|
+
};
|
|
16234
|
+
|
|
16235
|
+
|
|
16236
|
+
/**
|
|
16237
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
16238
|
+
* format), writing to the given BinaryWriter.
|
|
16239
|
+
* @param {!proto.ondewo.s2t.WespeakerTsd} message
|
|
16240
|
+
* @param {!jspb.BinaryWriter} writer
|
|
16241
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
16242
|
+
*/
|
|
16243
|
+
proto.ondewo.s2t.WespeakerTsd.serializeBinaryToWriter = function(message, writer) {
|
|
16244
|
+
var f = undefined;
|
|
16245
|
+
f = message.getActive();
|
|
16246
|
+
if (f) {
|
|
16247
|
+
writer.writeBool(
|
|
16248
|
+
1,
|
|
16249
|
+
f
|
|
16250
|
+
);
|
|
16251
|
+
}
|
|
16252
|
+
f = message.getModelName();
|
|
16253
|
+
if (f.length > 0) {
|
|
16254
|
+
writer.writeString(
|
|
16255
|
+
2,
|
|
16256
|
+
f
|
|
16257
|
+
);
|
|
16258
|
+
}
|
|
16259
|
+
f = message.getTritonServerHost();
|
|
16260
|
+
if (f.length > 0) {
|
|
16261
|
+
writer.writeString(
|
|
16262
|
+
3,
|
|
16263
|
+
f
|
|
16264
|
+
);
|
|
16265
|
+
}
|
|
16266
|
+
f = message.getTritonServerPort();
|
|
16267
|
+
if (f !== 0) {
|
|
16268
|
+
writer.writeInt64(
|
|
16269
|
+
4,
|
|
16270
|
+
f
|
|
16271
|
+
);
|
|
16272
|
+
}
|
|
16273
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
|
16274
|
+
if (f != null) {
|
|
16275
|
+
writer.writeFloat(
|
|
16276
|
+
5,
|
|
16277
|
+
f
|
|
16278
|
+
);
|
|
16279
|
+
}
|
|
16280
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
|
16281
|
+
if (f != null) {
|
|
16282
|
+
writer.writeFloat(
|
|
16283
|
+
6,
|
|
16284
|
+
f
|
|
16285
|
+
);
|
|
16286
|
+
}
|
|
16287
|
+
f = message.getReferenceMaxLength();
|
|
16288
|
+
if (f !== 0.0) {
|
|
16289
|
+
writer.writeFloat(
|
|
16290
|
+
7,
|
|
16291
|
+
f
|
|
16292
|
+
);
|
|
16293
|
+
}
|
|
16294
|
+
};
|
|
16295
|
+
|
|
16296
|
+
|
|
16297
|
+
/**
|
|
16298
|
+
* optional bool active = 1;
|
|
16299
|
+
* @return {boolean}
|
|
16300
|
+
*/
|
|
16301
|
+
proto.ondewo.s2t.WespeakerTsd.prototype.getActive = function() {
|
|
16302
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
16303
|
+
};
|
|
16304
|
+
|
|
16305
|
+
|
|
16306
|
+
/**
|
|
16307
|
+
* @param {boolean} value
|
|
16308
|
+
* @return {!proto.ondewo.s2t.WespeakerTsd} returns this
|
|
16309
|
+
*/
|
|
16310
|
+
proto.ondewo.s2t.WespeakerTsd.prototype.setActive = function(value) {
|
|
16311
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
16312
|
+
};
|
|
16313
|
+
|
|
16314
|
+
|
|
16315
|
+
/**
|
|
16316
|
+
* optional string model_name = 2;
|
|
16317
|
+
* @return {string}
|
|
16318
|
+
*/
|
|
16319
|
+
proto.ondewo.s2t.WespeakerTsd.prototype.getModelName = function() {
|
|
16320
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
16321
|
+
};
|
|
16322
|
+
|
|
16323
|
+
|
|
16324
|
+
/**
|
|
16325
|
+
* @param {string} value
|
|
16326
|
+
* @return {!proto.ondewo.s2t.WespeakerTsd} returns this
|
|
16327
|
+
*/
|
|
16328
|
+
proto.ondewo.s2t.WespeakerTsd.prototype.setModelName = function(value) {
|
|
16329
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
16330
|
+
};
|
|
16331
|
+
|
|
16332
|
+
|
|
16333
|
+
/**
|
|
16334
|
+
* optional string triton_server_host = 3;
|
|
16335
|
+
* @return {string}
|
|
16336
|
+
*/
|
|
16337
|
+
proto.ondewo.s2t.WespeakerTsd.prototype.getTritonServerHost = function() {
|
|
16338
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
16339
|
+
};
|
|
16340
|
+
|
|
16341
|
+
|
|
16342
|
+
/**
|
|
16343
|
+
* @param {string} value
|
|
16344
|
+
* @return {!proto.ondewo.s2t.WespeakerTsd} returns this
|
|
16345
|
+
*/
|
|
16346
|
+
proto.ondewo.s2t.WespeakerTsd.prototype.setTritonServerHost = function(value) {
|
|
16347
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
16348
|
+
};
|
|
16349
|
+
|
|
16350
|
+
|
|
16351
|
+
/**
|
|
16352
|
+
* optional int64 triton_server_port = 4;
|
|
16353
|
+
* @return {number}
|
|
16354
|
+
*/
|
|
16355
|
+
proto.ondewo.s2t.WespeakerTsd.prototype.getTritonServerPort = function() {
|
|
16356
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
16357
|
+
};
|
|
16358
|
+
|
|
16359
|
+
|
|
16360
|
+
/**
|
|
16361
|
+
* @param {number} value
|
|
16362
|
+
* @return {!proto.ondewo.s2t.WespeakerTsd} returns this
|
|
16363
|
+
*/
|
|
16364
|
+
proto.ondewo.s2t.WespeakerTsd.prototype.setTritonServerPort = function(value) {
|
|
16365
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
16366
|
+
};
|
|
16367
|
+
|
|
16368
|
+
|
|
16369
|
+
/**
|
|
16370
|
+
* optional float similarity_threshold = 5;
|
|
16371
|
+
* @return {number}
|
|
16372
|
+
*/
|
|
16373
|
+
proto.ondewo.s2t.WespeakerTsd.prototype.getSimilarityThreshold = function() {
|
|
16374
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
16375
|
+
};
|
|
16376
|
+
|
|
16377
|
+
|
|
16378
|
+
/**
|
|
16379
|
+
* @param {number} value
|
|
16380
|
+
* @return {!proto.ondewo.s2t.WespeakerTsd} returns this
|
|
16381
|
+
*/
|
|
16382
|
+
proto.ondewo.s2t.WespeakerTsd.prototype.setSimilarityThreshold = function(value) {
|
|
16383
|
+
return jspb.Message.setField(this, 5, value);
|
|
16384
|
+
};
|
|
16385
|
+
|
|
16386
|
+
|
|
16387
|
+
/**
|
|
16388
|
+
* Clears the field making it undefined.
|
|
16389
|
+
* @return {!proto.ondewo.s2t.WespeakerTsd} returns this
|
|
16390
|
+
*/
|
|
16391
|
+
proto.ondewo.s2t.WespeakerTsd.prototype.clearSimilarityThreshold = function() {
|
|
16392
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
16393
|
+
};
|
|
16394
|
+
|
|
16395
|
+
|
|
16396
|
+
/**
|
|
16397
|
+
* Returns whether this field is set.
|
|
16398
|
+
* @return {boolean}
|
|
16399
|
+
*/
|
|
16400
|
+
proto.ondewo.s2t.WespeakerTsd.prototype.hasSimilarityThreshold = function() {
|
|
16401
|
+
return jspb.Message.getField(this, 5) != null;
|
|
16402
|
+
};
|
|
16403
|
+
|
|
16404
|
+
|
|
16405
|
+
/**
|
|
16406
|
+
* optional float min_audio_length = 6;
|
|
16407
|
+
* @return {number}
|
|
16408
|
+
*/
|
|
16409
|
+
proto.ondewo.s2t.WespeakerTsd.prototype.getMinAudioLength = function() {
|
|
16410
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
|
16411
|
+
};
|
|
16412
|
+
|
|
16413
|
+
|
|
16414
|
+
/**
|
|
16415
|
+
* @param {number} value
|
|
16416
|
+
* @return {!proto.ondewo.s2t.WespeakerTsd} returns this
|
|
16417
|
+
*/
|
|
16418
|
+
proto.ondewo.s2t.WespeakerTsd.prototype.setMinAudioLength = function(value) {
|
|
16419
|
+
return jspb.Message.setField(this, 6, value);
|
|
16420
|
+
};
|
|
16421
|
+
|
|
16422
|
+
|
|
16423
|
+
/**
|
|
16424
|
+
* Clears the field making it undefined.
|
|
16425
|
+
* @return {!proto.ondewo.s2t.WespeakerTsd} returns this
|
|
16426
|
+
*/
|
|
16427
|
+
proto.ondewo.s2t.WespeakerTsd.prototype.clearMinAudioLength = function() {
|
|
16428
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
16429
|
+
};
|
|
16430
|
+
|
|
16431
|
+
|
|
16432
|
+
/**
|
|
16433
|
+
* Returns whether this field is set.
|
|
16434
|
+
* @return {boolean}
|
|
16435
|
+
*/
|
|
16436
|
+
proto.ondewo.s2t.WespeakerTsd.prototype.hasMinAudioLength = function() {
|
|
16437
|
+
return jspb.Message.getField(this, 6) != null;
|
|
16438
|
+
};
|
|
16439
|
+
|
|
16440
|
+
|
|
16441
|
+
/**
|
|
16442
|
+
* optional float reference_max_length = 7;
|
|
16443
|
+
* @return {number}
|
|
16444
|
+
*/
|
|
16445
|
+
proto.ondewo.s2t.WespeakerTsd.prototype.getReferenceMaxLength = function() {
|
|
16446
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
|
|
16447
|
+
};
|
|
16448
|
+
|
|
16449
|
+
|
|
16450
|
+
/**
|
|
16451
|
+
* @param {number} value
|
|
16452
|
+
* @return {!proto.ondewo.s2t.WespeakerTsd} returns this
|
|
16453
|
+
*/
|
|
16454
|
+
proto.ondewo.s2t.WespeakerTsd.prototype.setReferenceMaxLength = function(value) {
|
|
16455
|
+
return jspb.Message.setProto3FloatField(this, 7, value);
|
|
16456
|
+
};
|
|
16457
|
+
|
|
16458
|
+
|
|
16459
|
+
|
|
16460
|
+
/**
|
|
16461
|
+
* List of repeated fields within this message type.
|
|
16462
|
+
* @private {!Array<number>}
|
|
16463
|
+
* @const
|
|
16464
|
+
*/
|
|
16465
|
+
proto.ondewo.s2t.PostProcessing.repeatedFields_ = [1];
|
|
16466
|
+
|
|
16467
|
+
|
|
16468
|
+
|
|
16469
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
16470
|
+
/**
|
|
16471
|
+
* Creates an object representation of this proto.
|
|
16472
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
16473
|
+
* Optional fields that are not set will be set to undefined.
|
|
16474
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
16475
|
+
* For the list of reserved names please see:
|
|
16476
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
16477
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
16478
|
+
* JSPB instance for transitional soy proto support:
|
|
16479
|
+
* http://goto/soy-param-migration
|
|
16480
|
+
* @return {!Object}
|
|
16481
|
+
*/
|
|
16482
|
+
proto.ondewo.s2t.PostProcessing.prototype.toObject = function(opt_includeInstance) {
|
|
16483
|
+
return proto.ondewo.s2t.PostProcessing.toObject(opt_includeInstance, this);
|
|
16484
|
+
};
|
|
16485
|
+
|
|
16486
|
+
|
|
16487
|
+
/**
|
|
16488
|
+
* Static version of the {@see toObject} method.
|
|
16489
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
16490
|
+
* the JSPB instance for transitional soy proto support:
|
|
16491
|
+
* http://goto/soy-param-migration
|
|
16492
|
+
* @param {!proto.ondewo.s2t.PostProcessing} msg The msg instance to transform.
|
|
16493
|
+
* @return {!Object}
|
|
16494
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
16495
|
+
*/
|
|
16496
|
+
proto.ondewo.s2t.PostProcessing.toObject = function(includeInstance, msg) {
|
|
16497
|
+
var f, obj = {
|
|
16498
|
+
pipelineList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
16499
|
+
postProcessors: (f = msg.getPostProcessors()) && proto.ondewo.s2t.PostProcessors.toObject(includeInstance, f)
|
|
16500
|
+
};
|
|
16501
|
+
|
|
16502
|
+
if (includeInstance) {
|
|
16503
|
+
obj.$jspbMessageInstance = msg;
|
|
16504
|
+
}
|
|
16505
|
+
return obj;
|
|
16506
|
+
};
|
|
16507
|
+
}
|
|
16508
|
+
|
|
16509
|
+
|
|
16510
|
+
/**
|
|
16511
|
+
* Deserializes binary data (in protobuf wire format).
|
|
16512
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
16513
|
+
* @return {!proto.ondewo.s2t.PostProcessing}
|
|
16514
|
+
*/
|
|
16515
|
+
proto.ondewo.s2t.PostProcessing.deserializeBinary = function(bytes) {
|
|
16516
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
16517
|
+
var msg = new proto.ondewo.s2t.PostProcessing;
|
|
16518
|
+
return proto.ondewo.s2t.PostProcessing.deserializeBinaryFromReader(msg, reader);
|
|
16519
|
+
};
|
|
16520
|
+
|
|
16521
|
+
|
|
16522
|
+
/**
|
|
16523
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
16524
|
+
* given reader into the given message object.
|
|
16525
|
+
* @param {!proto.ondewo.s2t.PostProcessing} msg The message object to deserialize into.
|
|
16526
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
16527
|
+
* @return {!proto.ondewo.s2t.PostProcessing}
|
|
16528
|
+
*/
|
|
16529
|
+
proto.ondewo.s2t.PostProcessing.deserializeBinaryFromReader = function(msg, reader) {
|
|
16530
|
+
while (reader.nextField()) {
|
|
16531
|
+
if (reader.isEndGroup()) {
|
|
16532
|
+
break;
|
|
16533
|
+
}
|
|
16534
|
+
var field = reader.getFieldNumber();
|
|
16535
|
+
switch (field) {
|
|
16536
|
+
case 1:
|
|
16537
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16538
|
+
msg.addPipeline(value);
|
|
16539
|
+
break;
|
|
16540
|
+
case 2:
|
|
16541
|
+
var value = new proto.ondewo.s2t.PostProcessors;
|
|
16542
|
+
reader.readMessage(value,proto.ondewo.s2t.PostProcessors.deserializeBinaryFromReader);
|
|
16543
|
+
msg.setPostProcessors(value);
|
|
16544
|
+
break;
|
|
16545
|
+
default:
|
|
16546
|
+
reader.skipField();
|
|
16547
|
+
break;
|
|
16548
|
+
}
|
|
16549
|
+
}
|
|
16550
|
+
return msg;
|
|
16551
|
+
};
|
|
16552
|
+
|
|
16553
|
+
|
|
16554
|
+
/**
|
|
16555
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
16556
|
+
* @return {!Uint8Array}
|
|
16557
|
+
*/
|
|
16558
|
+
proto.ondewo.s2t.PostProcessing.prototype.serializeBinary = function() {
|
|
16559
|
+
var writer = new jspb.BinaryWriter();
|
|
16560
|
+
proto.ondewo.s2t.PostProcessing.serializeBinaryToWriter(this, writer);
|
|
16561
|
+
return writer.getResultBuffer();
|
|
16562
|
+
};
|
|
16563
|
+
|
|
16564
|
+
|
|
16565
|
+
/**
|
|
16566
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
16567
|
+
* format), writing to the given BinaryWriter.
|
|
16568
|
+
* @param {!proto.ondewo.s2t.PostProcessing} message
|
|
16569
|
+
* @param {!jspb.BinaryWriter} writer
|
|
16570
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
16571
|
+
*/
|
|
16572
|
+
proto.ondewo.s2t.PostProcessing.serializeBinaryToWriter = function(message, writer) {
|
|
16573
|
+
var f = undefined;
|
|
16574
|
+
f = message.getPipelineList();
|
|
16575
|
+
if (f.length > 0) {
|
|
16576
|
+
writer.writeRepeatedString(
|
|
16577
|
+
1,
|
|
16578
|
+
f
|
|
16579
|
+
);
|
|
16580
|
+
}
|
|
16581
|
+
f = message.getPostProcessors();
|
|
16582
|
+
if (f != null) {
|
|
16583
|
+
writer.writeMessage(
|
|
16584
|
+
2,
|
|
16585
|
+
f,
|
|
16586
|
+
proto.ondewo.s2t.PostProcessors.serializeBinaryToWriter
|
|
16587
|
+
);
|
|
16588
|
+
}
|
|
16589
|
+
};
|
|
16590
|
+
|
|
16591
|
+
|
|
16592
|
+
/**
|
|
16593
|
+
* repeated string pipeline = 1;
|
|
16594
|
+
* @return {!Array<string>}
|
|
15629
16595
|
*/
|
|
15630
16596
|
proto.ondewo.s2t.PostProcessing.prototype.getPipelineList = function() {
|
|
15631
16597
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
@@ -20280,4 +21246,23 @@ proto.ondewo.s2t.ReasoningEffort = {
|
|
|
20280
21246
|
REASONING_EFFORT_HIGH: 4
|
|
20281
21247
|
};
|
|
20282
21248
|
|
|
21249
|
+
/**
|
|
21250
|
+
* @enum {number}
|
|
21251
|
+
*/
|
|
21252
|
+
proto.ondewo.s2t.VadMethod = {
|
|
21253
|
+
VAD_METHOD_UNSPECIFIED: 0,
|
|
21254
|
+
VAD_METHOD_PYANNOTE: 1,
|
|
21255
|
+
VAD_METHOD_SILERO: 2
|
|
21256
|
+
};
|
|
21257
|
+
|
|
21258
|
+
/**
|
|
21259
|
+
* @enum {number}
|
|
21260
|
+
*/
|
|
21261
|
+
proto.ondewo.s2t.TsdMethod = {
|
|
21262
|
+
TSD_METHOD_UNSPECIFIED: 0,
|
|
21263
|
+
TSD_METHOD_NONE: 1,
|
|
21264
|
+
TSD_METHOD_PYANNOTE: 2,
|
|
21265
|
+
TSD_METHOD_WESPEAKER: 3
|
|
21266
|
+
};
|
|
21267
|
+
|
|
20283
21268
|
goog.object.extend(exports, proto.ondewo.s2t);
|