@ondewo/s2t-client-typescript 4.0.0 → 5.3.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 +121 -31
- package/api/ondewo/s2t/speech-to-text_pb.js +808 -121
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/public-api.js +2 -2
|
@@ -17,12 +17,13 @@ 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
|
+
goog.exportSymbol('proto.ondewo.s2t.InferenceBackend', null, global);
|
|
26
27
|
goog.exportSymbol('proto.ondewo.s2t.LanguageModelPipelineId', null, global);
|
|
27
28
|
goog.exportSymbol('proto.ondewo.s2t.LanguageModels', null, global);
|
|
28
29
|
goog.exportSymbol('proto.ondewo.s2t.ListS2tDomainsRequest', null, global);
|
|
@@ -71,6 +72,8 @@ goog.exportSymbol('proto.ondewo.s2t.UtteranceDetectionOptions.OneofTranscribeNot
|
|
|
71
72
|
goog.exportSymbol('proto.ondewo.s2t.VoiceActivityDetection', null, global);
|
|
72
73
|
goog.exportSymbol('proto.ondewo.s2t.Wav2Vec', null, global);
|
|
73
74
|
goog.exportSymbol('proto.ondewo.s2t.Wav2VecTriton', null, global);
|
|
75
|
+
goog.exportSymbol('proto.ondewo.s2t.Whisper', null, global);
|
|
76
|
+
goog.exportSymbol('proto.ondewo.s2t.WhisperTriton', null, global);
|
|
74
77
|
goog.exportSymbol('proto.ondewo.s2t.WordTiming', null, global);
|
|
75
78
|
/**
|
|
76
79
|
* Generated by JsPbCodeGenerator.
|
|
@@ -523,16 +526,58 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
523
526
|
* @extends {jspb.Message}
|
|
524
527
|
* @constructor
|
|
525
528
|
*/
|
|
526
|
-
proto.ondewo.s2t.
|
|
529
|
+
proto.ondewo.s2t.AcousticModels = function(opt_data) {
|
|
527
530
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
528
531
|
};
|
|
529
|
-
goog.inherits(proto.ondewo.s2t.
|
|
532
|
+
goog.inherits(proto.ondewo.s2t.AcousticModels, jspb.Message);
|
|
530
533
|
if (goog.DEBUG && !COMPILED) {
|
|
531
534
|
/**
|
|
532
535
|
* @public
|
|
533
536
|
* @override
|
|
534
537
|
*/
|
|
535
|
-
proto.ondewo.s2t.
|
|
538
|
+
proto.ondewo.s2t.AcousticModels.displayName = 'proto.ondewo.s2t.AcousticModels';
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Generated by JsPbCodeGenerator.
|
|
542
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
543
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
544
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
545
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
546
|
+
* valid.
|
|
547
|
+
* @extends {jspb.Message}
|
|
548
|
+
* @constructor
|
|
549
|
+
*/
|
|
550
|
+
proto.ondewo.s2t.Whisper = function(opt_data) {
|
|
551
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
552
|
+
};
|
|
553
|
+
goog.inherits(proto.ondewo.s2t.Whisper, jspb.Message);
|
|
554
|
+
if (goog.DEBUG && !COMPILED) {
|
|
555
|
+
/**
|
|
556
|
+
* @public
|
|
557
|
+
* @override
|
|
558
|
+
*/
|
|
559
|
+
proto.ondewo.s2t.Whisper.displayName = 'proto.ondewo.s2t.Whisper';
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* Generated by JsPbCodeGenerator.
|
|
563
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
564
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
565
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
566
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
567
|
+
* valid.
|
|
568
|
+
* @extends {jspb.Message}
|
|
569
|
+
* @constructor
|
|
570
|
+
*/
|
|
571
|
+
proto.ondewo.s2t.WhisperTriton = function(opt_data) {
|
|
572
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
573
|
+
};
|
|
574
|
+
goog.inherits(proto.ondewo.s2t.WhisperTriton, jspb.Message);
|
|
575
|
+
if (goog.DEBUG && !COMPILED) {
|
|
576
|
+
/**
|
|
577
|
+
* @public
|
|
578
|
+
* @override
|
|
579
|
+
*/
|
|
580
|
+
proto.ondewo.s2t.WhisperTriton.displayName = 'proto.ondewo.s2t.WhisperTriton';
|
|
536
581
|
}
|
|
537
582
|
/**
|
|
538
583
|
* Generated by JsPbCodeGenerator.
|
|
@@ -1157,7 +1202,7 @@ proto.ondewo.s2t.TranscribeRequestConfig.prototype.toObject = function(opt_inclu
|
|
|
1157
1202
|
proto.ondewo.s2t.TranscribeRequestConfig.toObject = function(includeInstance, msg) {
|
|
1158
1203
|
var f, obj = {
|
|
1159
1204
|
s2tPipelineId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1160
|
-
|
|
1205
|
+
decoding: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
1161
1206
|
languageModelName: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1162
1207
|
postProcessing: (f = msg.getPostProcessing()) && proto.ondewo.s2t.PostProcessingOptions.toObject(includeInstance, f),
|
|
1163
1208
|
utteranceDetection: (f = msg.getUtteranceDetection()) && proto.ondewo.s2t.UtteranceDetectionOptions.toObject(includeInstance, f),
|
|
@@ -1205,8 +1250,8 @@ proto.ondewo.s2t.TranscribeRequestConfig.deserializeBinaryFromReader = function(
|
|
|
1205
1250
|
msg.setS2tPipelineId(value);
|
|
1206
1251
|
break;
|
|
1207
1252
|
case 2:
|
|
1208
|
-
var value = /** @type {!proto.ondewo.s2t.
|
|
1209
|
-
msg.
|
|
1253
|
+
var value = /** @type {!proto.ondewo.s2t.Decoding} */ (reader.readEnum());
|
|
1254
|
+
msg.setDecoding(value);
|
|
1210
1255
|
break;
|
|
1211
1256
|
case 3:
|
|
1212
1257
|
var value = /** @type {string} */ (reader.readString());
|
|
@@ -1273,7 +1318,7 @@ proto.ondewo.s2t.TranscribeRequestConfig.serializeBinaryToWriter = function(mess
|
|
|
1273
1318
|
f
|
|
1274
1319
|
);
|
|
1275
1320
|
}
|
|
1276
|
-
f = message.
|
|
1321
|
+
f = message.getDecoding();
|
|
1277
1322
|
if (f !== 0.0) {
|
|
1278
1323
|
writer.writeEnum(
|
|
1279
1324
|
2,
|
|
@@ -1349,19 +1394,19 @@ proto.ondewo.s2t.TranscribeRequestConfig.prototype.setS2tPipelineId = function(v
|
|
|
1349
1394
|
|
|
1350
1395
|
|
|
1351
1396
|
/**
|
|
1352
|
-
* optional
|
|
1353
|
-
* @return {!proto.ondewo.s2t.
|
|
1397
|
+
* optional Decoding decoding = 2;
|
|
1398
|
+
* @return {!proto.ondewo.s2t.Decoding}
|
|
1354
1399
|
*/
|
|
1355
|
-
proto.ondewo.s2t.TranscribeRequestConfig.prototype.
|
|
1356
|
-
return /** @type {!proto.ondewo.s2t.
|
|
1400
|
+
proto.ondewo.s2t.TranscribeRequestConfig.prototype.getDecoding = function() {
|
|
1401
|
+
return /** @type {!proto.ondewo.s2t.Decoding} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1357
1402
|
};
|
|
1358
1403
|
|
|
1359
1404
|
|
|
1360
1405
|
/**
|
|
1361
|
-
* @param {!proto.ondewo.s2t.
|
|
1406
|
+
* @param {!proto.ondewo.s2t.Decoding} value
|
|
1362
1407
|
* @return {!proto.ondewo.s2t.TranscribeRequestConfig} returns this
|
|
1363
1408
|
*/
|
|
1364
|
-
proto.ondewo.s2t.TranscribeRequestConfig.prototype.
|
|
1409
|
+
proto.ondewo.s2t.TranscribeRequestConfig.prototype.setDecoding = function(value) {
|
|
1365
1410
|
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
1366
1411
|
};
|
|
1367
1412
|
|
|
@@ -1621,8 +1666,11 @@ proto.ondewo.s2t.TranscriptionReturnOptions.toObject = function(includeInstance,
|
|
|
1621
1666
|
var f, obj = {
|
|
1622
1667
|
returnStartOfSpeech: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
1623
1668
|
returnAudio: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
1624
|
-
|
|
1625
|
-
|
|
1669
|
+
returnConfidenceScore: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
1670
|
+
returnAlternativeTranscriptions: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
1671
|
+
returnAlternativeTranscriptionsNr: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
1672
|
+
returnAlternativeWords: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
|
|
1673
|
+
returnAlternativeWordsNr: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
1626
1674
|
returnWordTiming: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
|
|
1627
1675
|
};
|
|
1628
1676
|
|
|
@@ -1670,11 +1718,23 @@ proto.ondewo.s2t.TranscriptionReturnOptions.deserializeBinaryFromReader = functi
|
|
|
1670
1718
|
break;
|
|
1671
1719
|
case 3:
|
|
1672
1720
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
1673
|
-
msg.
|
|
1721
|
+
msg.setReturnConfidenceScore(value);
|
|
1674
1722
|
break;
|
|
1675
1723
|
case 4:
|
|
1676
1724
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
1677
|
-
msg.
|
|
1725
|
+
msg.setReturnAlternativeTranscriptions(value);
|
|
1726
|
+
break;
|
|
1727
|
+
case 5:
|
|
1728
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1729
|
+
msg.setReturnAlternativeTranscriptionsNr(value);
|
|
1730
|
+
break;
|
|
1731
|
+
case 6:
|
|
1732
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1733
|
+
msg.setReturnAlternativeWords(value);
|
|
1734
|
+
break;
|
|
1735
|
+
case 7:
|
|
1736
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1737
|
+
msg.setReturnAlternativeWordsNr(value);
|
|
1678
1738
|
break;
|
|
1679
1739
|
case 8:
|
|
1680
1740
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
@@ -1723,20 +1783,41 @@ proto.ondewo.s2t.TranscriptionReturnOptions.serializeBinaryToWriter = function(m
|
|
|
1723
1783
|
f
|
|
1724
1784
|
);
|
|
1725
1785
|
}
|
|
1726
|
-
f = message.
|
|
1786
|
+
f = message.getReturnConfidenceScore();
|
|
1727
1787
|
if (f) {
|
|
1728
1788
|
writer.writeBool(
|
|
1729
1789
|
3,
|
|
1730
1790
|
f
|
|
1731
1791
|
);
|
|
1732
1792
|
}
|
|
1733
|
-
f = message.
|
|
1793
|
+
f = message.getReturnAlternativeTranscriptions();
|
|
1734
1794
|
if (f) {
|
|
1735
1795
|
writer.writeBool(
|
|
1736
1796
|
4,
|
|
1737
1797
|
f
|
|
1738
1798
|
);
|
|
1739
1799
|
}
|
|
1800
|
+
f = message.getReturnAlternativeTranscriptionsNr();
|
|
1801
|
+
if (f !== 0) {
|
|
1802
|
+
writer.writeInt32(
|
|
1803
|
+
5,
|
|
1804
|
+
f
|
|
1805
|
+
);
|
|
1806
|
+
}
|
|
1807
|
+
f = message.getReturnAlternativeWords();
|
|
1808
|
+
if (f) {
|
|
1809
|
+
writer.writeBool(
|
|
1810
|
+
6,
|
|
1811
|
+
f
|
|
1812
|
+
);
|
|
1813
|
+
}
|
|
1814
|
+
f = message.getReturnAlternativeWordsNr();
|
|
1815
|
+
if (f !== 0) {
|
|
1816
|
+
writer.writeInt32(
|
|
1817
|
+
7,
|
|
1818
|
+
f
|
|
1819
|
+
);
|
|
1820
|
+
}
|
|
1740
1821
|
f = message.getReturnWordTiming();
|
|
1741
1822
|
if (f) {
|
|
1742
1823
|
writer.writeBool(
|
|
@@ -1784,10 +1865,10 @@ proto.ondewo.s2t.TranscriptionReturnOptions.prototype.setReturnAudio = function(
|
|
|
1784
1865
|
|
|
1785
1866
|
|
|
1786
1867
|
/**
|
|
1787
|
-
* optional bool
|
|
1868
|
+
* optional bool return_confidence_score = 3;
|
|
1788
1869
|
* @return {boolean}
|
|
1789
1870
|
*/
|
|
1790
|
-
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.
|
|
1871
|
+
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnConfidenceScore = function() {
|
|
1791
1872
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
1792
1873
|
};
|
|
1793
1874
|
|
|
@@ -1796,16 +1877,16 @@ proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnAlternativeTransc
|
|
|
1796
1877
|
* @param {boolean} value
|
|
1797
1878
|
* @return {!proto.ondewo.s2t.TranscriptionReturnOptions} returns this
|
|
1798
1879
|
*/
|
|
1799
|
-
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.
|
|
1880
|
+
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.setReturnConfidenceScore = function(value) {
|
|
1800
1881
|
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
1801
1882
|
};
|
|
1802
1883
|
|
|
1803
1884
|
|
|
1804
1885
|
/**
|
|
1805
|
-
* optional bool
|
|
1886
|
+
* optional bool return_alternative_transcriptions = 4;
|
|
1806
1887
|
* @return {boolean}
|
|
1807
1888
|
*/
|
|
1808
|
-
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.
|
|
1889
|
+
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnAlternativeTranscriptions = function() {
|
|
1809
1890
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
1810
1891
|
};
|
|
1811
1892
|
|
|
@@ -1814,11 +1895,65 @@ proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnConfidenceScore =
|
|
|
1814
1895
|
* @param {boolean} value
|
|
1815
1896
|
* @return {!proto.ondewo.s2t.TranscriptionReturnOptions} returns this
|
|
1816
1897
|
*/
|
|
1817
|
-
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.
|
|
1898
|
+
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.setReturnAlternativeTranscriptions = function(value) {
|
|
1818
1899
|
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
1819
1900
|
};
|
|
1820
1901
|
|
|
1821
1902
|
|
|
1903
|
+
/**
|
|
1904
|
+
* optional int32 return_alternative_transcriptions_nr = 5;
|
|
1905
|
+
* @return {number}
|
|
1906
|
+
*/
|
|
1907
|
+
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnAlternativeTranscriptionsNr = function() {
|
|
1908
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
1909
|
+
};
|
|
1910
|
+
|
|
1911
|
+
|
|
1912
|
+
/**
|
|
1913
|
+
* @param {number} value
|
|
1914
|
+
* @return {!proto.ondewo.s2t.TranscriptionReturnOptions} returns this
|
|
1915
|
+
*/
|
|
1916
|
+
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.setReturnAlternativeTranscriptionsNr = function(value) {
|
|
1917
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
1918
|
+
};
|
|
1919
|
+
|
|
1920
|
+
|
|
1921
|
+
/**
|
|
1922
|
+
* optional bool return_alternative_words = 6;
|
|
1923
|
+
* @return {boolean}
|
|
1924
|
+
*/
|
|
1925
|
+
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnAlternativeWords = function() {
|
|
1926
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
|
|
1927
|
+
};
|
|
1928
|
+
|
|
1929
|
+
|
|
1930
|
+
/**
|
|
1931
|
+
* @param {boolean} value
|
|
1932
|
+
* @return {!proto.ondewo.s2t.TranscriptionReturnOptions} returns this
|
|
1933
|
+
*/
|
|
1934
|
+
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.setReturnAlternativeWords = function(value) {
|
|
1935
|
+
return jspb.Message.setProto3BooleanField(this, 6, value);
|
|
1936
|
+
};
|
|
1937
|
+
|
|
1938
|
+
|
|
1939
|
+
/**
|
|
1940
|
+
* optional int32 return_alternative_words_nr = 7;
|
|
1941
|
+
* @return {number}
|
|
1942
|
+
*/
|
|
1943
|
+
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnAlternativeWordsNr = function() {
|
|
1944
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
1945
|
+
};
|
|
1946
|
+
|
|
1947
|
+
|
|
1948
|
+
/**
|
|
1949
|
+
* @param {number} value
|
|
1950
|
+
* @return {!proto.ondewo.s2t.TranscriptionReturnOptions} returns this
|
|
1951
|
+
*/
|
|
1952
|
+
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.setReturnAlternativeWordsNr = function(value) {
|
|
1953
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
1954
|
+
};
|
|
1955
|
+
|
|
1956
|
+
|
|
1822
1957
|
/**
|
|
1823
1958
|
* optional bool return_word_timing = 8;
|
|
1824
1959
|
* @return {boolean}
|
|
@@ -5988,8 +6123,9 @@ proto.ondewo.s2t.S2TInference.prototype.toObject = function(opt_includeInstance)
|
|
|
5988
6123
|
*/
|
|
5989
6124
|
proto.ondewo.s2t.S2TInference.toObject = function(includeInstance, msg) {
|
|
5990
6125
|
var f, obj = {
|
|
5991
|
-
|
|
5992
|
-
languageModels: (f = msg.getLanguageModels()) && proto.ondewo.s2t.LanguageModels.toObject(includeInstance, f)
|
|
6126
|
+
acousticModels: (f = msg.getAcousticModels()) && proto.ondewo.s2t.AcousticModels.toObject(includeInstance, f),
|
|
6127
|
+
languageModels: (f = msg.getLanguageModels()) && proto.ondewo.s2t.LanguageModels.toObject(includeInstance, f),
|
|
6128
|
+
inferenceBackend: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
5993
6129
|
};
|
|
5994
6130
|
|
|
5995
6131
|
if (includeInstance) {
|
|
@@ -6027,15 +6163,19 @@ proto.ondewo.s2t.S2TInference.deserializeBinaryFromReader = function(msg, reader
|
|
|
6027
6163
|
var field = reader.getFieldNumber();
|
|
6028
6164
|
switch (field) {
|
|
6029
6165
|
case 1:
|
|
6030
|
-
var value = new proto.ondewo.s2t.
|
|
6031
|
-
reader.readMessage(value,proto.ondewo.s2t.
|
|
6032
|
-
msg.
|
|
6166
|
+
var value = new proto.ondewo.s2t.AcousticModels;
|
|
6167
|
+
reader.readMessage(value,proto.ondewo.s2t.AcousticModels.deserializeBinaryFromReader);
|
|
6168
|
+
msg.setAcousticModels(value);
|
|
6033
6169
|
break;
|
|
6034
6170
|
case 2:
|
|
6035
6171
|
var value = new proto.ondewo.s2t.LanguageModels;
|
|
6036
6172
|
reader.readMessage(value,proto.ondewo.s2t.LanguageModels.deserializeBinaryFromReader);
|
|
6037
6173
|
msg.setLanguageModels(value);
|
|
6038
6174
|
break;
|
|
6175
|
+
case 3:
|
|
6176
|
+
var value = /** @type {!proto.ondewo.s2t.InferenceBackend} */ (reader.readEnum());
|
|
6177
|
+
msg.setInferenceBackend(value);
|
|
6178
|
+
break;
|
|
6039
6179
|
default:
|
|
6040
6180
|
reader.skipField();
|
|
6041
6181
|
break;
|
|
@@ -6065,12 +6205,12 @@ proto.ondewo.s2t.S2TInference.prototype.serializeBinary = function() {
|
|
|
6065
6205
|
*/
|
|
6066
6206
|
proto.ondewo.s2t.S2TInference.serializeBinaryToWriter = function(message, writer) {
|
|
6067
6207
|
var f = undefined;
|
|
6068
|
-
f = message.
|
|
6208
|
+
f = message.getAcousticModels();
|
|
6069
6209
|
if (f != null) {
|
|
6070
6210
|
writer.writeMessage(
|
|
6071
6211
|
1,
|
|
6072
6212
|
f,
|
|
6073
|
-
proto.ondewo.s2t.
|
|
6213
|
+
proto.ondewo.s2t.AcousticModels.serializeBinaryToWriter
|
|
6074
6214
|
);
|
|
6075
6215
|
}
|
|
6076
6216
|
f = message.getLanguageModels();
|
|
@@ -6081,24 +6221,31 @@ proto.ondewo.s2t.S2TInference.serializeBinaryToWriter = function(message, writer
|
|
|
6081
6221
|
proto.ondewo.s2t.LanguageModels.serializeBinaryToWriter
|
|
6082
6222
|
);
|
|
6083
6223
|
}
|
|
6224
|
+
f = message.getInferenceBackend();
|
|
6225
|
+
if (f !== 0.0) {
|
|
6226
|
+
writer.writeEnum(
|
|
6227
|
+
3,
|
|
6228
|
+
f
|
|
6229
|
+
);
|
|
6230
|
+
}
|
|
6084
6231
|
};
|
|
6085
6232
|
|
|
6086
6233
|
|
|
6087
6234
|
/**
|
|
6088
|
-
* optional
|
|
6089
|
-
* @return {?proto.ondewo.s2t.
|
|
6235
|
+
* optional AcousticModels acoustic_models = 1;
|
|
6236
|
+
* @return {?proto.ondewo.s2t.AcousticModels}
|
|
6090
6237
|
*/
|
|
6091
|
-
proto.ondewo.s2t.S2TInference.prototype.
|
|
6092
|
-
return /** @type{?proto.ondewo.s2t.
|
|
6093
|
-
jspb.Message.getWrapperField(this, proto.ondewo.s2t.
|
|
6238
|
+
proto.ondewo.s2t.S2TInference.prototype.getAcousticModels = function() {
|
|
6239
|
+
return /** @type{?proto.ondewo.s2t.AcousticModels} */ (
|
|
6240
|
+
jspb.Message.getWrapperField(this, proto.ondewo.s2t.AcousticModels, 1));
|
|
6094
6241
|
};
|
|
6095
6242
|
|
|
6096
6243
|
|
|
6097
6244
|
/**
|
|
6098
|
-
* @param {?proto.ondewo.s2t.
|
|
6245
|
+
* @param {?proto.ondewo.s2t.AcousticModels|undefined} value
|
|
6099
6246
|
* @return {!proto.ondewo.s2t.S2TInference} returns this
|
|
6100
6247
|
*/
|
|
6101
|
-
proto.ondewo.s2t.S2TInference.prototype.
|
|
6248
|
+
proto.ondewo.s2t.S2TInference.prototype.setAcousticModels = function(value) {
|
|
6102
6249
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
6103
6250
|
};
|
|
6104
6251
|
|
|
@@ -6107,8 +6254,8 @@ proto.ondewo.s2t.S2TInference.prototype.setCtcAcousticModels = function(value) {
|
|
|
6107
6254
|
* Clears the message field making it undefined.
|
|
6108
6255
|
* @return {!proto.ondewo.s2t.S2TInference} returns this
|
|
6109
6256
|
*/
|
|
6110
|
-
proto.ondewo.s2t.S2TInference.prototype.
|
|
6111
|
-
return this.
|
|
6257
|
+
proto.ondewo.s2t.S2TInference.prototype.clearAcousticModels = function() {
|
|
6258
|
+
return this.setAcousticModels(undefined);
|
|
6112
6259
|
};
|
|
6113
6260
|
|
|
6114
6261
|
|
|
@@ -6116,7 +6263,7 @@ proto.ondewo.s2t.S2TInference.prototype.clearCtcAcousticModels = function() {
|
|
|
6116
6263
|
* Returns whether this field is set.
|
|
6117
6264
|
* @return {boolean}
|
|
6118
6265
|
*/
|
|
6119
|
-
proto.ondewo.s2t.S2TInference.prototype.
|
|
6266
|
+
proto.ondewo.s2t.S2TInference.prototype.hasAcousticModels = function() {
|
|
6120
6267
|
return jspb.Message.getField(this, 1) != null;
|
|
6121
6268
|
};
|
|
6122
6269
|
|
|
@@ -6158,6 +6305,24 @@ proto.ondewo.s2t.S2TInference.prototype.hasLanguageModels = function() {
|
|
|
6158
6305
|
};
|
|
6159
6306
|
|
|
6160
6307
|
|
|
6308
|
+
/**
|
|
6309
|
+
* optional InferenceBackend inference_backend = 3;
|
|
6310
|
+
* @return {!proto.ondewo.s2t.InferenceBackend}
|
|
6311
|
+
*/
|
|
6312
|
+
proto.ondewo.s2t.S2TInference.prototype.getInferenceBackend = function() {
|
|
6313
|
+
return /** @type {!proto.ondewo.s2t.InferenceBackend} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
6314
|
+
};
|
|
6315
|
+
|
|
6316
|
+
|
|
6317
|
+
/**
|
|
6318
|
+
* @param {!proto.ondewo.s2t.InferenceBackend} value
|
|
6319
|
+
* @return {!proto.ondewo.s2t.S2TInference} returns this
|
|
6320
|
+
*/
|
|
6321
|
+
proto.ondewo.s2t.S2TInference.prototype.setInferenceBackend = function(value) {
|
|
6322
|
+
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
6323
|
+
};
|
|
6324
|
+
|
|
6325
|
+
|
|
6161
6326
|
|
|
6162
6327
|
|
|
6163
6328
|
|
|
@@ -6174,8 +6339,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
6174
6339
|
* http://goto/soy-param-migration
|
|
6175
6340
|
* @return {!Object}
|
|
6176
6341
|
*/
|
|
6177
|
-
proto.ondewo.s2t.
|
|
6178
|
-
return proto.ondewo.s2t.
|
|
6342
|
+
proto.ondewo.s2t.AcousticModels.prototype.toObject = function(opt_includeInstance) {
|
|
6343
|
+
return proto.ondewo.s2t.AcousticModels.toObject(opt_includeInstance, this);
|
|
6179
6344
|
};
|
|
6180
6345
|
|
|
6181
6346
|
|
|
@@ -6184,17 +6349,19 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.toObject = function(opt_includeInst
|
|
|
6184
6349
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6185
6350
|
* the JSPB instance for transitional soy proto support:
|
|
6186
6351
|
* http://goto/soy-param-migration
|
|
6187
|
-
* @param {!proto.ondewo.s2t.
|
|
6352
|
+
* @param {!proto.ondewo.s2t.AcousticModels} msg The msg instance to transform.
|
|
6188
6353
|
* @return {!Object}
|
|
6189
6354
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6190
6355
|
*/
|
|
6191
|
-
proto.ondewo.s2t.
|
|
6356
|
+
proto.ondewo.s2t.AcousticModels.toObject = function(includeInstance, msg) {
|
|
6192
6357
|
var f, obj = {
|
|
6193
6358
|
type: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6194
6359
|
quartznet: (f = msg.getQuartznet()) && proto.ondewo.s2t.Quartznet.toObject(includeInstance, f),
|
|
6195
6360
|
quartznetTriton: (f = msg.getQuartznetTriton()) && proto.ondewo.s2t.QuartznetTriton.toObject(includeInstance, f),
|
|
6196
6361
|
wav2vec: (f = msg.getWav2vec()) && proto.ondewo.s2t.Wav2Vec.toObject(includeInstance, f),
|
|
6197
|
-
wav2vecTriton: (f = msg.getWav2vecTriton()) && proto.ondewo.s2t.Wav2VecTriton.toObject(includeInstance, f)
|
|
6362
|
+
wav2vecTriton: (f = msg.getWav2vecTriton()) && proto.ondewo.s2t.Wav2VecTriton.toObject(includeInstance, f),
|
|
6363
|
+
whisper: (f = msg.getWhisper()) && proto.ondewo.s2t.Whisper.toObject(includeInstance, f),
|
|
6364
|
+
whisperTriton: (f = msg.getWhisperTriton()) && proto.ondewo.s2t.WhisperTriton.toObject(includeInstance, f)
|
|
6198
6365
|
};
|
|
6199
6366
|
|
|
6200
6367
|
if (includeInstance) {
|
|
@@ -6208,23 +6375,23 @@ proto.ondewo.s2t.CtcAcousticModels.toObject = function(includeInstance, msg) {
|
|
|
6208
6375
|
/**
|
|
6209
6376
|
* Deserializes binary data (in protobuf wire format).
|
|
6210
6377
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6211
|
-
* @return {!proto.ondewo.s2t.
|
|
6378
|
+
* @return {!proto.ondewo.s2t.AcousticModels}
|
|
6212
6379
|
*/
|
|
6213
|
-
proto.ondewo.s2t.
|
|
6380
|
+
proto.ondewo.s2t.AcousticModels.deserializeBinary = function(bytes) {
|
|
6214
6381
|
var reader = new jspb.BinaryReader(bytes);
|
|
6215
|
-
var msg = new proto.ondewo.s2t.
|
|
6216
|
-
return proto.ondewo.s2t.
|
|
6382
|
+
var msg = new proto.ondewo.s2t.AcousticModels;
|
|
6383
|
+
return proto.ondewo.s2t.AcousticModels.deserializeBinaryFromReader(msg, reader);
|
|
6217
6384
|
};
|
|
6218
6385
|
|
|
6219
6386
|
|
|
6220
6387
|
/**
|
|
6221
6388
|
* Deserializes binary data (in protobuf wire format) from the
|
|
6222
6389
|
* given reader into the given message object.
|
|
6223
|
-
* @param {!proto.ondewo.s2t.
|
|
6390
|
+
* @param {!proto.ondewo.s2t.AcousticModels} msg The message object to deserialize into.
|
|
6224
6391
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6225
|
-
* @return {!proto.ondewo.s2t.
|
|
6392
|
+
* @return {!proto.ondewo.s2t.AcousticModels}
|
|
6226
6393
|
*/
|
|
6227
|
-
proto.ondewo.s2t.
|
|
6394
|
+
proto.ondewo.s2t.AcousticModels.deserializeBinaryFromReader = function(msg, reader) {
|
|
6228
6395
|
while (reader.nextField()) {
|
|
6229
6396
|
if (reader.isEndGroup()) {
|
|
6230
6397
|
break;
|
|
@@ -6255,6 +6422,16 @@ proto.ondewo.s2t.CtcAcousticModels.deserializeBinaryFromReader = function(msg, r
|
|
|
6255
6422
|
reader.readMessage(value,proto.ondewo.s2t.Wav2VecTriton.deserializeBinaryFromReader);
|
|
6256
6423
|
msg.setWav2vecTriton(value);
|
|
6257
6424
|
break;
|
|
6425
|
+
case 6:
|
|
6426
|
+
var value = new proto.ondewo.s2t.Whisper;
|
|
6427
|
+
reader.readMessage(value,proto.ondewo.s2t.Whisper.deserializeBinaryFromReader);
|
|
6428
|
+
msg.setWhisper(value);
|
|
6429
|
+
break;
|
|
6430
|
+
case 7:
|
|
6431
|
+
var value = new proto.ondewo.s2t.WhisperTriton;
|
|
6432
|
+
reader.readMessage(value,proto.ondewo.s2t.WhisperTriton.deserializeBinaryFromReader);
|
|
6433
|
+
msg.setWhisperTriton(value);
|
|
6434
|
+
break;
|
|
6258
6435
|
default:
|
|
6259
6436
|
reader.skipField();
|
|
6260
6437
|
break;
|
|
@@ -6268,9 +6445,9 @@ proto.ondewo.s2t.CtcAcousticModels.deserializeBinaryFromReader = function(msg, r
|
|
|
6268
6445
|
* Serializes the message to binary data (in protobuf wire format).
|
|
6269
6446
|
* @return {!Uint8Array}
|
|
6270
6447
|
*/
|
|
6271
|
-
proto.ondewo.s2t.
|
|
6448
|
+
proto.ondewo.s2t.AcousticModels.prototype.serializeBinary = function() {
|
|
6272
6449
|
var writer = new jspb.BinaryWriter();
|
|
6273
|
-
proto.ondewo.s2t.
|
|
6450
|
+
proto.ondewo.s2t.AcousticModels.serializeBinaryToWriter(this, writer);
|
|
6274
6451
|
return writer.getResultBuffer();
|
|
6275
6452
|
};
|
|
6276
6453
|
|
|
@@ -6278,11 +6455,11 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.serializeBinary = function() {
|
|
|
6278
6455
|
/**
|
|
6279
6456
|
* Serializes the given message to binary data (in protobuf wire
|
|
6280
6457
|
* format), writing to the given BinaryWriter.
|
|
6281
|
-
* @param {!proto.ondewo.s2t.
|
|
6458
|
+
* @param {!proto.ondewo.s2t.AcousticModels} message
|
|
6282
6459
|
* @param {!jspb.BinaryWriter} writer
|
|
6283
6460
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6284
6461
|
*/
|
|
6285
|
-
proto.ondewo.s2t.
|
|
6462
|
+
proto.ondewo.s2t.AcousticModels.serializeBinaryToWriter = function(message, writer) {
|
|
6286
6463
|
var f = undefined;
|
|
6287
6464
|
f = message.getType();
|
|
6288
6465
|
if (f.length > 0) {
|
|
@@ -6323,6 +6500,22 @@ proto.ondewo.s2t.CtcAcousticModels.serializeBinaryToWriter = function(message, w
|
|
|
6323
6500
|
proto.ondewo.s2t.Wav2VecTriton.serializeBinaryToWriter
|
|
6324
6501
|
);
|
|
6325
6502
|
}
|
|
6503
|
+
f = message.getWhisper();
|
|
6504
|
+
if (f != null) {
|
|
6505
|
+
writer.writeMessage(
|
|
6506
|
+
6,
|
|
6507
|
+
f,
|
|
6508
|
+
proto.ondewo.s2t.Whisper.serializeBinaryToWriter
|
|
6509
|
+
);
|
|
6510
|
+
}
|
|
6511
|
+
f = message.getWhisperTriton();
|
|
6512
|
+
if (f != null) {
|
|
6513
|
+
writer.writeMessage(
|
|
6514
|
+
7,
|
|
6515
|
+
f,
|
|
6516
|
+
proto.ondewo.s2t.WhisperTriton.serializeBinaryToWriter
|
|
6517
|
+
);
|
|
6518
|
+
}
|
|
6326
6519
|
};
|
|
6327
6520
|
|
|
6328
6521
|
|
|
@@ -6330,16 +6523,16 @@ proto.ondewo.s2t.CtcAcousticModels.serializeBinaryToWriter = function(message, w
|
|
|
6330
6523
|
* optional string type = 1;
|
|
6331
6524
|
* @return {string}
|
|
6332
6525
|
*/
|
|
6333
|
-
proto.ondewo.s2t.
|
|
6526
|
+
proto.ondewo.s2t.AcousticModels.prototype.getType = function() {
|
|
6334
6527
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6335
6528
|
};
|
|
6336
6529
|
|
|
6337
6530
|
|
|
6338
6531
|
/**
|
|
6339
6532
|
* @param {string} value
|
|
6340
|
-
* @return {!proto.ondewo.s2t.
|
|
6533
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6341
6534
|
*/
|
|
6342
|
-
proto.ondewo.s2t.
|
|
6535
|
+
proto.ondewo.s2t.AcousticModels.prototype.setType = function(value) {
|
|
6343
6536
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6344
6537
|
};
|
|
6345
6538
|
|
|
@@ -6348,7 +6541,7 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.setType = function(value) {
|
|
|
6348
6541
|
* optional Quartznet quartznet = 2;
|
|
6349
6542
|
* @return {?proto.ondewo.s2t.Quartznet}
|
|
6350
6543
|
*/
|
|
6351
|
-
proto.ondewo.s2t.
|
|
6544
|
+
proto.ondewo.s2t.AcousticModels.prototype.getQuartznet = function() {
|
|
6352
6545
|
return /** @type{?proto.ondewo.s2t.Quartznet} */ (
|
|
6353
6546
|
jspb.Message.getWrapperField(this, proto.ondewo.s2t.Quartznet, 2));
|
|
6354
6547
|
};
|
|
@@ -6356,18 +6549,18 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.getQuartznet = function() {
|
|
|
6356
6549
|
|
|
6357
6550
|
/**
|
|
6358
6551
|
* @param {?proto.ondewo.s2t.Quartznet|undefined} value
|
|
6359
|
-
* @return {!proto.ondewo.s2t.
|
|
6552
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6360
6553
|
*/
|
|
6361
|
-
proto.ondewo.s2t.
|
|
6554
|
+
proto.ondewo.s2t.AcousticModels.prototype.setQuartznet = function(value) {
|
|
6362
6555
|
return jspb.Message.setWrapperField(this, 2, value);
|
|
6363
6556
|
};
|
|
6364
6557
|
|
|
6365
6558
|
|
|
6366
6559
|
/**
|
|
6367
6560
|
* Clears the message field making it undefined.
|
|
6368
|
-
* @return {!proto.ondewo.s2t.
|
|
6561
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6369
6562
|
*/
|
|
6370
|
-
proto.ondewo.s2t.
|
|
6563
|
+
proto.ondewo.s2t.AcousticModels.prototype.clearQuartznet = function() {
|
|
6371
6564
|
return this.setQuartznet(undefined);
|
|
6372
6565
|
};
|
|
6373
6566
|
|
|
@@ -6376,7 +6569,7 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.clearQuartznet = function() {
|
|
|
6376
6569
|
* Returns whether this field is set.
|
|
6377
6570
|
* @return {boolean}
|
|
6378
6571
|
*/
|
|
6379
|
-
proto.ondewo.s2t.
|
|
6572
|
+
proto.ondewo.s2t.AcousticModels.prototype.hasQuartznet = function() {
|
|
6380
6573
|
return jspb.Message.getField(this, 2) != null;
|
|
6381
6574
|
};
|
|
6382
6575
|
|
|
@@ -6385,7 +6578,7 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.hasQuartznet = function() {
|
|
|
6385
6578
|
* optional QuartznetTriton quartznet_triton = 3;
|
|
6386
6579
|
* @return {?proto.ondewo.s2t.QuartznetTriton}
|
|
6387
6580
|
*/
|
|
6388
|
-
proto.ondewo.s2t.
|
|
6581
|
+
proto.ondewo.s2t.AcousticModels.prototype.getQuartznetTriton = function() {
|
|
6389
6582
|
return /** @type{?proto.ondewo.s2t.QuartznetTriton} */ (
|
|
6390
6583
|
jspb.Message.getWrapperField(this, proto.ondewo.s2t.QuartznetTriton, 3));
|
|
6391
6584
|
};
|
|
@@ -6393,18 +6586,18 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.getQuartznetTriton = function() {
|
|
|
6393
6586
|
|
|
6394
6587
|
/**
|
|
6395
6588
|
* @param {?proto.ondewo.s2t.QuartznetTriton|undefined} value
|
|
6396
|
-
* @return {!proto.ondewo.s2t.
|
|
6589
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6397
6590
|
*/
|
|
6398
|
-
proto.ondewo.s2t.
|
|
6591
|
+
proto.ondewo.s2t.AcousticModels.prototype.setQuartznetTriton = function(value) {
|
|
6399
6592
|
return jspb.Message.setWrapperField(this, 3, value);
|
|
6400
6593
|
};
|
|
6401
6594
|
|
|
6402
6595
|
|
|
6403
6596
|
/**
|
|
6404
6597
|
* Clears the message field making it undefined.
|
|
6405
|
-
* @return {!proto.ondewo.s2t.
|
|
6598
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6406
6599
|
*/
|
|
6407
|
-
proto.ondewo.s2t.
|
|
6600
|
+
proto.ondewo.s2t.AcousticModels.prototype.clearQuartznetTriton = function() {
|
|
6408
6601
|
return this.setQuartznetTriton(undefined);
|
|
6409
6602
|
};
|
|
6410
6603
|
|
|
@@ -6413,7 +6606,7 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.clearQuartznetTriton = function() {
|
|
|
6413
6606
|
* Returns whether this field is set.
|
|
6414
6607
|
* @return {boolean}
|
|
6415
6608
|
*/
|
|
6416
|
-
proto.ondewo.s2t.
|
|
6609
|
+
proto.ondewo.s2t.AcousticModels.prototype.hasQuartznetTriton = function() {
|
|
6417
6610
|
return jspb.Message.getField(this, 3) != null;
|
|
6418
6611
|
};
|
|
6419
6612
|
|
|
@@ -6422,7 +6615,7 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.hasQuartznetTriton = function() {
|
|
|
6422
6615
|
* optional Wav2Vec wav2vec = 4;
|
|
6423
6616
|
* @return {?proto.ondewo.s2t.Wav2Vec}
|
|
6424
6617
|
*/
|
|
6425
|
-
proto.ondewo.s2t.
|
|
6618
|
+
proto.ondewo.s2t.AcousticModels.prototype.getWav2vec = function() {
|
|
6426
6619
|
return /** @type{?proto.ondewo.s2t.Wav2Vec} */ (
|
|
6427
6620
|
jspb.Message.getWrapperField(this, proto.ondewo.s2t.Wav2Vec, 4));
|
|
6428
6621
|
};
|
|
@@ -6430,18 +6623,18 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.getWav2vec = function() {
|
|
|
6430
6623
|
|
|
6431
6624
|
/**
|
|
6432
6625
|
* @param {?proto.ondewo.s2t.Wav2Vec|undefined} value
|
|
6433
|
-
* @return {!proto.ondewo.s2t.
|
|
6626
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6434
6627
|
*/
|
|
6435
|
-
proto.ondewo.s2t.
|
|
6628
|
+
proto.ondewo.s2t.AcousticModels.prototype.setWav2vec = function(value) {
|
|
6436
6629
|
return jspb.Message.setWrapperField(this, 4, value);
|
|
6437
6630
|
};
|
|
6438
6631
|
|
|
6439
6632
|
|
|
6440
6633
|
/**
|
|
6441
6634
|
* Clears the message field making it undefined.
|
|
6442
|
-
* @return {!proto.ondewo.s2t.
|
|
6635
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6443
6636
|
*/
|
|
6444
|
-
proto.ondewo.s2t.
|
|
6637
|
+
proto.ondewo.s2t.AcousticModels.prototype.clearWav2vec = function() {
|
|
6445
6638
|
return this.setWav2vec(undefined);
|
|
6446
6639
|
};
|
|
6447
6640
|
|
|
@@ -6450,7 +6643,7 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.clearWav2vec = function() {
|
|
|
6450
6643
|
* Returns whether this field is set.
|
|
6451
6644
|
* @return {boolean}
|
|
6452
6645
|
*/
|
|
6453
|
-
proto.ondewo.s2t.
|
|
6646
|
+
proto.ondewo.s2t.AcousticModels.prototype.hasWav2vec = function() {
|
|
6454
6647
|
return jspb.Message.getField(this, 4) != null;
|
|
6455
6648
|
};
|
|
6456
6649
|
|
|
@@ -6459,7 +6652,7 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.hasWav2vec = function() {
|
|
|
6459
6652
|
* optional Wav2VecTriton wav2vec_triton = 5;
|
|
6460
6653
|
* @return {?proto.ondewo.s2t.Wav2VecTriton}
|
|
6461
6654
|
*/
|
|
6462
|
-
proto.ondewo.s2t.
|
|
6655
|
+
proto.ondewo.s2t.AcousticModels.prototype.getWav2vecTriton = function() {
|
|
6463
6656
|
return /** @type{?proto.ondewo.s2t.Wav2VecTriton} */ (
|
|
6464
6657
|
jspb.Message.getWrapperField(this, proto.ondewo.s2t.Wav2VecTriton, 5));
|
|
6465
6658
|
};
|
|
@@ -6467,18 +6660,18 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.getWav2vecTriton = function() {
|
|
|
6467
6660
|
|
|
6468
6661
|
/**
|
|
6469
6662
|
* @param {?proto.ondewo.s2t.Wav2VecTriton|undefined} value
|
|
6470
|
-
* @return {!proto.ondewo.s2t.
|
|
6663
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6471
6664
|
*/
|
|
6472
|
-
proto.ondewo.s2t.
|
|
6665
|
+
proto.ondewo.s2t.AcousticModels.prototype.setWav2vecTriton = function(value) {
|
|
6473
6666
|
return jspb.Message.setWrapperField(this, 5, value);
|
|
6474
6667
|
};
|
|
6475
6668
|
|
|
6476
6669
|
|
|
6477
6670
|
/**
|
|
6478
6671
|
* Clears the message field making it undefined.
|
|
6479
|
-
* @return {!proto.ondewo.s2t.
|
|
6672
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6480
6673
|
*/
|
|
6481
|
-
proto.ondewo.s2t.
|
|
6674
|
+
proto.ondewo.s2t.AcousticModels.prototype.clearWav2vecTriton = function() {
|
|
6482
6675
|
return this.setWav2vecTriton(undefined);
|
|
6483
6676
|
};
|
|
6484
6677
|
|
|
@@ -6487,11 +6680,85 @@ proto.ondewo.s2t.CtcAcousticModels.prototype.clearWav2vecTriton = function() {
|
|
|
6487
6680
|
* Returns whether this field is set.
|
|
6488
6681
|
* @return {boolean}
|
|
6489
6682
|
*/
|
|
6490
|
-
proto.ondewo.s2t.
|
|
6683
|
+
proto.ondewo.s2t.AcousticModels.prototype.hasWav2vecTriton = function() {
|
|
6491
6684
|
return jspb.Message.getField(this, 5) != null;
|
|
6492
6685
|
};
|
|
6493
6686
|
|
|
6494
6687
|
|
|
6688
|
+
/**
|
|
6689
|
+
* optional Whisper whisper = 6;
|
|
6690
|
+
* @return {?proto.ondewo.s2t.Whisper}
|
|
6691
|
+
*/
|
|
6692
|
+
proto.ondewo.s2t.AcousticModels.prototype.getWhisper = function() {
|
|
6693
|
+
return /** @type{?proto.ondewo.s2t.Whisper} */ (
|
|
6694
|
+
jspb.Message.getWrapperField(this, proto.ondewo.s2t.Whisper, 6));
|
|
6695
|
+
};
|
|
6696
|
+
|
|
6697
|
+
|
|
6698
|
+
/**
|
|
6699
|
+
* @param {?proto.ondewo.s2t.Whisper|undefined} value
|
|
6700
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6701
|
+
*/
|
|
6702
|
+
proto.ondewo.s2t.AcousticModels.prototype.setWhisper = function(value) {
|
|
6703
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
6704
|
+
};
|
|
6705
|
+
|
|
6706
|
+
|
|
6707
|
+
/**
|
|
6708
|
+
* Clears the message field making it undefined.
|
|
6709
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6710
|
+
*/
|
|
6711
|
+
proto.ondewo.s2t.AcousticModels.prototype.clearWhisper = function() {
|
|
6712
|
+
return this.setWhisper(undefined);
|
|
6713
|
+
};
|
|
6714
|
+
|
|
6715
|
+
|
|
6716
|
+
/**
|
|
6717
|
+
* Returns whether this field is set.
|
|
6718
|
+
* @return {boolean}
|
|
6719
|
+
*/
|
|
6720
|
+
proto.ondewo.s2t.AcousticModels.prototype.hasWhisper = function() {
|
|
6721
|
+
return jspb.Message.getField(this, 6) != null;
|
|
6722
|
+
};
|
|
6723
|
+
|
|
6724
|
+
|
|
6725
|
+
/**
|
|
6726
|
+
* optional WhisperTriton whisper_triton = 7;
|
|
6727
|
+
* @return {?proto.ondewo.s2t.WhisperTriton}
|
|
6728
|
+
*/
|
|
6729
|
+
proto.ondewo.s2t.AcousticModels.prototype.getWhisperTriton = function() {
|
|
6730
|
+
return /** @type{?proto.ondewo.s2t.WhisperTriton} */ (
|
|
6731
|
+
jspb.Message.getWrapperField(this, proto.ondewo.s2t.WhisperTriton, 7));
|
|
6732
|
+
};
|
|
6733
|
+
|
|
6734
|
+
|
|
6735
|
+
/**
|
|
6736
|
+
* @param {?proto.ondewo.s2t.WhisperTriton|undefined} value
|
|
6737
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6738
|
+
*/
|
|
6739
|
+
proto.ondewo.s2t.AcousticModels.prototype.setWhisperTriton = function(value) {
|
|
6740
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
6741
|
+
};
|
|
6742
|
+
|
|
6743
|
+
|
|
6744
|
+
/**
|
|
6745
|
+
* Clears the message field making it undefined.
|
|
6746
|
+
* @return {!proto.ondewo.s2t.AcousticModels} returns this
|
|
6747
|
+
*/
|
|
6748
|
+
proto.ondewo.s2t.AcousticModels.prototype.clearWhisperTriton = function() {
|
|
6749
|
+
return this.setWhisperTriton(undefined);
|
|
6750
|
+
};
|
|
6751
|
+
|
|
6752
|
+
|
|
6753
|
+
/**
|
|
6754
|
+
* Returns whether this field is set.
|
|
6755
|
+
* @return {boolean}
|
|
6756
|
+
*/
|
|
6757
|
+
proto.ondewo.s2t.AcousticModels.prototype.hasWhisperTriton = function() {
|
|
6758
|
+
return jspb.Message.getField(this, 7) != null;
|
|
6759
|
+
};
|
|
6760
|
+
|
|
6761
|
+
|
|
6495
6762
|
|
|
6496
6763
|
|
|
6497
6764
|
|
|
@@ -6508,8 +6775,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
6508
6775
|
* http://goto/soy-param-migration
|
|
6509
6776
|
* @return {!Object}
|
|
6510
6777
|
*/
|
|
6511
|
-
proto.ondewo.s2t.
|
|
6512
|
-
return proto.ondewo.s2t.
|
|
6778
|
+
proto.ondewo.s2t.Whisper.prototype.toObject = function(opt_includeInstance) {
|
|
6779
|
+
return proto.ondewo.s2t.Whisper.toObject(opt_includeInstance, this);
|
|
6513
6780
|
};
|
|
6514
6781
|
|
|
6515
6782
|
|
|
@@ -6518,14 +6785,15 @@ proto.ondewo.s2t.Wav2Vec.prototype.toObject = function(opt_includeInstance) {
|
|
|
6518
6785
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6519
6786
|
* the JSPB instance for transitional soy proto support:
|
|
6520
6787
|
* http://goto/soy-param-migration
|
|
6521
|
-
* @param {!proto.ondewo.s2t.
|
|
6788
|
+
* @param {!proto.ondewo.s2t.Whisper} msg The msg instance to transform.
|
|
6522
6789
|
* @return {!Object}
|
|
6523
6790
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6524
6791
|
*/
|
|
6525
|
-
proto.ondewo.s2t.
|
|
6792
|
+
proto.ondewo.s2t.Whisper.toObject = function(includeInstance, msg) {
|
|
6526
6793
|
var f, obj = {
|
|
6527
6794
|
modelPath: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6528
|
-
useGpu: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
6795
|
+
useGpu: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
6796
|
+
language: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
6529
6797
|
};
|
|
6530
6798
|
|
|
6531
6799
|
if (includeInstance) {
|
|
@@ -6539,23 +6807,23 @@ proto.ondewo.s2t.Wav2Vec.toObject = function(includeInstance, msg) {
|
|
|
6539
6807
|
/**
|
|
6540
6808
|
* Deserializes binary data (in protobuf wire format).
|
|
6541
6809
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6542
|
-
* @return {!proto.ondewo.s2t.
|
|
6810
|
+
* @return {!proto.ondewo.s2t.Whisper}
|
|
6543
6811
|
*/
|
|
6544
|
-
proto.ondewo.s2t.
|
|
6812
|
+
proto.ondewo.s2t.Whisper.deserializeBinary = function(bytes) {
|
|
6545
6813
|
var reader = new jspb.BinaryReader(bytes);
|
|
6546
|
-
var msg = new proto.ondewo.s2t.
|
|
6547
|
-
return proto.ondewo.s2t.
|
|
6814
|
+
var msg = new proto.ondewo.s2t.Whisper;
|
|
6815
|
+
return proto.ondewo.s2t.Whisper.deserializeBinaryFromReader(msg, reader);
|
|
6548
6816
|
};
|
|
6549
6817
|
|
|
6550
6818
|
|
|
6551
6819
|
/**
|
|
6552
6820
|
* Deserializes binary data (in protobuf wire format) from the
|
|
6553
6821
|
* given reader into the given message object.
|
|
6554
|
-
* @param {!proto.ondewo.s2t.
|
|
6822
|
+
* @param {!proto.ondewo.s2t.Whisper} msg The message object to deserialize into.
|
|
6555
6823
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6556
|
-
* @return {!proto.ondewo.s2t.
|
|
6824
|
+
* @return {!proto.ondewo.s2t.Whisper}
|
|
6557
6825
|
*/
|
|
6558
|
-
proto.ondewo.s2t.
|
|
6826
|
+
proto.ondewo.s2t.Whisper.deserializeBinaryFromReader = function(msg, reader) {
|
|
6559
6827
|
while (reader.nextField()) {
|
|
6560
6828
|
if (reader.isEndGroup()) {
|
|
6561
6829
|
break;
|
|
@@ -6570,6 +6838,10 @@ proto.ondewo.s2t.Wav2Vec.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
6570
6838
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
6571
6839
|
msg.setUseGpu(value);
|
|
6572
6840
|
break;
|
|
6841
|
+
case 3:
|
|
6842
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6843
|
+
msg.setLanguage(value);
|
|
6844
|
+
break;
|
|
6573
6845
|
default:
|
|
6574
6846
|
reader.skipField();
|
|
6575
6847
|
break;
|
|
@@ -6583,9 +6855,9 @@ proto.ondewo.s2t.Wav2Vec.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
6583
6855
|
* Serializes the message to binary data (in protobuf wire format).
|
|
6584
6856
|
* @return {!Uint8Array}
|
|
6585
6857
|
*/
|
|
6586
|
-
proto.ondewo.s2t.
|
|
6858
|
+
proto.ondewo.s2t.Whisper.prototype.serializeBinary = function() {
|
|
6587
6859
|
var writer = new jspb.BinaryWriter();
|
|
6588
|
-
proto.ondewo.s2t.
|
|
6860
|
+
proto.ondewo.s2t.Whisper.serializeBinaryToWriter(this, writer);
|
|
6589
6861
|
return writer.getResultBuffer();
|
|
6590
6862
|
};
|
|
6591
6863
|
|
|
@@ -6593,11 +6865,11 @@ proto.ondewo.s2t.Wav2Vec.prototype.serializeBinary = function() {
|
|
|
6593
6865
|
/**
|
|
6594
6866
|
* Serializes the given message to binary data (in protobuf wire
|
|
6595
6867
|
* format), writing to the given BinaryWriter.
|
|
6596
|
-
* @param {!proto.ondewo.s2t.
|
|
6868
|
+
* @param {!proto.ondewo.s2t.Whisper} message
|
|
6597
6869
|
* @param {!jspb.BinaryWriter} writer
|
|
6598
6870
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6599
6871
|
*/
|
|
6600
|
-
proto.ondewo.s2t.
|
|
6872
|
+
proto.ondewo.s2t.Whisper.serializeBinaryToWriter = function(message, writer) {
|
|
6601
6873
|
var f = undefined;
|
|
6602
6874
|
f = message.getModelPath();
|
|
6603
6875
|
if (f.length > 0) {
|
|
@@ -6613,6 +6885,13 @@ proto.ondewo.s2t.Wav2Vec.serializeBinaryToWriter = function(message, writer) {
|
|
|
6613
6885
|
f
|
|
6614
6886
|
);
|
|
6615
6887
|
}
|
|
6888
|
+
f = message.getLanguage();
|
|
6889
|
+
if (f.length > 0) {
|
|
6890
|
+
writer.writeString(
|
|
6891
|
+
3,
|
|
6892
|
+
f
|
|
6893
|
+
);
|
|
6894
|
+
}
|
|
6616
6895
|
};
|
|
6617
6896
|
|
|
6618
6897
|
|
|
@@ -6620,16 +6899,16 @@ proto.ondewo.s2t.Wav2Vec.serializeBinaryToWriter = function(message, writer) {
|
|
|
6620
6899
|
* optional string model_path = 1;
|
|
6621
6900
|
* @return {string}
|
|
6622
6901
|
*/
|
|
6623
|
-
proto.ondewo.s2t.
|
|
6902
|
+
proto.ondewo.s2t.Whisper.prototype.getModelPath = function() {
|
|
6624
6903
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6625
6904
|
};
|
|
6626
6905
|
|
|
6627
6906
|
|
|
6628
6907
|
/**
|
|
6629
6908
|
* @param {string} value
|
|
6630
|
-
* @return {!proto.ondewo.s2t.
|
|
6909
|
+
* @return {!proto.ondewo.s2t.Whisper} returns this
|
|
6631
6910
|
*/
|
|
6632
|
-
proto.ondewo.s2t.
|
|
6911
|
+
proto.ondewo.s2t.Whisper.prototype.setModelPath = function(value) {
|
|
6633
6912
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6634
6913
|
};
|
|
6635
6914
|
|
|
@@ -6638,20 +6917,38 @@ proto.ondewo.s2t.Wav2Vec.prototype.setModelPath = function(value) {
|
|
|
6638
6917
|
* optional bool use_gpu = 2;
|
|
6639
6918
|
* @return {boolean}
|
|
6640
6919
|
*/
|
|
6641
|
-
proto.ondewo.s2t.
|
|
6920
|
+
proto.ondewo.s2t.Whisper.prototype.getUseGpu = function() {
|
|
6642
6921
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
6643
6922
|
};
|
|
6644
6923
|
|
|
6645
6924
|
|
|
6646
6925
|
/**
|
|
6647
6926
|
* @param {boolean} value
|
|
6648
|
-
* @return {!proto.ondewo.s2t.
|
|
6927
|
+
* @return {!proto.ondewo.s2t.Whisper} returns this
|
|
6649
6928
|
*/
|
|
6650
|
-
proto.ondewo.s2t.
|
|
6929
|
+
proto.ondewo.s2t.Whisper.prototype.setUseGpu = function(value) {
|
|
6651
6930
|
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
6652
6931
|
};
|
|
6653
6932
|
|
|
6654
6933
|
|
|
6934
|
+
/**
|
|
6935
|
+
* optional string language = 3;
|
|
6936
|
+
* @return {string}
|
|
6937
|
+
*/
|
|
6938
|
+
proto.ondewo.s2t.Whisper.prototype.getLanguage = function() {
|
|
6939
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
6940
|
+
};
|
|
6941
|
+
|
|
6942
|
+
|
|
6943
|
+
/**
|
|
6944
|
+
* @param {string} value
|
|
6945
|
+
* @return {!proto.ondewo.s2t.Whisper} returns this
|
|
6946
|
+
*/
|
|
6947
|
+
proto.ondewo.s2t.Whisper.prototype.setLanguage = function(value) {
|
|
6948
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
6949
|
+
};
|
|
6950
|
+
|
|
6951
|
+
|
|
6655
6952
|
|
|
6656
6953
|
|
|
6657
6954
|
|
|
@@ -6668,8 +6965,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
6668
6965
|
* http://goto/soy-param-migration
|
|
6669
6966
|
* @return {!Object}
|
|
6670
6967
|
*/
|
|
6671
|
-
proto.ondewo.s2t.
|
|
6672
|
-
return proto.ondewo.s2t.
|
|
6968
|
+
proto.ondewo.s2t.WhisperTriton.prototype.toObject = function(opt_includeInstance) {
|
|
6969
|
+
return proto.ondewo.s2t.WhisperTriton.toObject(opt_includeInstance, this);
|
|
6673
6970
|
};
|
|
6674
6971
|
|
|
6675
6972
|
|
|
@@ -6678,11 +6975,391 @@ proto.ondewo.s2t.Wav2VecTriton.prototype.toObject = function(opt_includeInstance
|
|
|
6678
6975
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6679
6976
|
* the JSPB instance for transitional soy proto support:
|
|
6680
6977
|
* http://goto/soy-param-migration
|
|
6681
|
-
* @param {!proto.ondewo.s2t.
|
|
6978
|
+
* @param {!proto.ondewo.s2t.WhisperTriton} msg The msg instance to transform.
|
|
6682
6979
|
* @return {!Object}
|
|
6683
6980
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6684
6981
|
*/
|
|
6685
|
-
proto.ondewo.s2t.
|
|
6982
|
+
proto.ondewo.s2t.WhisperTriton.toObject = function(includeInstance, msg) {
|
|
6983
|
+
var f, obj = {
|
|
6984
|
+
processorPath: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6985
|
+
tritonModelName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
6986
|
+
tritonModelVersion: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
6987
|
+
checkStatusTimeout: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
6988
|
+
};
|
|
6989
|
+
|
|
6990
|
+
if (includeInstance) {
|
|
6991
|
+
obj.$jspbMessageInstance = msg;
|
|
6992
|
+
}
|
|
6993
|
+
return obj;
|
|
6994
|
+
};
|
|
6995
|
+
}
|
|
6996
|
+
|
|
6997
|
+
|
|
6998
|
+
/**
|
|
6999
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7000
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7001
|
+
* @return {!proto.ondewo.s2t.WhisperTriton}
|
|
7002
|
+
*/
|
|
7003
|
+
proto.ondewo.s2t.WhisperTriton.deserializeBinary = function(bytes) {
|
|
7004
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7005
|
+
var msg = new proto.ondewo.s2t.WhisperTriton;
|
|
7006
|
+
return proto.ondewo.s2t.WhisperTriton.deserializeBinaryFromReader(msg, reader);
|
|
7007
|
+
};
|
|
7008
|
+
|
|
7009
|
+
|
|
7010
|
+
/**
|
|
7011
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7012
|
+
* given reader into the given message object.
|
|
7013
|
+
* @param {!proto.ondewo.s2t.WhisperTriton} msg The message object to deserialize into.
|
|
7014
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7015
|
+
* @return {!proto.ondewo.s2t.WhisperTriton}
|
|
7016
|
+
*/
|
|
7017
|
+
proto.ondewo.s2t.WhisperTriton.deserializeBinaryFromReader = function(msg, reader) {
|
|
7018
|
+
while (reader.nextField()) {
|
|
7019
|
+
if (reader.isEndGroup()) {
|
|
7020
|
+
break;
|
|
7021
|
+
}
|
|
7022
|
+
var field = reader.getFieldNumber();
|
|
7023
|
+
switch (field) {
|
|
7024
|
+
case 1:
|
|
7025
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7026
|
+
msg.setProcessorPath(value);
|
|
7027
|
+
break;
|
|
7028
|
+
case 2:
|
|
7029
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7030
|
+
msg.setTritonModelName(value);
|
|
7031
|
+
break;
|
|
7032
|
+
case 3:
|
|
7033
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7034
|
+
msg.setTritonModelVersion(value);
|
|
7035
|
+
break;
|
|
7036
|
+
case 4:
|
|
7037
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
7038
|
+
msg.setCheckStatusTimeout(value);
|
|
7039
|
+
break;
|
|
7040
|
+
default:
|
|
7041
|
+
reader.skipField();
|
|
7042
|
+
break;
|
|
7043
|
+
}
|
|
7044
|
+
}
|
|
7045
|
+
return msg;
|
|
7046
|
+
};
|
|
7047
|
+
|
|
7048
|
+
|
|
7049
|
+
/**
|
|
7050
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7051
|
+
* @return {!Uint8Array}
|
|
7052
|
+
*/
|
|
7053
|
+
proto.ondewo.s2t.WhisperTriton.prototype.serializeBinary = function() {
|
|
7054
|
+
var writer = new jspb.BinaryWriter();
|
|
7055
|
+
proto.ondewo.s2t.WhisperTriton.serializeBinaryToWriter(this, writer);
|
|
7056
|
+
return writer.getResultBuffer();
|
|
7057
|
+
};
|
|
7058
|
+
|
|
7059
|
+
|
|
7060
|
+
/**
|
|
7061
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7062
|
+
* format), writing to the given BinaryWriter.
|
|
7063
|
+
* @param {!proto.ondewo.s2t.WhisperTriton} message
|
|
7064
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7065
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7066
|
+
*/
|
|
7067
|
+
proto.ondewo.s2t.WhisperTriton.serializeBinaryToWriter = function(message, writer) {
|
|
7068
|
+
var f = undefined;
|
|
7069
|
+
f = message.getProcessorPath();
|
|
7070
|
+
if (f.length > 0) {
|
|
7071
|
+
writer.writeString(
|
|
7072
|
+
1,
|
|
7073
|
+
f
|
|
7074
|
+
);
|
|
7075
|
+
}
|
|
7076
|
+
f = message.getTritonModelName();
|
|
7077
|
+
if (f.length > 0) {
|
|
7078
|
+
writer.writeString(
|
|
7079
|
+
2,
|
|
7080
|
+
f
|
|
7081
|
+
);
|
|
7082
|
+
}
|
|
7083
|
+
f = message.getTritonModelVersion();
|
|
7084
|
+
if (f.length > 0) {
|
|
7085
|
+
writer.writeString(
|
|
7086
|
+
3,
|
|
7087
|
+
f
|
|
7088
|
+
);
|
|
7089
|
+
}
|
|
7090
|
+
f = message.getCheckStatusTimeout();
|
|
7091
|
+
if (f !== 0) {
|
|
7092
|
+
writer.writeInt64(
|
|
7093
|
+
4,
|
|
7094
|
+
f
|
|
7095
|
+
);
|
|
7096
|
+
}
|
|
7097
|
+
};
|
|
7098
|
+
|
|
7099
|
+
|
|
7100
|
+
/**
|
|
7101
|
+
* optional string processor_path = 1;
|
|
7102
|
+
* @return {string}
|
|
7103
|
+
*/
|
|
7104
|
+
proto.ondewo.s2t.WhisperTriton.prototype.getProcessorPath = function() {
|
|
7105
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7106
|
+
};
|
|
7107
|
+
|
|
7108
|
+
|
|
7109
|
+
/**
|
|
7110
|
+
* @param {string} value
|
|
7111
|
+
* @return {!proto.ondewo.s2t.WhisperTriton} returns this
|
|
7112
|
+
*/
|
|
7113
|
+
proto.ondewo.s2t.WhisperTriton.prototype.setProcessorPath = function(value) {
|
|
7114
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7115
|
+
};
|
|
7116
|
+
|
|
7117
|
+
|
|
7118
|
+
/**
|
|
7119
|
+
* optional string triton_model_name = 2;
|
|
7120
|
+
* @return {string}
|
|
7121
|
+
*/
|
|
7122
|
+
proto.ondewo.s2t.WhisperTriton.prototype.getTritonModelName = function() {
|
|
7123
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7124
|
+
};
|
|
7125
|
+
|
|
7126
|
+
|
|
7127
|
+
/**
|
|
7128
|
+
* @param {string} value
|
|
7129
|
+
* @return {!proto.ondewo.s2t.WhisperTriton} returns this
|
|
7130
|
+
*/
|
|
7131
|
+
proto.ondewo.s2t.WhisperTriton.prototype.setTritonModelName = function(value) {
|
|
7132
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7133
|
+
};
|
|
7134
|
+
|
|
7135
|
+
|
|
7136
|
+
/**
|
|
7137
|
+
* optional string triton_model_version = 3;
|
|
7138
|
+
* @return {string}
|
|
7139
|
+
*/
|
|
7140
|
+
proto.ondewo.s2t.WhisperTriton.prototype.getTritonModelVersion = function() {
|
|
7141
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
7142
|
+
};
|
|
7143
|
+
|
|
7144
|
+
|
|
7145
|
+
/**
|
|
7146
|
+
* @param {string} value
|
|
7147
|
+
* @return {!proto.ondewo.s2t.WhisperTriton} returns this
|
|
7148
|
+
*/
|
|
7149
|
+
proto.ondewo.s2t.WhisperTriton.prototype.setTritonModelVersion = function(value) {
|
|
7150
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
7151
|
+
};
|
|
7152
|
+
|
|
7153
|
+
|
|
7154
|
+
/**
|
|
7155
|
+
* optional int64 check_status_timeout = 4;
|
|
7156
|
+
* @return {number}
|
|
7157
|
+
*/
|
|
7158
|
+
proto.ondewo.s2t.WhisperTriton.prototype.getCheckStatusTimeout = function() {
|
|
7159
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
7160
|
+
};
|
|
7161
|
+
|
|
7162
|
+
|
|
7163
|
+
/**
|
|
7164
|
+
* @param {number} value
|
|
7165
|
+
* @return {!proto.ondewo.s2t.WhisperTriton} returns this
|
|
7166
|
+
*/
|
|
7167
|
+
proto.ondewo.s2t.WhisperTriton.prototype.setCheckStatusTimeout = function(value) {
|
|
7168
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
7169
|
+
};
|
|
7170
|
+
|
|
7171
|
+
|
|
7172
|
+
|
|
7173
|
+
|
|
7174
|
+
|
|
7175
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7176
|
+
/**
|
|
7177
|
+
* Creates an object representation of this proto.
|
|
7178
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7179
|
+
* Optional fields that are not set will be set to undefined.
|
|
7180
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7181
|
+
* For the list of reserved names please see:
|
|
7182
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7183
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7184
|
+
* JSPB instance for transitional soy proto support:
|
|
7185
|
+
* http://goto/soy-param-migration
|
|
7186
|
+
* @return {!Object}
|
|
7187
|
+
*/
|
|
7188
|
+
proto.ondewo.s2t.Wav2Vec.prototype.toObject = function(opt_includeInstance) {
|
|
7189
|
+
return proto.ondewo.s2t.Wav2Vec.toObject(opt_includeInstance, this);
|
|
7190
|
+
};
|
|
7191
|
+
|
|
7192
|
+
|
|
7193
|
+
/**
|
|
7194
|
+
* Static version of the {@see toObject} method.
|
|
7195
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7196
|
+
* the JSPB instance for transitional soy proto support:
|
|
7197
|
+
* http://goto/soy-param-migration
|
|
7198
|
+
* @param {!proto.ondewo.s2t.Wav2Vec} msg The msg instance to transform.
|
|
7199
|
+
* @return {!Object}
|
|
7200
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7201
|
+
*/
|
|
7202
|
+
proto.ondewo.s2t.Wav2Vec.toObject = function(includeInstance, msg) {
|
|
7203
|
+
var f, obj = {
|
|
7204
|
+
modelPath: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7205
|
+
useGpu: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
7206
|
+
};
|
|
7207
|
+
|
|
7208
|
+
if (includeInstance) {
|
|
7209
|
+
obj.$jspbMessageInstance = msg;
|
|
7210
|
+
}
|
|
7211
|
+
return obj;
|
|
7212
|
+
};
|
|
7213
|
+
}
|
|
7214
|
+
|
|
7215
|
+
|
|
7216
|
+
/**
|
|
7217
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7218
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7219
|
+
* @return {!proto.ondewo.s2t.Wav2Vec}
|
|
7220
|
+
*/
|
|
7221
|
+
proto.ondewo.s2t.Wav2Vec.deserializeBinary = function(bytes) {
|
|
7222
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7223
|
+
var msg = new proto.ondewo.s2t.Wav2Vec;
|
|
7224
|
+
return proto.ondewo.s2t.Wav2Vec.deserializeBinaryFromReader(msg, reader);
|
|
7225
|
+
};
|
|
7226
|
+
|
|
7227
|
+
|
|
7228
|
+
/**
|
|
7229
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7230
|
+
* given reader into the given message object.
|
|
7231
|
+
* @param {!proto.ondewo.s2t.Wav2Vec} msg The message object to deserialize into.
|
|
7232
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7233
|
+
* @return {!proto.ondewo.s2t.Wav2Vec}
|
|
7234
|
+
*/
|
|
7235
|
+
proto.ondewo.s2t.Wav2Vec.deserializeBinaryFromReader = function(msg, reader) {
|
|
7236
|
+
while (reader.nextField()) {
|
|
7237
|
+
if (reader.isEndGroup()) {
|
|
7238
|
+
break;
|
|
7239
|
+
}
|
|
7240
|
+
var field = reader.getFieldNumber();
|
|
7241
|
+
switch (field) {
|
|
7242
|
+
case 1:
|
|
7243
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7244
|
+
msg.setModelPath(value);
|
|
7245
|
+
break;
|
|
7246
|
+
case 2:
|
|
7247
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
7248
|
+
msg.setUseGpu(value);
|
|
7249
|
+
break;
|
|
7250
|
+
default:
|
|
7251
|
+
reader.skipField();
|
|
7252
|
+
break;
|
|
7253
|
+
}
|
|
7254
|
+
}
|
|
7255
|
+
return msg;
|
|
7256
|
+
};
|
|
7257
|
+
|
|
7258
|
+
|
|
7259
|
+
/**
|
|
7260
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7261
|
+
* @return {!Uint8Array}
|
|
7262
|
+
*/
|
|
7263
|
+
proto.ondewo.s2t.Wav2Vec.prototype.serializeBinary = function() {
|
|
7264
|
+
var writer = new jspb.BinaryWriter();
|
|
7265
|
+
proto.ondewo.s2t.Wav2Vec.serializeBinaryToWriter(this, writer);
|
|
7266
|
+
return writer.getResultBuffer();
|
|
7267
|
+
};
|
|
7268
|
+
|
|
7269
|
+
|
|
7270
|
+
/**
|
|
7271
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7272
|
+
* format), writing to the given BinaryWriter.
|
|
7273
|
+
* @param {!proto.ondewo.s2t.Wav2Vec} message
|
|
7274
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7275
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7276
|
+
*/
|
|
7277
|
+
proto.ondewo.s2t.Wav2Vec.serializeBinaryToWriter = function(message, writer) {
|
|
7278
|
+
var f = undefined;
|
|
7279
|
+
f = message.getModelPath();
|
|
7280
|
+
if (f.length > 0) {
|
|
7281
|
+
writer.writeString(
|
|
7282
|
+
1,
|
|
7283
|
+
f
|
|
7284
|
+
);
|
|
7285
|
+
}
|
|
7286
|
+
f = message.getUseGpu();
|
|
7287
|
+
if (f) {
|
|
7288
|
+
writer.writeBool(
|
|
7289
|
+
2,
|
|
7290
|
+
f
|
|
7291
|
+
);
|
|
7292
|
+
}
|
|
7293
|
+
};
|
|
7294
|
+
|
|
7295
|
+
|
|
7296
|
+
/**
|
|
7297
|
+
* optional string model_path = 1;
|
|
7298
|
+
* @return {string}
|
|
7299
|
+
*/
|
|
7300
|
+
proto.ondewo.s2t.Wav2Vec.prototype.getModelPath = function() {
|
|
7301
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7302
|
+
};
|
|
7303
|
+
|
|
7304
|
+
|
|
7305
|
+
/**
|
|
7306
|
+
* @param {string} value
|
|
7307
|
+
* @return {!proto.ondewo.s2t.Wav2Vec} returns this
|
|
7308
|
+
*/
|
|
7309
|
+
proto.ondewo.s2t.Wav2Vec.prototype.setModelPath = function(value) {
|
|
7310
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7311
|
+
};
|
|
7312
|
+
|
|
7313
|
+
|
|
7314
|
+
/**
|
|
7315
|
+
* optional bool use_gpu = 2;
|
|
7316
|
+
* @return {boolean}
|
|
7317
|
+
*/
|
|
7318
|
+
proto.ondewo.s2t.Wav2Vec.prototype.getUseGpu = function() {
|
|
7319
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
7320
|
+
};
|
|
7321
|
+
|
|
7322
|
+
|
|
7323
|
+
/**
|
|
7324
|
+
* @param {boolean} value
|
|
7325
|
+
* @return {!proto.ondewo.s2t.Wav2Vec} returns this
|
|
7326
|
+
*/
|
|
7327
|
+
proto.ondewo.s2t.Wav2Vec.prototype.setUseGpu = function(value) {
|
|
7328
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
7329
|
+
};
|
|
7330
|
+
|
|
7331
|
+
|
|
7332
|
+
|
|
7333
|
+
|
|
7334
|
+
|
|
7335
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7336
|
+
/**
|
|
7337
|
+
* Creates an object representation of this proto.
|
|
7338
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7339
|
+
* Optional fields that are not set will be set to undefined.
|
|
7340
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7341
|
+
* For the list of reserved names please see:
|
|
7342
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7343
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7344
|
+
* JSPB instance for transitional soy proto support:
|
|
7345
|
+
* http://goto/soy-param-migration
|
|
7346
|
+
* @return {!Object}
|
|
7347
|
+
*/
|
|
7348
|
+
proto.ondewo.s2t.Wav2VecTriton.prototype.toObject = function(opt_includeInstance) {
|
|
7349
|
+
return proto.ondewo.s2t.Wav2VecTriton.toObject(opt_includeInstance, this);
|
|
7350
|
+
};
|
|
7351
|
+
|
|
7352
|
+
|
|
7353
|
+
/**
|
|
7354
|
+
* Static version of the {@see toObject} method.
|
|
7355
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7356
|
+
* the JSPB instance for transitional soy proto support:
|
|
7357
|
+
* http://goto/soy-param-migration
|
|
7358
|
+
* @param {!proto.ondewo.s2t.Wav2VecTriton} msg The msg instance to transform.
|
|
7359
|
+
* @return {!Object}
|
|
7360
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7361
|
+
*/
|
|
7362
|
+
proto.ondewo.s2t.Wav2VecTriton.toObject = function(includeInstance, msg) {
|
|
6686
7363
|
var f, obj = {
|
|
6687
7364
|
processorPath: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6688
7365
|
tritonModelName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
@@ -8168,7 +8845,7 @@ proto.ondewo.s2t.StreamingSpeechRecognition.prototype.toObject = function(opt_in
|
|
|
8168
8845
|
proto.ondewo.s2t.StreamingSpeechRecognition.toObject = function(includeInstance, msg) {
|
|
8169
8846
|
var f, obj = {
|
|
8170
8847
|
transcribeNotFinal: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
8171
|
-
|
|
8848
|
+
decodingMethod: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8172
8849
|
samplingRate: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
8173
8850
|
minAudioChunkSize: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
8174
8851
|
startOfUtteranceThreshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
|
@@ -8216,7 +8893,7 @@ proto.ondewo.s2t.StreamingSpeechRecognition.deserializeBinaryFromReader = functi
|
|
|
8216
8893
|
break;
|
|
8217
8894
|
case 2:
|
|
8218
8895
|
var value = /** @type {string} */ (reader.readString());
|
|
8219
|
-
msg.
|
|
8896
|
+
msg.setDecodingMethod(value);
|
|
8220
8897
|
break;
|
|
8221
8898
|
case 3:
|
|
8222
8899
|
var value = /** @type {number} */ (reader.readInt64());
|
|
@@ -8274,7 +8951,7 @@ proto.ondewo.s2t.StreamingSpeechRecognition.serializeBinaryToWriter = function(m
|
|
|
8274
8951
|
f
|
|
8275
8952
|
);
|
|
8276
8953
|
}
|
|
8277
|
-
f = message.
|
|
8954
|
+
f = message.getDecodingMethod();
|
|
8278
8955
|
if (f.length > 0) {
|
|
8279
8956
|
writer.writeString(
|
|
8280
8957
|
2,
|
|
@@ -8338,10 +9015,10 @@ proto.ondewo.s2t.StreamingSpeechRecognition.prototype.setTranscribeNotFinal = fu
|
|
|
8338
9015
|
|
|
8339
9016
|
|
|
8340
9017
|
/**
|
|
8341
|
-
* optional string
|
|
9018
|
+
* optional string decoding_method = 2;
|
|
8342
9019
|
* @return {string}
|
|
8343
9020
|
*/
|
|
8344
|
-
proto.ondewo.s2t.StreamingSpeechRecognition.prototype.
|
|
9021
|
+
proto.ondewo.s2t.StreamingSpeechRecognition.prototype.getDecodingMethod = function() {
|
|
8345
9022
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
8346
9023
|
};
|
|
8347
9024
|
|
|
@@ -8350,7 +9027,7 @@ proto.ondewo.s2t.StreamingSpeechRecognition.prototype.getCtcDecodingMethod = fun
|
|
|
8350
9027
|
* @param {string} value
|
|
8351
9028
|
* @return {!proto.ondewo.s2t.StreamingSpeechRecognition} returns this
|
|
8352
9029
|
*/
|
|
8353
|
-
proto.ondewo.s2t.StreamingSpeechRecognition.prototype.
|
|
9030
|
+
proto.ondewo.s2t.StreamingSpeechRecognition.prototype.setDecodingMethod = function(value) {
|
|
8354
9031
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
8355
9032
|
};
|
|
8356
9033
|
|
|
@@ -11248,10 +11925,20 @@ proto.ondewo.s2t.TrainUserLanguageModelRequest.prototype.setOrder = function(val
|
|
|
11248
11925
|
/**
|
|
11249
11926
|
* @enum {number}
|
|
11250
11927
|
*/
|
|
11251
|
-
proto.ondewo.s2t.
|
|
11928
|
+
proto.ondewo.s2t.InferenceBackend = {
|
|
11929
|
+
INFERENCE_BACKEND_UNKNOWN: 0,
|
|
11930
|
+
INFERENCE_BACKEND_PYTORCH: 1,
|
|
11931
|
+
INFERENCE_BACKEND_FLAX: 2
|
|
11932
|
+
};
|
|
11933
|
+
|
|
11934
|
+
/**
|
|
11935
|
+
* @enum {number}
|
|
11936
|
+
*/
|
|
11937
|
+
proto.ondewo.s2t.Decoding = {
|
|
11252
11938
|
DEFAULT: 0,
|
|
11253
11939
|
GREEDY: 1,
|
|
11254
|
-
BEAM_SEARCH_WITH_LM: 2
|
|
11940
|
+
BEAM_SEARCH_WITH_LM: 2,
|
|
11941
|
+
BEAM_SEARCH: 3
|
|
11255
11942
|
};
|
|
11256
11943
|
|
|
11257
11944
|
goog.object.extend(exports, proto.ondewo.s2t);
|