@ondewo/s2t-client-typescript 5.2.0 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/ondewo/s2t/speech-to-text_pb.d.ts +144 -57
- package/api/ondewo/s2t/speech-to-text_pb.js +1126 -422
- package/package.json +1 -1
|
@@ -23,6 +23,7 @@ goog.exportSymbol('proto.ondewo.s2t.CkptFile', null, global);
|
|
|
23
23
|
goog.exportSymbol('proto.ondewo.s2t.CreateUserLanguageModelRequest', null, global);
|
|
24
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);
|
|
@@ -65,6 +66,7 @@ goog.exportSymbol('proto.ondewo.s2t.TranscribeStreamRequest', null, global);
|
|
|
65
66
|
goog.exportSymbol('proto.ondewo.s2t.TranscribeStreamResponse', null, global);
|
|
66
67
|
goog.exportSymbol('proto.ondewo.s2t.TranscribeStreamResponse.OneofConfigCase', null, global);
|
|
67
68
|
goog.exportSymbol('proto.ondewo.s2t.Transcription', null, global);
|
|
69
|
+
goog.exportSymbol('proto.ondewo.s2t.TranscriptionAlternative', null, global);
|
|
68
70
|
goog.exportSymbol('proto.ondewo.s2t.TranscriptionReturnOptions', null, global);
|
|
69
71
|
goog.exportSymbol('proto.ondewo.s2t.UtteranceDetectionOptions', null, global);
|
|
70
72
|
goog.exportSymbol('proto.ondewo.s2t.UtteranceDetectionOptions.OneofTranscribeNotFinalCase', null, global);
|
|
@@ -73,7 +75,8 @@ goog.exportSymbol('proto.ondewo.s2t.Wav2Vec', null, global);
|
|
|
73
75
|
goog.exportSymbol('proto.ondewo.s2t.Wav2VecTriton', null, global);
|
|
74
76
|
goog.exportSymbol('proto.ondewo.s2t.Whisper', null, global);
|
|
75
77
|
goog.exportSymbol('proto.ondewo.s2t.WhisperTriton', null, global);
|
|
76
|
-
goog.exportSymbol('proto.ondewo.s2t.
|
|
78
|
+
goog.exportSymbol('proto.ondewo.s2t.WordAlternative', null, global);
|
|
79
|
+
goog.exportSymbol('proto.ondewo.s2t.WordDetail', null, global);
|
|
77
80
|
/**
|
|
78
81
|
* Generated by JsPbCodeGenerator.
|
|
79
82
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -168,16 +171,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
168
171
|
* @extends {jspb.Message}
|
|
169
172
|
* @constructor
|
|
170
173
|
*/
|
|
171
|
-
proto.ondewo.s2t.
|
|
172
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
174
|
+
proto.ondewo.s2t.Transcription = function(opt_data) {
|
|
175
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.s2t.Transcription.repeatedFields_, null);
|
|
173
176
|
};
|
|
174
|
-
goog.inherits(proto.ondewo.s2t.
|
|
177
|
+
goog.inherits(proto.ondewo.s2t.Transcription, jspb.Message);
|
|
175
178
|
if (goog.DEBUG && !COMPILED) {
|
|
176
179
|
/**
|
|
177
180
|
* @public
|
|
178
181
|
* @override
|
|
179
182
|
*/
|
|
180
|
-
proto.ondewo.s2t.
|
|
183
|
+
proto.ondewo.s2t.Transcription.displayName = 'proto.ondewo.s2t.Transcription';
|
|
181
184
|
}
|
|
182
185
|
/**
|
|
183
186
|
* Generated by JsPbCodeGenerator.
|
|
@@ -189,16 +192,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
189
192
|
* @extends {jspb.Message}
|
|
190
193
|
* @constructor
|
|
191
194
|
*/
|
|
192
|
-
proto.ondewo.s2t.
|
|
193
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
195
|
+
proto.ondewo.s2t.TranscriptionAlternative = function(opt_data) {
|
|
196
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.s2t.TranscriptionAlternative.repeatedFields_, null);
|
|
194
197
|
};
|
|
195
|
-
goog.inherits(proto.ondewo.s2t.
|
|
198
|
+
goog.inherits(proto.ondewo.s2t.TranscriptionAlternative, jspb.Message);
|
|
196
199
|
if (goog.DEBUG && !COMPILED) {
|
|
197
200
|
/**
|
|
198
201
|
* @public
|
|
199
202
|
* @override
|
|
200
203
|
*/
|
|
201
|
-
proto.ondewo.s2t.
|
|
204
|
+
proto.ondewo.s2t.TranscriptionAlternative.displayName = 'proto.ondewo.s2t.TranscriptionAlternative';
|
|
202
205
|
}
|
|
203
206
|
/**
|
|
204
207
|
* Generated by JsPbCodeGenerator.
|
|
@@ -210,16 +213,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
210
213
|
* @extends {jspb.Message}
|
|
211
214
|
* @constructor
|
|
212
215
|
*/
|
|
213
|
-
proto.ondewo.s2t.
|
|
214
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.s2t.
|
|
216
|
+
proto.ondewo.s2t.WordDetail = function(opt_data) {
|
|
217
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.s2t.WordDetail.repeatedFields_, null);
|
|
215
218
|
};
|
|
216
|
-
goog.inherits(proto.ondewo.s2t.
|
|
219
|
+
goog.inherits(proto.ondewo.s2t.WordDetail, jspb.Message);
|
|
217
220
|
if (goog.DEBUG && !COMPILED) {
|
|
218
221
|
/**
|
|
219
222
|
* @public
|
|
220
223
|
* @override
|
|
221
224
|
*/
|
|
222
|
-
proto.ondewo.s2t.
|
|
225
|
+
proto.ondewo.s2t.WordDetail.displayName = 'proto.ondewo.s2t.WordDetail';
|
|
223
226
|
}
|
|
224
227
|
/**
|
|
225
228
|
* Generated by JsPbCodeGenerator.
|
|
@@ -231,16 +234,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
231
234
|
* @extends {jspb.Message}
|
|
232
235
|
* @constructor
|
|
233
236
|
*/
|
|
234
|
-
proto.ondewo.s2t.
|
|
237
|
+
proto.ondewo.s2t.WordAlternative = function(opt_data) {
|
|
235
238
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
236
239
|
};
|
|
237
|
-
goog.inherits(proto.ondewo.s2t.
|
|
240
|
+
goog.inherits(proto.ondewo.s2t.WordAlternative, jspb.Message);
|
|
238
241
|
if (goog.DEBUG && !COMPILED) {
|
|
239
242
|
/**
|
|
240
243
|
* @public
|
|
241
244
|
* @override
|
|
242
245
|
*/
|
|
243
|
-
proto.ondewo.s2t.
|
|
246
|
+
proto.ondewo.s2t.WordAlternative.displayName = 'proto.ondewo.s2t.WordAlternative';
|
|
244
247
|
}
|
|
245
248
|
/**
|
|
246
249
|
* Generated by JsPbCodeGenerator.
|
|
@@ -252,16 +255,37 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
252
255
|
* @extends {jspb.Message}
|
|
253
256
|
* @constructor
|
|
254
257
|
*/
|
|
255
|
-
proto.ondewo.s2t.
|
|
256
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
258
|
+
proto.ondewo.s2t.TranscribeStreamRequest = function(opt_data) {
|
|
259
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
257
260
|
};
|
|
258
|
-
goog.inherits(proto.ondewo.s2t.
|
|
261
|
+
goog.inherits(proto.ondewo.s2t.TranscribeStreamRequest, jspb.Message);
|
|
259
262
|
if (goog.DEBUG && !COMPILED) {
|
|
260
263
|
/**
|
|
261
264
|
* @public
|
|
262
265
|
* @override
|
|
263
266
|
*/
|
|
264
|
-
proto.ondewo.s2t.
|
|
267
|
+
proto.ondewo.s2t.TranscribeStreamRequest.displayName = 'proto.ondewo.s2t.TranscribeStreamRequest';
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Generated by JsPbCodeGenerator.
|
|
271
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
272
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
273
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
274
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
275
|
+
* valid.
|
|
276
|
+
* @extends {jspb.Message}
|
|
277
|
+
* @constructor
|
|
278
|
+
*/
|
|
279
|
+
proto.ondewo.s2t.TranscribeStreamResponse = function(opt_data) {
|
|
280
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.s2t.TranscribeStreamResponse.repeatedFields_, proto.ondewo.s2t.TranscribeStreamResponse.oneofGroups_);
|
|
281
|
+
};
|
|
282
|
+
goog.inherits(proto.ondewo.s2t.TranscribeStreamResponse, jspb.Message);
|
|
283
|
+
if (goog.DEBUG && !COMPILED) {
|
|
284
|
+
/**
|
|
285
|
+
* @public
|
|
286
|
+
* @override
|
|
287
|
+
*/
|
|
288
|
+
proto.ondewo.s2t.TranscribeStreamResponse.displayName = 'proto.ondewo.s2t.TranscribeStreamResponse';
|
|
265
289
|
}
|
|
266
290
|
/**
|
|
267
291
|
* Generated by JsPbCodeGenerator.
|
|
@@ -273,16 +297,37 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
273
297
|
* @extends {jspb.Message}
|
|
274
298
|
* @constructor
|
|
275
299
|
*/
|
|
276
|
-
proto.ondewo.s2t.
|
|
300
|
+
proto.ondewo.s2t.TranscribeFileRequest = function(opt_data) {
|
|
277
301
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
278
302
|
};
|
|
279
|
-
goog.inherits(proto.ondewo.s2t.
|
|
303
|
+
goog.inherits(proto.ondewo.s2t.TranscribeFileRequest, jspb.Message);
|
|
304
|
+
if (goog.DEBUG && !COMPILED) {
|
|
305
|
+
/**
|
|
306
|
+
* @public
|
|
307
|
+
* @override
|
|
308
|
+
*/
|
|
309
|
+
proto.ondewo.s2t.TranscribeFileRequest.displayName = 'proto.ondewo.s2t.TranscribeFileRequest';
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Generated by JsPbCodeGenerator.
|
|
313
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
314
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
315
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
316
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
317
|
+
* valid.
|
|
318
|
+
* @extends {jspb.Message}
|
|
319
|
+
* @constructor
|
|
320
|
+
*/
|
|
321
|
+
proto.ondewo.s2t.TranscribeFileResponse = function(opt_data) {
|
|
322
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.s2t.TranscribeFileResponse.repeatedFields_, null);
|
|
323
|
+
};
|
|
324
|
+
goog.inherits(proto.ondewo.s2t.TranscribeFileResponse, jspb.Message);
|
|
280
325
|
if (goog.DEBUG && !COMPILED) {
|
|
281
326
|
/**
|
|
282
327
|
* @public
|
|
283
328
|
* @override
|
|
284
329
|
*/
|
|
285
|
-
proto.ondewo.s2t.
|
|
330
|
+
proto.ondewo.s2t.TranscribeFileResponse.displayName = 'proto.ondewo.s2t.TranscribeFileResponse';
|
|
286
331
|
}
|
|
287
332
|
/**
|
|
288
333
|
* Generated by JsPbCodeGenerator.
|
|
@@ -1665,8 +1710,11 @@ proto.ondewo.s2t.TranscriptionReturnOptions.toObject = function(includeInstance,
|
|
|
1665
1710
|
var f, obj = {
|
|
1666
1711
|
returnStartOfSpeech: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
1667
1712
|
returnAudio: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
1668
|
-
|
|
1669
|
-
|
|
1713
|
+
returnConfidenceScore: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
1714
|
+
returnAlternativeTranscriptions: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
1715
|
+
returnAlternativeTranscriptionsNr: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
1716
|
+
returnAlternativeWords: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
|
|
1717
|
+
returnAlternativeWordsNr: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
1670
1718
|
returnWordTiming: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
|
|
1671
1719
|
};
|
|
1672
1720
|
|
|
@@ -1714,11 +1762,23 @@ proto.ondewo.s2t.TranscriptionReturnOptions.deserializeBinaryFromReader = functi
|
|
|
1714
1762
|
break;
|
|
1715
1763
|
case 3:
|
|
1716
1764
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
1717
|
-
msg.
|
|
1765
|
+
msg.setReturnConfidenceScore(value);
|
|
1718
1766
|
break;
|
|
1719
1767
|
case 4:
|
|
1720
1768
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
1721
|
-
msg.
|
|
1769
|
+
msg.setReturnAlternativeTranscriptions(value);
|
|
1770
|
+
break;
|
|
1771
|
+
case 5:
|
|
1772
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1773
|
+
msg.setReturnAlternativeTranscriptionsNr(value);
|
|
1774
|
+
break;
|
|
1775
|
+
case 6:
|
|
1776
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1777
|
+
msg.setReturnAlternativeWords(value);
|
|
1778
|
+
break;
|
|
1779
|
+
case 7:
|
|
1780
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1781
|
+
msg.setReturnAlternativeWordsNr(value);
|
|
1722
1782
|
break;
|
|
1723
1783
|
case 8:
|
|
1724
1784
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
@@ -1767,20 +1827,41 @@ proto.ondewo.s2t.TranscriptionReturnOptions.serializeBinaryToWriter = function(m
|
|
|
1767
1827
|
f
|
|
1768
1828
|
);
|
|
1769
1829
|
}
|
|
1770
|
-
f = message.
|
|
1830
|
+
f = message.getReturnConfidenceScore();
|
|
1771
1831
|
if (f) {
|
|
1772
1832
|
writer.writeBool(
|
|
1773
1833
|
3,
|
|
1774
1834
|
f
|
|
1775
1835
|
);
|
|
1776
1836
|
}
|
|
1777
|
-
f = message.
|
|
1837
|
+
f = message.getReturnAlternativeTranscriptions();
|
|
1778
1838
|
if (f) {
|
|
1779
1839
|
writer.writeBool(
|
|
1780
1840
|
4,
|
|
1781
1841
|
f
|
|
1782
1842
|
);
|
|
1783
1843
|
}
|
|
1844
|
+
f = message.getReturnAlternativeTranscriptionsNr();
|
|
1845
|
+
if (f !== 0) {
|
|
1846
|
+
writer.writeInt32(
|
|
1847
|
+
5,
|
|
1848
|
+
f
|
|
1849
|
+
);
|
|
1850
|
+
}
|
|
1851
|
+
f = message.getReturnAlternativeWords();
|
|
1852
|
+
if (f) {
|
|
1853
|
+
writer.writeBool(
|
|
1854
|
+
6,
|
|
1855
|
+
f
|
|
1856
|
+
);
|
|
1857
|
+
}
|
|
1858
|
+
f = message.getReturnAlternativeWordsNr();
|
|
1859
|
+
if (f !== 0) {
|
|
1860
|
+
writer.writeInt32(
|
|
1861
|
+
7,
|
|
1862
|
+
f
|
|
1863
|
+
);
|
|
1864
|
+
}
|
|
1784
1865
|
f = message.getReturnWordTiming();
|
|
1785
1866
|
if (f) {
|
|
1786
1867
|
writer.writeBool(
|
|
@@ -1828,10 +1909,10 @@ proto.ondewo.s2t.TranscriptionReturnOptions.prototype.setReturnAudio = function(
|
|
|
1828
1909
|
|
|
1829
1910
|
|
|
1830
1911
|
/**
|
|
1831
|
-
* optional bool
|
|
1912
|
+
* optional bool return_confidence_score = 3;
|
|
1832
1913
|
* @return {boolean}
|
|
1833
1914
|
*/
|
|
1834
|
-
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.
|
|
1915
|
+
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnConfidenceScore = function() {
|
|
1835
1916
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
1836
1917
|
};
|
|
1837
1918
|
|
|
@@ -1840,16 +1921,16 @@ proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnAlternativeTransc
|
|
|
1840
1921
|
* @param {boolean} value
|
|
1841
1922
|
* @return {!proto.ondewo.s2t.TranscriptionReturnOptions} returns this
|
|
1842
1923
|
*/
|
|
1843
|
-
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.
|
|
1924
|
+
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.setReturnConfidenceScore = function(value) {
|
|
1844
1925
|
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
1845
1926
|
};
|
|
1846
1927
|
|
|
1847
1928
|
|
|
1848
1929
|
/**
|
|
1849
|
-
* optional bool
|
|
1930
|
+
* optional bool return_alternative_transcriptions = 4;
|
|
1850
1931
|
* @return {boolean}
|
|
1851
1932
|
*/
|
|
1852
|
-
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.
|
|
1933
|
+
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnAlternativeTranscriptions = function() {
|
|
1853
1934
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
1854
1935
|
};
|
|
1855
1936
|
|
|
@@ -1858,11 +1939,65 @@ proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnConfidenceScore =
|
|
|
1858
1939
|
* @param {boolean} value
|
|
1859
1940
|
* @return {!proto.ondewo.s2t.TranscriptionReturnOptions} returns this
|
|
1860
1941
|
*/
|
|
1861
|
-
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.
|
|
1942
|
+
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.setReturnAlternativeTranscriptions = function(value) {
|
|
1862
1943
|
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
1863
1944
|
};
|
|
1864
1945
|
|
|
1865
1946
|
|
|
1947
|
+
/**
|
|
1948
|
+
* optional int32 return_alternative_transcriptions_nr = 5;
|
|
1949
|
+
* @return {number}
|
|
1950
|
+
*/
|
|
1951
|
+
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnAlternativeTranscriptionsNr = function() {
|
|
1952
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
1953
|
+
};
|
|
1954
|
+
|
|
1955
|
+
|
|
1956
|
+
/**
|
|
1957
|
+
* @param {number} value
|
|
1958
|
+
* @return {!proto.ondewo.s2t.TranscriptionReturnOptions} returns this
|
|
1959
|
+
*/
|
|
1960
|
+
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.setReturnAlternativeTranscriptionsNr = function(value) {
|
|
1961
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
1962
|
+
};
|
|
1963
|
+
|
|
1964
|
+
|
|
1965
|
+
/**
|
|
1966
|
+
* optional bool return_alternative_words = 6;
|
|
1967
|
+
* @return {boolean}
|
|
1968
|
+
*/
|
|
1969
|
+
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnAlternativeWords = function() {
|
|
1970
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
|
|
1971
|
+
};
|
|
1972
|
+
|
|
1973
|
+
|
|
1974
|
+
/**
|
|
1975
|
+
* @param {boolean} value
|
|
1976
|
+
* @return {!proto.ondewo.s2t.TranscriptionReturnOptions} returns this
|
|
1977
|
+
*/
|
|
1978
|
+
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.setReturnAlternativeWords = function(value) {
|
|
1979
|
+
return jspb.Message.setProto3BooleanField(this, 6, value);
|
|
1980
|
+
};
|
|
1981
|
+
|
|
1982
|
+
|
|
1983
|
+
/**
|
|
1984
|
+
* optional int32 return_alternative_words_nr = 7;
|
|
1985
|
+
* @return {number}
|
|
1986
|
+
*/
|
|
1987
|
+
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnAlternativeWordsNr = function() {
|
|
1988
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
1989
|
+
};
|
|
1990
|
+
|
|
1991
|
+
|
|
1992
|
+
/**
|
|
1993
|
+
* @param {number} value
|
|
1994
|
+
* @return {!proto.ondewo.s2t.TranscriptionReturnOptions} returns this
|
|
1995
|
+
*/
|
|
1996
|
+
proto.ondewo.s2t.TranscriptionReturnOptions.prototype.setReturnAlternativeWordsNr = function(value) {
|
|
1997
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
1998
|
+
};
|
|
1999
|
+
|
|
2000
|
+
|
|
1866
2001
|
/**
|
|
1867
2002
|
* optional bool return_word_timing = 8;
|
|
1868
2003
|
* @return {boolean}
|
|
@@ -2356,6 +2491,13 @@ proto.ondewo.s2t.PostProcessingOptions.prototype.hasConfig = function() {
|
|
|
2356
2491
|
|
|
2357
2492
|
|
|
2358
2493
|
|
|
2494
|
+
/**
|
|
2495
|
+
* List of repeated fields within this message type.
|
|
2496
|
+
* @private {!Array<number>}
|
|
2497
|
+
* @const
|
|
2498
|
+
*/
|
|
2499
|
+
proto.ondewo.s2t.Transcription.repeatedFields_ = [3,4];
|
|
2500
|
+
|
|
2359
2501
|
|
|
2360
2502
|
|
|
2361
2503
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2371,8 +2513,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
2371
2513
|
* http://goto/soy-param-migration
|
|
2372
2514
|
* @return {!Object}
|
|
2373
2515
|
*/
|
|
2374
|
-
proto.ondewo.s2t.
|
|
2375
|
-
return proto.ondewo.s2t.
|
|
2516
|
+
proto.ondewo.s2t.Transcription.prototype.toObject = function(opt_includeInstance) {
|
|
2517
|
+
return proto.ondewo.s2t.Transcription.toObject(opt_includeInstance, this);
|
|
2376
2518
|
};
|
|
2377
2519
|
|
|
2378
2520
|
|
|
@@ -2381,16 +2523,18 @@ proto.ondewo.s2t.TranscribeStreamRequest.prototype.toObject = function(opt_inclu
|
|
|
2381
2523
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2382
2524
|
* the JSPB instance for transitional soy proto support:
|
|
2383
2525
|
* http://goto/soy-param-migration
|
|
2384
|
-
* @param {!proto.ondewo.s2t.
|
|
2526
|
+
* @param {!proto.ondewo.s2t.Transcription} msg The msg instance to transform.
|
|
2385
2527
|
* @return {!Object}
|
|
2386
2528
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2387
2529
|
*/
|
|
2388
|
-
proto.ondewo.s2t.
|
|
2530
|
+
proto.ondewo.s2t.Transcription.toObject = function(includeInstance, msg) {
|
|
2389
2531
|
var f, obj = {
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2532
|
+
transcription: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2533
|
+
confidenceScore: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
2534
|
+
wordsList: jspb.Message.toObjectList(msg.getWordsList(),
|
|
2535
|
+
proto.ondewo.s2t.WordDetail.toObject, includeInstance),
|
|
2536
|
+
alternativesList: jspb.Message.toObjectList(msg.getAlternativesList(),
|
|
2537
|
+
proto.ondewo.s2t.TranscriptionAlternative.toObject, includeInstance)
|
|
2394
2538
|
};
|
|
2395
2539
|
|
|
2396
2540
|
if (includeInstance) {
|
|
@@ -2404,23 +2548,23 @@ proto.ondewo.s2t.TranscribeStreamRequest.toObject = function(includeInstance, ms
|
|
|
2404
2548
|
/**
|
|
2405
2549
|
* Deserializes binary data (in protobuf wire format).
|
|
2406
2550
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2407
|
-
* @return {!proto.ondewo.s2t.
|
|
2551
|
+
* @return {!proto.ondewo.s2t.Transcription}
|
|
2408
2552
|
*/
|
|
2409
|
-
proto.ondewo.s2t.
|
|
2553
|
+
proto.ondewo.s2t.Transcription.deserializeBinary = function(bytes) {
|
|
2410
2554
|
var reader = new jspb.BinaryReader(bytes);
|
|
2411
|
-
var msg = new proto.ondewo.s2t.
|
|
2412
|
-
return proto.ondewo.s2t.
|
|
2555
|
+
var msg = new proto.ondewo.s2t.Transcription;
|
|
2556
|
+
return proto.ondewo.s2t.Transcription.deserializeBinaryFromReader(msg, reader);
|
|
2413
2557
|
};
|
|
2414
2558
|
|
|
2415
2559
|
|
|
2416
2560
|
/**
|
|
2417
2561
|
* Deserializes binary data (in protobuf wire format) from the
|
|
2418
2562
|
* given reader into the given message object.
|
|
2419
|
-
* @param {!proto.ondewo.s2t.
|
|
2563
|
+
* @param {!proto.ondewo.s2t.Transcription} msg The message object to deserialize into.
|
|
2420
2564
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2421
|
-
* @return {!proto.ondewo.s2t.
|
|
2565
|
+
* @return {!proto.ondewo.s2t.Transcription}
|
|
2422
2566
|
*/
|
|
2423
|
-
proto.ondewo.s2t.
|
|
2567
|
+
proto.ondewo.s2t.Transcription.deserializeBinaryFromReader = function(msg, reader) {
|
|
2424
2568
|
while (reader.nextField()) {
|
|
2425
2569
|
if (reader.isEndGroup()) {
|
|
2426
2570
|
break;
|
|
@@ -2428,21 +2572,22 @@ proto.ondewo.s2t.TranscribeStreamRequest.deserializeBinaryFromReader = function(
|
|
|
2428
2572
|
var field = reader.getFieldNumber();
|
|
2429
2573
|
switch (field) {
|
|
2430
2574
|
case 1:
|
|
2431
|
-
var value = /** @type {
|
|
2432
|
-
msg.
|
|
2575
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2576
|
+
msg.setTranscription(value);
|
|
2433
2577
|
break;
|
|
2434
2578
|
case 2:
|
|
2435
|
-
var value = /** @type {
|
|
2436
|
-
msg.
|
|
2579
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
2580
|
+
msg.setConfidenceScore(value);
|
|
2437
2581
|
break;
|
|
2438
2582
|
case 3:
|
|
2439
|
-
var value = new proto.ondewo.s2t.
|
|
2440
|
-
reader.readMessage(value,proto.ondewo.s2t.
|
|
2441
|
-
msg.
|
|
2583
|
+
var value = new proto.ondewo.s2t.WordDetail;
|
|
2584
|
+
reader.readMessage(value,proto.ondewo.s2t.WordDetail.deserializeBinaryFromReader);
|
|
2585
|
+
msg.addWords(value);
|
|
2442
2586
|
break;
|
|
2443
2587
|
case 4:
|
|
2444
|
-
var value =
|
|
2445
|
-
|
|
2588
|
+
var value = new proto.ondewo.s2t.TranscriptionAlternative;
|
|
2589
|
+
reader.readMessage(value,proto.ondewo.s2t.TranscriptionAlternative.deserializeBinaryFromReader);
|
|
2590
|
+
msg.addAlternatives(value);
|
|
2446
2591
|
break;
|
|
2447
2592
|
default:
|
|
2448
2593
|
reader.skipField();
|
|
@@ -2457,9 +2602,9 @@ proto.ondewo.s2t.TranscribeStreamRequest.deserializeBinaryFromReader = function(
|
|
|
2457
2602
|
* Serializes the message to binary data (in protobuf wire format).
|
|
2458
2603
|
* @return {!Uint8Array}
|
|
2459
2604
|
*/
|
|
2460
|
-
proto.ondewo.s2t.
|
|
2605
|
+
proto.ondewo.s2t.Transcription.prototype.serializeBinary = function() {
|
|
2461
2606
|
var writer = new jspb.BinaryWriter();
|
|
2462
|
-
proto.ondewo.s2t.
|
|
2607
|
+
proto.ondewo.s2t.Transcription.serializeBinaryToWriter(this, writer);
|
|
2463
2608
|
return writer.getResultBuffer();
|
|
2464
2609
|
};
|
|
2465
2610
|
|
|
@@ -2467,160 +2612,165 @@ proto.ondewo.s2t.TranscribeStreamRequest.prototype.serializeBinary = function()
|
|
|
2467
2612
|
/**
|
|
2468
2613
|
* Serializes the given message to binary data (in protobuf wire
|
|
2469
2614
|
* format), writing to the given BinaryWriter.
|
|
2470
|
-
* @param {!proto.ondewo.s2t.
|
|
2615
|
+
* @param {!proto.ondewo.s2t.Transcription} message
|
|
2471
2616
|
* @param {!jspb.BinaryWriter} writer
|
|
2472
2617
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2473
2618
|
*/
|
|
2474
|
-
proto.ondewo.s2t.
|
|
2619
|
+
proto.ondewo.s2t.Transcription.serializeBinaryToWriter = function(message, writer) {
|
|
2475
2620
|
var f = undefined;
|
|
2476
|
-
f = message.
|
|
2621
|
+
f = message.getTranscription();
|
|
2477
2622
|
if (f.length > 0) {
|
|
2478
|
-
writer.
|
|
2623
|
+
writer.writeString(
|
|
2479
2624
|
1,
|
|
2480
2625
|
f
|
|
2481
2626
|
);
|
|
2482
2627
|
}
|
|
2483
|
-
f = message.
|
|
2484
|
-
if (f) {
|
|
2485
|
-
writer.
|
|
2628
|
+
f = message.getConfidenceScore();
|
|
2629
|
+
if (f !== 0.0) {
|
|
2630
|
+
writer.writeFloat(
|
|
2486
2631
|
2,
|
|
2487
2632
|
f
|
|
2488
2633
|
);
|
|
2489
2634
|
}
|
|
2490
|
-
f = message.
|
|
2491
|
-
if (f
|
|
2492
|
-
writer.
|
|
2635
|
+
f = message.getWordsList();
|
|
2636
|
+
if (f.length > 0) {
|
|
2637
|
+
writer.writeRepeatedMessage(
|
|
2493
2638
|
3,
|
|
2494
2639
|
f,
|
|
2495
|
-
proto.ondewo.s2t.
|
|
2640
|
+
proto.ondewo.s2t.WordDetail.serializeBinaryToWriter
|
|
2496
2641
|
);
|
|
2497
2642
|
}
|
|
2498
|
-
f = message.
|
|
2499
|
-
if (f) {
|
|
2500
|
-
writer.
|
|
2643
|
+
f = message.getAlternativesList();
|
|
2644
|
+
if (f.length > 0) {
|
|
2645
|
+
writer.writeRepeatedMessage(
|
|
2501
2646
|
4,
|
|
2502
|
-
f
|
|
2647
|
+
f,
|
|
2648
|
+
proto.ondewo.s2t.TranscriptionAlternative.serializeBinaryToWriter
|
|
2503
2649
|
);
|
|
2504
2650
|
}
|
|
2505
2651
|
};
|
|
2506
2652
|
|
|
2507
2653
|
|
|
2508
2654
|
/**
|
|
2509
|
-
* optional
|
|
2510
|
-
* @return {
|
|
2655
|
+
* optional string transcription = 1;
|
|
2656
|
+
* @return {string}
|
|
2511
2657
|
*/
|
|
2512
|
-
proto.ondewo.s2t.
|
|
2513
|
-
return /** @type {
|
|
2658
|
+
proto.ondewo.s2t.Transcription.prototype.getTranscription = function() {
|
|
2659
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2514
2660
|
};
|
|
2515
2661
|
|
|
2516
2662
|
|
|
2517
2663
|
/**
|
|
2518
|
-
*
|
|
2519
|
-
*
|
|
2520
|
-
* @return {string}
|
|
2664
|
+
* @param {string} value
|
|
2665
|
+
* @return {!proto.ondewo.s2t.Transcription} returns this
|
|
2521
2666
|
*/
|
|
2522
|
-
proto.ondewo.s2t.
|
|
2523
|
-
return
|
|
2524
|
-
this.getAudioChunk()));
|
|
2667
|
+
proto.ondewo.s2t.Transcription.prototype.setTranscription = function(value) {
|
|
2668
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2525
2669
|
};
|
|
2526
2670
|
|
|
2527
2671
|
|
|
2528
2672
|
/**
|
|
2529
|
-
* optional
|
|
2530
|
-
*
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
*/
|
|
2535
|
-
proto.ondewo.s2t.TranscribeStreamRequest.prototype.getAudioChunk_asU8 = function() {
|
|
2536
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
2537
|
-
this.getAudioChunk()));
|
|
2673
|
+
* optional float confidence_score = 2;
|
|
2674
|
+
* @return {number}
|
|
2675
|
+
*/
|
|
2676
|
+
proto.ondewo.s2t.Transcription.prototype.getConfidenceScore = function() {
|
|
2677
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
2538
2678
|
};
|
|
2539
2679
|
|
|
2540
2680
|
|
|
2541
2681
|
/**
|
|
2542
|
-
* @param {
|
|
2543
|
-
* @return {!proto.ondewo.s2t.
|
|
2682
|
+
* @param {number} value
|
|
2683
|
+
* @return {!proto.ondewo.s2t.Transcription} returns this
|
|
2544
2684
|
*/
|
|
2545
|
-
proto.ondewo.s2t.
|
|
2546
|
-
return jspb.Message.
|
|
2685
|
+
proto.ondewo.s2t.Transcription.prototype.setConfidenceScore = function(value) {
|
|
2686
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
2547
2687
|
};
|
|
2548
2688
|
|
|
2549
2689
|
|
|
2550
2690
|
/**
|
|
2551
|
-
*
|
|
2552
|
-
* @return {
|
|
2691
|
+
* repeated WordDetail words = 3;
|
|
2692
|
+
* @return {!Array<!proto.ondewo.s2t.WordDetail>}
|
|
2553
2693
|
*/
|
|
2554
|
-
proto.ondewo.s2t.
|
|
2555
|
-
return /** @type
|
|
2694
|
+
proto.ondewo.s2t.Transcription.prototype.getWordsList = function() {
|
|
2695
|
+
return /** @type{!Array<!proto.ondewo.s2t.WordDetail>} */ (
|
|
2696
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.s2t.WordDetail, 3));
|
|
2556
2697
|
};
|
|
2557
2698
|
|
|
2558
2699
|
|
|
2559
2700
|
/**
|
|
2560
|
-
* @param {
|
|
2561
|
-
* @return {!proto.ondewo.s2t.
|
|
2562
|
-
|
|
2563
|
-
proto.ondewo.s2t.
|
|
2564
|
-
return jspb.Message.
|
|
2701
|
+
* @param {!Array<!proto.ondewo.s2t.WordDetail>} value
|
|
2702
|
+
* @return {!proto.ondewo.s2t.Transcription} returns this
|
|
2703
|
+
*/
|
|
2704
|
+
proto.ondewo.s2t.Transcription.prototype.setWordsList = function(value) {
|
|
2705
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
2565
2706
|
};
|
|
2566
2707
|
|
|
2567
2708
|
|
|
2568
2709
|
/**
|
|
2569
|
-
*
|
|
2570
|
-
* @
|
|
2710
|
+
* @param {!proto.ondewo.s2t.WordDetail=} opt_value
|
|
2711
|
+
* @param {number=} opt_index
|
|
2712
|
+
* @return {!proto.ondewo.s2t.WordDetail}
|
|
2571
2713
|
*/
|
|
2572
|
-
proto.ondewo.s2t.
|
|
2573
|
-
return
|
|
2574
|
-
jspb.Message.getWrapperField(this, proto.ondewo.s2t.TranscribeRequestConfig, 3));
|
|
2714
|
+
proto.ondewo.s2t.Transcription.prototype.addWords = function(opt_value, opt_index) {
|
|
2715
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ondewo.s2t.WordDetail, opt_index);
|
|
2575
2716
|
};
|
|
2576
2717
|
|
|
2577
2718
|
|
|
2578
2719
|
/**
|
|
2579
|
-
*
|
|
2580
|
-
* @return {!proto.ondewo.s2t.
|
|
2581
|
-
*/
|
|
2582
|
-
proto.ondewo.s2t.
|
|
2583
|
-
return
|
|
2720
|
+
* Clears the list making it empty but non-null.
|
|
2721
|
+
* @return {!proto.ondewo.s2t.Transcription} returns this
|
|
2722
|
+
*/
|
|
2723
|
+
proto.ondewo.s2t.Transcription.prototype.clearWordsList = function() {
|
|
2724
|
+
return this.setWordsList([]);
|
|
2584
2725
|
};
|
|
2585
2726
|
|
|
2586
2727
|
|
|
2587
2728
|
/**
|
|
2588
|
-
*
|
|
2589
|
-
* @return {!proto.ondewo.s2t.
|
|
2729
|
+
* repeated TranscriptionAlternative alternatives = 4;
|
|
2730
|
+
* @return {!Array<!proto.ondewo.s2t.TranscriptionAlternative>}
|
|
2590
2731
|
*/
|
|
2591
|
-
proto.ondewo.s2t.
|
|
2592
|
-
return
|
|
2732
|
+
proto.ondewo.s2t.Transcription.prototype.getAlternativesList = function() {
|
|
2733
|
+
return /** @type{!Array<!proto.ondewo.s2t.TranscriptionAlternative>} */ (
|
|
2734
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.s2t.TranscriptionAlternative, 4));
|
|
2593
2735
|
};
|
|
2594
2736
|
|
|
2595
2737
|
|
|
2596
2738
|
/**
|
|
2597
|
-
*
|
|
2598
|
-
* @return {
|
|
2599
|
-
|
|
2600
|
-
proto.ondewo.s2t.
|
|
2601
|
-
return jspb.Message.
|
|
2739
|
+
* @param {!Array<!proto.ondewo.s2t.TranscriptionAlternative>} value
|
|
2740
|
+
* @return {!proto.ondewo.s2t.Transcription} returns this
|
|
2741
|
+
*/
|
|
2742
|
+
proto.ondewo.s2t.Transcription.prototype.setAlternativesList = function(value) {
|
|
2743
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
2602
2744
|
};
|
|
2603
2745
|
|
|
2604
2746
|
|
|
2605
2747
|
/**
|
|
2606
|
-
*
|
|
2607
|
-
* @
|
|
2748
|
+
* @param {!proto.ondewo.s2t.TranscriptionAlternative=} opt_value
|
|
2749
|
+
* @param {number=} opt_index
|
|
2750
|
+
* @return {!proto.ondewo.s2t.TranscriptionAlternative}
|
|
2608
2751
|
*/
|
|
2609
|
-
proto.ondewo.s2t.
|
|
2610
|
-
return
|
|
2752
|
+
proto.ondewo.s2t.Transcription.prototype.addAlternatives = function(opt_value, opt_index) {
|
|
2753
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.ondewo.s2t.TranscriptionAlternative, opt_index);
|
|
2611
2754
|
};
|
|
2612
2755
|
|
|
2613
2756
|
|
|
2614
2757
|
/**
|
|
2615
|
-
*
|
|
2616
|
-
* @return {!proto.ondewo.s2t.
|
|
2758
|
+
* Clears the list making it empty but non-null.
|
|
2759
|
+
* @return {!proto.ondewo.s2t.Transcription} returns this
|
|
2617
2760
|
*/
|
|
2618
|
-
proto.ondewo.s2t.
|
|
2619
|
-
return
|
|
2761
|
+
proto.ondewo.s2t.Transcription.prototype.clearAlternativesList = function() {
|
|
2762
|
+
return this.setAlternativesList([]);
|
|
2620
2763
|
};
|
|
2621
2764
|
|
|
2622
2765
|
|
|
2623
2766
|
|
|
2767
|
+
/**
|
|
2768
|
+
* List of repeated fields within this message type.
|
|
2769
|
+
* @private {!Array<number>}
|
|
2770
|
+
* @const
|
|
2771
|
+
*/
|
|
2772
|
+
proto.ondewo.s2t.TranscriptionAlternative.repeatedFields_ = [3];
|
|
2773
|
+
|
|
2624
2774
|
|
|
2625
2775
|
|
|
2626
2776
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2636,8 +2786,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
2636
2786
|
* http://goto/soy-param-migration
|
|
2637
2787
|
* @return {!Object}
|
|
2638
2788
|
*/
|
|
2639
|
-
proto.ondewo.s2t.
|
|
2640
|
-
return proto.ondewo.s2t.
|
|
2789
|
+
proto.ondewo.s2t.TranscriptionAlternative.prototype.toObject = function(opt_includeInstance) {
|
|
2790
|
+
return proto.ondewo.s2t.TranscriptionAlternative.toObject(opt_includeInstance, this);
|
|
2641
2791
|
};
|
|
2642
2792
|
|
|
2643
2793
|
|
|
@@ -2646,14 +2796,16 @@ proto.ondewo.s2t.Transcription.prototype.toObject = function(opt_includeInstance
|
|
|
2646
2796
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2647
2797
|
* the JSPB instance for transitional soy proto support:
|
|
2648
2798
|
* http://goto/soy-param-migration
|
|
2649
|
-
* @param {!proto.ondewo.s2t.
|
|
2799
|
+
* @param {!proto.ondewo.s2t.TranscriptionAlternative} msg The msg instance to transform.
|
|
2650
2800
|
* @return {!Object}
|
|
2651
2801
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2652
2802
|
*/
|
|
2653
|
-
proto.ondewo.s2t.
|
|
2803
|
+
proto.ondewo.s2t.TranscriptionAlternative.toObject = function(includeInstance, msg) {
|
|
2654
2804
|
var f, obj = {
|
|
2655
|
-
|
|
2656
|
-
|
|
2805
|
+
transcript: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2806
|
+
confidence: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
2807
|
+
wordsList: jspb.Message.toObjectList(msg.getWordsList(),
|
|
2808
|
+
proto.ondewo.s2t.WordDetail.toObject, includeInstance)
|
|
2657
2809
|
};
|
|
2658
2810
|
|
|
2659
2811
|
if (includeInstance) {
|
|
@@ -2667,23 +2819,23 @@ proto.ondewo.s2t.Transcription.toObject = function(includeInstance, msg) {
|
|
|
2667
2819
|
/**
|
|
2668
2820
|
* Deserializes binary data (in protobuf wire format).
|
|
2669
2821
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2670
|
-
* @return {!proto.ondewo.s2t.
|
|
2822
|
+
* @return {!proto.ondewo.s2t.TranscriptionAlternative}
|
|
2671
2823
|
*/
|
|
2672
|
-
proto.ondewo.s2t.
|
|
2824
|
+
proto.ondewo.s2t.TranscriptionAlternative.deserializeBinary = function(bytes) {
|
|
2673
2825
|
var reader = new jspb.BinaryReader(bytes);
|
|
2674
|
-
var msg = new proto.ondewo.s2t.
|
|
2675
|
-
return proto.ondewo.s2t.
|
|
2826
|
+
var msg = new proto.ondewo.s2t.TranscriptionAlternative;
|
|
2827
|
+
return proto.ondewo.s2t.TranscriptionAlternative.deserializeBinaryFromReader(msg, reader);
|
|
2676
2828
|
};
|
|
2677
2829
|
|
|
2678
2830
|
|
|
2679
2831
|
/**
|
|
2680
2832
|
* Deserializes binary data (in protobuf wire format) from the
|
|
2681
2833
|
* given reader into the given message object.
|
|
2682
|
-
* @param {!proto.ondewo.s2t.
|
|
2834
|
+
* @param {!proto.ondewo.s2t.TranscriptionAlternative} msg The message object to deserialize into.
|
|
2683
2835
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2684
|
-
* @return {!proto.ondewo.s2t.
|
|
2836
|
+
* @return {!proto.ondewo.s2t.TranscriptionAlternative}
|
|
2685
2837
|
*/
|
|
2686
|
-
proto.ondewo.s2t.
|
|
2838
|
+
proto.ondewo.s2t.TranscriptionAlternative.deserializeBinaryFromReader = function(msg, reader) {
|
|
2687
2839
|
while (reader.nextField()) {
|
|
2688
2840
|
if (reader.isEndGroup()) {
|
|
2689
2841
|
break;
|
|
@@ -2692,11 +2844,16 @@ proto.ondewo.s2t.Transcription.deserializeBinaryFromReader = function(msg, reade
|
|
|
2692
2844
|
switch (field) {
|
|
2693
2845
|
case 1:
|
|
2694
2846
|
var value = /** @type {string} */ (reader.readString());
|
|
2695
|
-
msg.
|
|
2847
|
+
msg.setTranscript(value);
|
|
2696
2848
|
break;
|
|
2697
2849
|
case 2:
|
|
2698
2850
|
var value = /** @type {number} */ (reader.readFloat());
|
|
2699
|
-
msg.
|
|
2851
|
+
msg.setConfidence(value);
|
|
2852
|
+
break;
|
|
2853
|
+
case 3:
|
|
2854
|
+
var value = new proto.ondewo.s2t.WordDetail;
|
|
2855
|
+
reader.readMessage(value,proto.ondewo.s2t.WordDetail.deserializeBinaryFromReader);
|
|
2856
|
+
msg.addWords(value);
|
|
2700
2857
|
break;
|
|
2701
2858
|
default:
|
|
2702
2859
|
reader.skipField();
|
|
@@ -2711,9 +2868,9 @@ proto.ondewo.s2t.Transcription.deserializeBinaryFromReader = function(msg, reade
|
|
|
2711
2868
|
* Serializes the message to binary data (in protobuf wire format).
|
|
2712
2869
|
* @return {!Uint8Array}
|
|
2713
2870
|
*/
|
|
2714
|
-
proto.ondewo.s2t.
|
|
2871
|
+
proto.ondewo.s2t.TranscriptionAlternative.prototype.serializeBinary = function() {
|
|
2715
2872
|
var writer = new jspb.BinaryWriter();
|
|
2716
|
-
proto.ondewo.s2t.
|
|
2873
|
+
proto.ondewo.s2t.TranscriptionAlternative.serializeBinaryToWriter(this, writer);
|
|
2717
2874
|
return writer.getResultBuffer();
|
|
2718
2875
|
};
|
|
2719
2876
|
|
|
@@ -2721,62 +2878,813 @@ proto.ondewo.s2t.Transcription.prototype.serializeBinary = function() {
|
|
|
2721
2878
|
/**
|
|
2722
2879
|
* Serializes the given message to binary data (in protobuf wire
|
|
2723
2880
|
* format), writing to the given BinaryWriter.
|
|
2724
|
-
* @param {!proto.ondewo.s2t.
|
|
2881
|
+
* @param {!proto.ondewo.s2t.TranscriptionAlternative} message
|
|
2725
2882
|
* @param {!jspb.BinaryWriter} writer
|
|
2726
2883
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2727
2884
|
*/
|
|
2728
|
-
proto.ondewo.s2t.
|
|
2885
|
+
proto.ondewo.s2t.TranscriptionAlternative.serializeBinaryToWriter = function(message, writer) {
|
|
2729
2886
|
var f = undefined;
|
|
2730
|
-
f = message.
|
|
2887
|
+
f = message.getTranscript();
|
|
2731
2888
|
if (f.length > 0) {
|
|
2732
2889
|
writer.writeString(
|
|
2733
2890
|
1,
|
|
2734
2891
|
f
|
|
2735
2892
|
);
|
|
2736
2893
|
}
|
|
2737
|
-
f = message.
|
|
2894
|
+
f = message.getConfidence();
|
|
2738
2895
|
if (f !== 0.0) {
|
|
2739
2896
|
writer.writeFloat(
|
|
2740
2897
|
2,
|
|
2741
2898
|
f
|
|
2742
2899
|
);
|
|
2743
2900
|
}
|
|
2901
|
+
f = message.getWordsList();
|
|
2902
|
+
if (f.length > 0) {
|
|
2903
|
+
writer.writeRepeatedMessage(
|
|
2904
|
+
3,
|
|
2905
|
+
f,
|
|
2906
|
+
proto.ondewo.s2t.WordDetail.serializeBinaryToWriter
|
|
2907
|
+
);
|
|
2908
|
+
}
|
|
2909
|
+
};
|
|
2910
|
+
|
|
2911
|
+
|
|
2912
|
+
/**
|
|
2913
|
+
* optional string transcript = 1;
|
|
2914
|
+
* @return {string}
|
|
2915
|
+
*/
|
|
2916
|
+
proto.ondewo.s2t.TranscriptionAlternative.prototype.getTranscript = function() {
|
|
2917
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2918
|
+
};
|
|
2919
|
+
|
|
2920
|
+
|
|
2921
|
+
/**
|
|
2922
|
+
* @param {string} value
|
|
2923
|
+
* @return {!proto.ondewo.s2t.TranscriptionAlternative} returns this
|
|
2924
|
+
*/
|
|
2925
|
+
proto.ondewo.s2t.TranscriptionAlternative.prototype.setTranscript = function(value) {
|
|
2926
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2927
|
+
};
|
|
2928
|
+
|
|
2929
|
+
|
|
2930
|
+
/**
|
|
2931
|
+
* optional float confidence = 2;
|
|
2932
|
+
* @return {number}
|
|
2933
|
+
*/
|
|
2934
|
+
proto.ondewo.s2t.TranscriptionAlternative.prototype.getConfidence = function() {
|
|
2935
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
2936
|
+
};
|
|
2937
|
+
|
|
2938
|
+
|
|
2939
|
+
/**
|
|
2940
|
+
* @param {number} value
|
|
2941
|
+
* @return {!proto.ondewo.s2t.TranscriptionAlternative} returns this
|
|
2942
|
+
*/
|
|
2943
|
+
proto.ondewo.s2t.TranscriptionAlternative.prototype.setConfidence = function(value) {
|
|
2944
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
2945
|
+
};
|
|
2946
|
+
|
|
2947
|
+
|
|
2948
|
+
/**
|
|
2949
|
+
* repeated WordDetail words = 3;
|
|
2950
|
+
* @return {!Array<!proto.ondewo.s2t.WordDetail>}
|
|
2951
|
+
*/
|
|
2952
|
+
proto.ondewo.s2t.TranscriptionAlternative.prototype.getWordsList = function() {
|
|
2953
|
+
return /** @type{!Array<!proto.ondewo.s2t.WordDetail>} */ (
|
|
2954
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.s2t.WordDetail, 3));
|
|
2955
|
+
};
|
|
2956
|
+
|
|
2957
|
+
|
|
2958
|
+
/**
|
|
2959
|
+
* @param {!Array<!proto.ondewo.s2t.WordDetail>} value
|
|
2960
|
+
* @return {!proto.ondewo.s2t.TranscriptionAlternative} returns this
|
|
2961
|
+
*/
|
|
2962
|
+
proto.ondewo.s2t.TranscriptionAlternative.prototype.setWordsList = function(value) {
|
|
2963
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
2964
|
+
};
|
|
2965
|
+
|
|
2966
|
+
|
|
2967
|
+
/**
|
|
2968
|
+
* @param {!proto.ondewo.s2t.WordDetail=} opt_value
|
|
2969
|
+
* @param {number=} opt_index
|
|
2970
|
+
* @return {!proto.ondewo.s2t.WordDetail}
|
|
2971
|
+
*/
|
|
2972
|
+
proto.ondewo.s2t.TranscriptionAlternative.prototype.addWords = function(opt_value, opt_index) {
|
|
2973
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ondewo.s2t.WordDetail, opt_index);
|
|
2974
|
+
};
|
|
2975
|
+
|
|
2976
|
+
|
|
2977
|
+
/**
|
|
2978
|
+
* Clears the list making it empty but non-null.
|
|
2979
|
+
* @return {!proto.ondewo.s2t.TranscriptionAlternative} returns this
|
|
2980
|
+
*/
|
|
2981
|
+
proto.ondewo.s2t.TranscriptionAlternative.prototype.clearWordsList = function() {
|
|
2982
|
+
return this.setWordsList([]);
|
|
2983
|
+
};
|
|
2984
|
+
|
|
2985
|
+
|
|
2986
|
+
|
|
2987
|
+
/**
|
|
2988
|
+
* List of repeated fields within this message type.
|
|
2989
|
+
* @private {!Array<number>}
|
|
2990
|
+
* @const
|
|
2991
|
+
*/
|
|
2992
|
+
proto.ondewo.s2t.WordDetail.repeatedFields_ = [5];
|
|
2993
|
+
|
|
2994
|
+
|
|
2995
|
+
|
|
2996
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2997
|
+
/**
|
|
2998
|
+
* Creates an object representation of this proto.
|
|
2999
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3000
|
+
* Optional fields that are not set will be set to undefined.
|
|
3001
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3002
|
+
* For the list of reserved names please see:
|
|
3003
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3004
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3005
|
+
* JSPB instance for transitional soy proto support:
|
|
3006
|
+
* http://goto/soy-param-migration
|
|
3007
|
+
* @return {!Object}
|
|
3008
|
+
*/
|
|
3009
|
+
proto.ondewo.s2t.WordDetail.prototype.toObject = function(opt_includeInstance) {
|
|
3010
|
+
return proto.ondewo.s2t.WordDetail.toObject(opt_includeInstance, this);
|
|
3011
|
+
};
|
|
3012
|
+
|
|
3013
|
+
|
|
3014
|
+
/**
|
|
3015
|
+
* Static version of the {@see toObject} method.
|
|
3016
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3017
|
+
* the JSPB instance for transitional soy proto support:
|
|
3018
|
+
* http://goto/soy-param-migration
|
|
3019
|
+
* @param {!proto.ondewo.s2t.WordDetail} msg The msg instance to transform.
|
|
3020
|
+
* @return {!Object}
|
|
3021
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3022
|
+
*/
|
|
3023
|
+
proto.ondewo.s2t.WordDetail.toObject = function(includeInstance, msg) {
|
|
3024
|
+
var f, obj = {
|
|
3025
|
+
startTime: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
3026
|
+
endTime: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
3027
|
+
word: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3028
|
+
confidence: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
|
3029
|
+
wordAlternativesList: jspb.Message.toObjectList(msg.getWordAlternativesList(),
|
|
3030
|
+
proto.ondewo.s2t.WordAlternative.toObject, includeInstance)
|
|
3031
|
+
};
|
|
3032
|
+
|
|
3033
|
+
if (includeInstance) {
|
|
3034
|
+
obj.$jspbMessageInstance = msg;
|
|
3035
|
+
}
|
|
3036
|
+
return obj;
|
|
3037
|
+
};
|
|
3038
|
+
}
|
|
3039
|
+
|
|
3040
|
+
|
|
3041
|
+
/**
|
|
3042
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3043
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3044
|
+
* @return {!proto.ondewo.s2t.WordDetail}
|
|
3045
|
+
*/
|
|
3046
|
+
proto.ondewo.s2t.WordDetail.deserializeBinary = function(bytes) {
|
|
3047
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3048
|
+
var msg = new proto.ondewo.s2t.WordDetail;
|
|
3049
|
+
return proto.ondewo.s2t.WordDetail.deserializeBinaryFromReader(msg, reader);
|
|
3050
|
+
};
|
|
3051
|
+
|
|
3052
|
+
|
|
3053
|
+
/**
|
|
3054
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3055
|
+
* given reader into the given message object.
|
|
3056
|
+
* @param {!proto.ondewo.s2t.WordDetail} msg The message object to deserialize into.
|
|
3057
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3058
|
+
* @return {!proto.ondewo.s2t.WordDetail}
|
|
3059
|
+
*/
|
|
3060
|
+
proto.ondewo.s2t.WordDetail.deserializeBinaryFromReader = function(msg, reader) {
|
|
3061
|
+
while (reader.nextField()) {
|
|
3062
|
+
if (reader.isEndGroup()) {
|
|
3063
|
+
break;
|
|
3064
|
+
}
|
|
3065
|
+
var field = reader.getFieldNumber();
|
|
3066
|
+
switch (field) {
|
|
3067
|
+
case 1:
|
|
3068
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
3069
|
+
msg.setStartTime(value);
|
|
3070
|
+
break;
|
|
3071
|
+
case 2:
|
|
3072
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
3073
|
+
msg.setEndTime(value);
|
|
3074
|
+
break;
|
|
3075
|
+
case 3:
|
|
3076
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3077
|
+
msg.setWord(value);
|
|
3078
|
+
break;
|
|
3079
|
+
case 4:
|
|
3080
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
3081
|
+
msg.setConfidence(value);
|
|
3082
|
+
break;
|
|
3083
|
+
case 5:
|
|
3084
|
+
var value = new proto.ondewo.s2t.WordAlternative;
|
|
3085
|
+
reader.readMessage(value,proto.ondewo.s2t.WordAlternative.deserializeBinaryFromReader);
|
|
3086
|
+
msg.addWordAlternatives(value);
|
|
3087
|
+
break;
|
|
3088
|
+
default:
|
|
3089
|
+
reader.skipField();
|
|
3090
|
+
break;
|
|
3091
|
+
}
|
|
3092
|
+
}
|
|
3093
|
+
return msg;
|
|
3094
|
+
};
|
|
3095
|
+
|
|
3096
|
+
|
|
3097
|
+
/**
|
|
3098
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3099
|
+
* @return {!Uint8Array}
|
|
3100
|
+
*/
|
|
3101
|
+
proto.ondewo.s2t.WordDetail.prototype.serializeBinary = function() {
|
|
3102
|
+
var writer = new jspb.BinaryWriter();
|
|
3103
|
+
proto.ondewo.s2t.WordDetail.serializeBinaryToWriter(this, writer);
|
|
3104
|
+
return writer.getResultBuffer();
|
|
3105
|
+
};
|
|
3106
|
+
|
|
3107
|
+
|
|
3108
|
+
/**
|
|
3109
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3110
|
+
* format), writing to the given BinaryWriter.
|
|
3111
|
+
* @param {!proto.ondewo.s2t.WordDetail} message
|
|
3112
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3113
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3114
|
+
*/
|
|
3115
|
+
proto.ondewo.s2t.WordDetail.serializeBinaryToWriter = function(message, writer) {
|
|
3116
|
+
var f = undefined;
|
|
3117
|
+
f = message.getStartTime();
|
|
3118
|
+
if (f !== 0.0) {
|
|
3119
|
+
writer.writeFloat(
|
|
3120
|
+
1,
|
|
3121
|
+
f
|
|
3122
|
+
);
|
|
3123
|
+
}
|
|
3124
|
+
f = message.getEndTime();
|
|
3125
|
+
if (f !== 0.0) {
|
|
3126
|
+
writer.writeFloat(
|
|
3127
|
+
2,
|
|
3128
|
+
f
|
|
3129
|
+
);
|
|
3130
|
+
}
|
|
3131
|
+
f = message.getWord();
|
|
3132
|
+
if (f.length > 0) {
|
|
3133
|
+
writer.writeString(
|
|
3134
|
+
3,
|
|
3135
|
+
f
|
|
3136
|
+
);
|
|
3137
|
+
}
|
|
3138
|
+
f = message.getConfidence();
|
|
3139
|
+
if (f !== 0.0) {
|
|
3140
|
+
writer.writeFloat(
|
|
3141
|
+
4,
|
|
3142
|
+
f
|
|
3143
|
+
);
|
|
3144
|
+
}
|
|
3145
|
+
f = message.getWordAlternativesList();
|
|
3146
|
+
if (f.length > 0) {
|
|
3147
|
+
writer.writeRepeatedMessage(
|
|
3148
|
+
5,
|
|
3149
|
+
f,
|
|
3150
|
+
proto.ondewo.s2t.WordAlternative.serializeBinaryToWriter
|
|
3151
|
+
);
|
|
3152
|
+
}
|
|
3153
|
+
};
|
|
3154
|
+
|
|
3155
|
+
|
|
3156
|
+
/**
|
|
3157
|
+
* optional float start_time = 1;
|
|
3158
|
+
* @return {number}
|
|
3159
|
+
*/
|
|
3160
|
+
proto.ondewo.s2t.WordDetail.prototype.getStartTime = function() {
|
|
3161
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
|
3162
|
+
};
|
|
3163
|
+
|
|
3164
|
+
|
|
3165
|
+
/**
|
|
3166
|
+
* @param {number} value
|
|
3167
|
+
* @return {!proto.ondewo.s2t.WordDetail} returns this
|
|
3168
|
+
*/
|
|
3169
|
+
proto.ondewo.s2t.WordDetail.prototype.setStartTime = function(value) {
|
|
3170
|
+
return jspb.Message.setProto3FloatField(this, 1, value);
|
|
3171
|
+
};
|
|
3172
|
+
|
|
3173
|
+
|
|
3174
|
+
/**
|
|
3175
|
+
* optional float end_time = 2;
|
|
3176
|
+
* @return {number}
|
|
3177
|
+
*/
|
|
3178
|
+
proto.ondewo.s2t.WordDetail.prototype.getEndTime = function() {
|
|
3179
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
3180
|
+
};
|
|
3181
|
+
|
|
3182
|
+
|
|
3183
|
+
/**
|
|
3184
|
+
* @param {number} value
|
|
3185
|
+
* @return {!proto.ondewo.s2t.WordDetail} returns this
|
|
3186
|
+
*/
|
|
3187
|
+
proto.ondewo.s2t.WordDetail.prototype.setEndTime = function(value) {
|
|
3188
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
3189
|
+
};
|
|
3190
|
+
|
|
3191
|
+
|
|
3192
|
+
/**
|
|
3193
|
+
* optional string word = 3;
|
|
3194
|
+
* @return {string}
|
|
3195
|
+
*/
|
|
3196
|
+
proto.ondewo.s2t.WordDetail.prototype.getWord = function() {
|
|
3197
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3198
|
+
};
|
|
3199
|
+
|
|
3200
|
+
|
|
3201
|
+
/**
|
|
3202
|
+
* @param {string} value
|
|
3203
|
+
* @return {!proto.ondewo.s2t.WordDetail} returns this
|
|
3204
|
+
*/
|
|
3205
|
+
proto.ondewo.s2t.WordDetail.prototype.setWord = function(value) {
|
|
3206
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3207
|
+
};
|
|
3208
|
+
|
|
3209
|
+
|
|
3210
|
+
/**
|
|
3211
|
+
* optional float confidence = 4;
|
|
3212
|
+
* @return {number}
|
|
3213
|
+
*/
|
|
3214
|
+
proto.ondewo.s2t.WordDetail.prototype.getConfidence = function() {
|
|
3215
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
|
3216
|
+
};
|
|
3217
|
+
|
|
3218
|
+
|
|
3219
|
+
/**
|
|
3220
|
+
* @param {number} value
|
|
3221
|
+
* @return {!proto.ondewo.s2t.WordDetail} returns this
|
|
3222
|
+
*/
|
|
3223
|
+
proto.ondewo.s2t.WordDetail.prototype.setConfidence = function(value) {
|
|
3224
|
+
return jspb.Message.setProto3FloatField(this, 4, value);
|
|
3225
|
+
};
|
|
3226
|
+
|
|
3227
|
+
|
|
3228
|
+
/**
|
|
3229
|
+
* repeated WordAlternative word_alternatives = 5;
|
|
3230
|
+
* @return {!Array<!proto.ondewo.s2t.WordAlternative>}
|
|
3231
|
+
*/
|
|
3232
|
+
proto.ondewo.s2t.WordDetail.prototype.getWordAlternativesList = function() {
|
|
3233
|
+
return /** @type{!Array<!proto.ondewo.s2t.WordAlternative>} */ (
|
|
3234
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.s2t.WordAlternative, 5));
|
|
3235
|
+
};
|
|
3236
|
+
|
|
3237
|
+
|
|
3238
|
+
/**
|
|
3239
|
+
* @param {!Array<!proto.ondewo.s2t.WordAlternative>} value
|
|
3240
|
+
* @return {!proto.ondewo.s2t.WordDetail} returns this
|
|
3241
|
+
*/
|
|
3242
|
+
proto.ondewo.s2t.WordDetail.prototype.setWordAlternativesList = function(value) {
|
|
3243
|
+
return jspb.Message.setRepeatedWrapperField(this, 5, value);
|
|
3244
|
+
};
|
|
3245
|
+
|
|
3246
|
+
|
|
3247
|
+
/**
|
|
3248
|
+
* @param {!proto.ondewo.s2t.WordAlternative=} opt_value
|
|
3249
|
+
* @param {number=} opt_index
|
|
3250
|
+
* @return {!proto.ondewo.s2t.WordAlternative}
|
|
3251
|
+
*/
|
|
3252
|
+
proto.ondewo.s2t.WordDetail.prototype.addWordAlternatives = function(opt_value, opt_index) {
|
|
3253
|
+
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.ondewo.s2t.WordAlternative, opt_index);
|
|
3254
|
+
};
|
|
3255
|
+
|
|
3256
|
+
|
|
3257
|
+
/**
|
|
3258
|
+
* Clears the list making it empty but non-null.
|
|
3259
|
+
* @return {!proto.ondewo.s2t.WordDetail} returns this
|
|
3260
|
+
*/
|
|
3261
|
+
proto.ondewo.s2t.WordDetail.prototype.clearWordAlternativesList = function() {
|
|
3262
|
+
return this.setWordAlternativesList([]);
|
|
3263
|
+
};
|
|
3264
|
+
|
|
3265
|
+
|
|
3266
|
+
|
|
3267
|
+
|
|
3268
|
+
|
|
3269
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3270
|
+
/**
|
|
3271
|
+
* Creates an object representation of this proto.
|
|
3272
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3273
|
+
* Optional fields that are not set will be set to undefined.
|
|
3274
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3275
|
+
* For the list of reserved names please see:
|
|
3276
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3277
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3278
|
+
* JSPB instance for transitional soy proto support:
|
|
3279
|
+
* http://goto/soy-param-migration
|
|
3280
|
+
* @return {!Object}
|
|
3281
|
+
*/
|
|
3282
|
+
proto.ondewo.s2t.WordAlternative.prototype.toObject = function(opt_includeInstance) {
|
|
3283
|
+
return proto.ondewo.s2t.WordAlternative.toObject(opt_includeInstance, this);
|
|
3284
|
+
};
|
|
3285
|
+
|
|
3286
|
+
|
|
3287
|
+
/**
|
|
3288
|
+
* Static version of the {@see toObject} method.
|
|
3289
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3290
|
+
* the JSPB instance for transitional soy proto support:
|
|
3291
|
+
* http://goto/soy-param-migration
|
|
3292
|
+
* @param {!proto.ondewo.s2t.WordAlternative} msg The msg instance to transform.
|
|
3293
|
+
* @return {!Object}
|
|
3294
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3295
|
+
*/
|
|
3296
|
+
proto.ondewo.s2t.WordAlternative.toObject = function(includeInstance, msg) {
|
|
3297
|
+
var f, obj = {
|
|
3298
|
+
word: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3299
|
+
confidence: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
|
|
3300
|
+
};
|
|
3301
|
+
|
|
3302
|
+
if (includeInstance) {
|
|
3303
|
+
obj.$jspbMessageInstance = msg;
|
|
3304
|
+
}
|
|
3305
|
+
return obj;
|
|
3306
|
+
};
|
|
3307
|
+
}
|
|
3308
|
+
|
|
3309
|
+
|
|
3310
|
+
/**
|
|
3311
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3312
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3313
|
+
* @return {!proto.ondewo.s2t.WordAlternative}
|
|
3314
|
+
*/
|
|
3315
|
+
proto.ondewo.s2t.WordAlternative.deserializeBinary = function(bytes) {
|
|
3316
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3317
|
+
var msg = new proto.ondewo.s2t.WordAlternative;
|
|
3318
|
+
return proto.ondewo.s2t.WordAlternative.deserializeBinaryFromReader(msg, reader);
|
|
3319
|
+
};
|
|
3320
|
+
|
|
3321
|
+
|
|
3322
|
+
/**
|
|
3323
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3324
|
+
* given reader into the given message object.
|
|
3325
|
+
* @param {!proto.ondewo.s2t.WordAlternative} msg The message object to deserialize into.
|
|
3326
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3327
|
+
* @return {!proto.ondewo.s2t.WordAlternative}
|
|
3328
|
+
*/
|
|
3329
|
+
proto.ondewo.s2t.WordAlternative.deserializeBinaryFromReader = function(msg, reader) {
|
|
3330
|
+
while (reader.nextField()) {
|
|
3331
|
+
if (reader.isEndGroup()) {
|
|
3332
|
+
break;
|
|
3333
|
+
}
|
|
3334
|
+
var field = reader.getFieldNumber();
|
|
3335
|
+
switch (field) {
|
|
3336
|
+
case 1:
|
|
3337
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3338
|
+
msg.setWord(value);
|
|
3339
|
+
break;
|
|
3340
|
+
case 2:
|
|
3341
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
3342
|
+
msg.setConfidence(value);
|
|
3343
|
+
break;
|
|
3344
|
+
default:
|
|
3345
|
+
reader.skipField();
|
|
3346
|
+
break;
|
|
3347
|
+
}
|
|
3348
|
+
}
|
|
3349
|
+
return msg;
|
|
3350
|
+
};
|
|
3351
|
+
|
|
3352
|
+
|
|
3353
|
+
/**
|
|
3354
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3355
|
+
* @return {!Uint8Array}
|
|
3356
|
+
*/
|
|
3357
|
+
proto.ondewo.s2t.WordAlternative.prototype.serializeBinary = function() {
|
|
3358
|
+
var writer = new jspb.BinaryWriter();
|
|
3359
|
+
proto.ondewo.s2t.WordAlternative.serializeBinaryToWriter(this, writer);
|
|
3360
|
+
return writer.getResultBuffer();
|
|
3361
|
+
};
|
|
3362
|
+
|
|
3363
|
+
|
|
3364
|
+
/**
|
|
3365
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3366
|
+
* format), writing to the given BinaryWriter.
|
|
3367
|
+
* @param {!proto.ondewo.s2t.WordAlternative} message
|
|
3368
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3369
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3370
|
+
*/
|
|
3371
|
+
proto.ondewo.s2t.WordAlternative.serializeBinaryToWriter = function(message, writer) {
|
|
3372
|
+
var f = undefined;
|
|
3373
|
+
f = message.getWord();
|
|
3374
|
+
if (f.length > 0) {
|
|
3375
|
+
writer.writeString(
|
|
3376
|
+
1,
|
|
3377
|
+
f
|
|
3378
|
+
);
|
|
3379
|
+
}
|
|
3380
|
+
f = message.getConfidence();
|
|
3381
|
+
if (f !== 0.0) {
|
|
3382
|
+
writer.writeFloat(
|
|
3383
|
+
2,
|
|
3384
|
+
f
|
|
3385
|
+
);
|
|
3386
|
+
}
|
|
3387
|
+
};
|
|
3388
|
+
|
|
3389
|
+
|
|
3390
|
+
/**
|
|
3391
|
+
* optional string word = 1;
|
|
3392
|
+
* @return {string}
|
|
3393
|
+
*/
|
|
3394
|
+
proto.ondewo.s2t.WordAlternative.prototype.getWord = function() {
|
|
3395
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3396
|
+
};
|
|
3397
|
+
|
|
3398
|
+
|
|
3399
|
+
/**
|
|
3400
|
+
* @param {string} value
|
|
3401
|
+
* @return {!proto.ondewo.s2t.WordAlternative} returns this
|
|
3402
|
+
*/
|
|
3403
|
+
proto.ondewo.s2t.WordAlternative.prototype.setWord = function(value) {
|
|
3404
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3405
|
+
};
|
|
3406
|
+
|
|
3407
|
+
|
|
3408
|
+
/**
|
|
3409
|
+
* optional float confidence = 2;
|
|
3410
|
+
* @return {number}
|
|
3411
|
+
*/
|
|
3412
|
+
proto.ondewo.s2t.WordAlternative.prototype.getConfidence = function() {
|
|
3413
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
3414
|
+
};
|
|
3415
|
+
|
|
3416
|
+
|
|
3417
|
+
/**
|
|
3418
|
+
* @param {number} value
|
|
3419
|
+
* @return {!proto.ondewo.s2t.WordAlternative} returns this
|
|
3420
|
+
*/
|
|
3421
|
+
proto.ondewo.s2t.WordAlternative.prototype.setConfidence = function(value) {
|
|
3422
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
3423
|
+
};
|
|
3424
|
+
|
|
3425
|
+
|
|
3426
|
+
|
|
3427
|
+
|
|
3428
|
+
|
|
3429
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3430
|
+
/**
|
|
3431
|
+
* Creates an object representation of this proto.
|
|
3432
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3433
|
+
* Optional fields that are not set will be set to undefined.
|
|
3434
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3435
|
+
* For the list of reserved names please see:
|
|
3436
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3437
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3438
|
+
* JSPB instance for transitional soy proto support:
|
|
3439
|
+
* http://goto/soy-param-migration
|
|
3440
|
+
* @return {!Object}
|
|
3441
|
+
*/
|
|
3442
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3443
|
+
return proto.ondewo.s2t.TranscribeStreamRequest.toObject(opt_includeInstance, this);
|
|
3444
|
+
};
|
|
3445
|
+
|
|
3446
|
+
|
|
3447
|
+
/**
|
|
3448
|
+
* Static version of the {@see toObject} method.
|
|
3449
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3450
|
+
* the JSPB instance for transitional soy proto support:
|
|
3451
|
+
* http://goto/soy-param-migration
|
|
3452
|
+
* @param {!proto.ondewo.s2t.TranscribeStreamRequest} msg The msg instance to transform.
|
|
3453
|
+
* @return {!Object}
|
|
3454
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3455
|
+
*/
|
|
3456
|
+
proto.ondewo.s2t.TranscribeStreamRequest.toObject = function(includeInstance, msg) {
|
|
3457
|
+
var f, obj = {
|
|
3458
|
+
audioChunk: msg.getAudioChunk_asB64(),
|
|
3459
|
+
endOfStream: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
3460
|
+
config: (f = msg.getConfig()) && proto.ondewo.s2t.TranscribeRequestConfig.toObject(includeInstance, f),
|
|
3461
|
+
muteAudio: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
|
|
3462
|
+
};
|
|
3463
|
+
|
|
3464
|
+
if (includeInstance) {
|
|
3465
|
+
obj.$jspbMessageInstance = msg;
|
|
3466
|
+
}
|
|
3467
|
+
return obj;
|
|
3468
|
+
};
|
|
3469
|
+
}
|
|
3470
|
+
|
|
3471
|
+
|
|
3472
|
+
/**
|
|
3473
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3474
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3475
|
+
* @return {!proto.ondewo.s2t.TranscribeStreamRequest}
|
|
3476
|
+
*/
|
|
3477
|
+
proto.ondewo.s2t.TranscribeStreamRequest.deserializeBinary = function(bytes) {
|
|
3478
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3479
|
+
var msg = new proto.ondewo.s2t.TranscribeStreamRequest;
|
|
3480
|
+
return proto.ondewo.s2t.TranscribeStreamRequest.deserializeBinaryFromReader(msg, reader);
|
|
3481
|
+
};
|
|
3482
|
+
|
|
3483
|
+
|
|
3484
|
+
/**
|
|
3485
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3486
|
+
* given reader into the given message object.
|
|
3487
|
+
* @param {!proto.ondewo.s2t.TranscribeStreamRequest} msg The message object to deserialize into.
|
|
3488
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3489
|
+
* @return {!proto.ondewo.s2t.TranscribeStreamRequest}
|
|
3490
|
+
*/
|
|
3491
|
+
proto.ondewo.s2t.TranscribeStreamRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3492
|
+
while (reader.nextField()) {
|
|
3493
|
+
if (reader.isEndGroup()) {
|
|
3494
|
+
break;
|
|
3495
|
+
}
|
|
3496
|
+
var field = reader.getFieldNumber();
|
|
3497
|
+
switch (field) {
|
|
3498
|
+
case 1:
|
|
3499
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
3500
|
+
msg.setAudioChunk(value);
|
|
3501
|
+
break;
|
|
3502
|
+
case 2:
|
|
3503
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
3504
|
+
msg.setEndOfStream(value);
|
|
3505
|
+
break;
|
|
3506
|
+
case 3:
|
|
3507
|
+
var value = new proto.ondewo.s2t.TranscribeRequestConfig;
|
|
3508
|
+
reader.readMessage(value,proto.ondewo.s2t.TranscribeRequestConfig.deserializeBinaryFromReader);
|
|
3509
|
+
msg.setConfig(value);
|
|
3510
|
+
break;
|
|
3511
|
+
case 4:
|
|
3512
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
3513
|
+
msg.setMuteAudio(value);
|
|
3514
|
+
break;
|
|
3515
|
+
default:
|
|
3516
|
+
reader.skipField();
|
|
3517
|
+
break;
|
|
3518
|
+
}
|
|
3519
|
+
}
|
|
3520
|
+
return msg;
|
|
3521
|
+
};
|
|
3522
|
+
|
|
3523
|
+
|
|
3524
|
+
/**
|
|
3525
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3526
|
+
* @return {!Uint8Array}
|
|
3527
|
+
*/
|
|
3528
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.serializeBinary = function() {
|
|
3529
|
+
var writer = new jspb.BinaryWriter();
|
|
3530
|
+
proto.ondewo.s2t.TranscribeStreamRequest.serializeBinaryToWriter(this, writer);
|
|
3531
|
+
return writer.getResultBuffer();
|
|
3532
|
+
};
|
|
3533
|
+
|
|
3534
|
+
|
|
3535
|
+
/**
|
|
3536
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3537
|
+
* format), writing to the given BinaryWriter.
|
|
3538
|
+
* @param {!proto.ondewo.s2t.TranscribeStreamRequest} message
|
|
3539
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3540
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3541
|
+
*/
|
|
3542
|
+
proto.ondewo.s2t.TranscribeStreamRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3543
|
+
var f = undefined;
|
|
3544
|
+
f = message.getAudioChunk_asU8();
|
|
3545
|
+
if (f.length > 0) {
|
|
3546
|
+
writer.writeBytes(
|
|
3547
|
+
1,
|
|
3548
|
+
f
|
|
3549
|
+
);
|
|
3550
|
+
}
|
|
3551
|
+
f = message.getEndOfStream();
|
|
3552
|
+
if (f) {
|
|
3553
|
+
writer.writeBool(
|
|
3554
|
+
2,
|
|
3555
|
+
f
|
|
3556
|
+
);
|
|
3557
|
+
}
|
|
3558
|
+
f = message.getConfig();
|
|
3559
|
+
if (f != null) {
|
|
3560
|
+
writer.writeMessage(
|
|
3561
|
+
3,
|
|
3562
|
+
f,
|
|
3563
|
+
proto.ondewo.s2t.TranscribeRequestConfig.serializeBinaryToWriter
|
|
3564
|
+
);
|
|
3565
|
+
}
|
|
3566
|
+
f = message.getMuteAudio();
|
|
3567
|
+
if (f) {
|
|
3568
|
+
writer.writeBool(
|
|
3569
|
+
4,
|
|
3570
|
+
f
|
|
3571
|
+
);
|
|
3572
|
+
}
|
|
3573
|
+
};
|
|
3574
|
+
|
|
3575
|
+
|
|
3576
|
+
/**
|
|
3577
|
+
* optional bytes audio_chunk = 1;
|
|
3578
|
+
* @return {!(string|Uint8Array)}
|
|
3579
|
+
*/
|
|
3580
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.getAudioChunk = function() {
|
|
3581
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3582
|
+
};
|
|
3583
|
+
|
|
3584
|
+
|
|
3585
|
+
/**
|
|
3586
|
+
* optional bytes audio_chunk = 1;
|
|
3587
|
+
* This is a type-conversion wrapper around `getAudioChunk()`
|
|
3588
|
+
* @return {string}
|
|
3589
|
+
*/
|
|
3590
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.getAudioChunk_asB64 = function() {
|
|
3591
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
3592
|
+
this.getAudioChunk()));
|
|
3593
|
+
};
|
|
3594
|
+
|
|
3595
|
+
|
|
3596
|
+
/**
|
|
3597
|
+
* optional bytes audio_chunk = 1;
|
|
3598
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
3599
|
+
* @see http://caniuse.com/Uint8Array
|
|
3600
|
+
* This is a type-conversion wrapper around `getAudioChunk()`
|
|
3601
|
+
* @return {!Uint8Array}
|
|
3602
|
+
*/
|
|
3603
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.getAudioChunk_asU8 = function() {
|
|
3604
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
3605
|
+
this.getAudioChunk()));
|
|
3606
|
+
};
|
|
3607
|
+
|
|
3608
|
+
|
|
3609
|
+
/**
|
|
3610
|
+
* @param {!(string|Uint8Array)} value
|
|
3611
|
+
* @return {!proto.ondewo.s2t.TranscribeStreamRequest} returns this
|
|
3612
|
+
*/
|
|
3613
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.setAudioChunk = function(value) {
|
|
3614
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
|
3615
|
+
};
|
|
3616
|
+
|
|
3617
|
+
|
|
3618
|
+
/**
|
|
3619
|
+
* optional bool end_of_stream = 2;
|
|
3620
|
+
* @return {boolean}
|
|
3621
|
+
*/
|
|
3622
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.getEndOfStream = function() {
|
|
3623
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
3624
|
+
};
|
|
3625
|
+
|
|
3626
|
+
|
|
3627
|
+
/**
|
|
3628
|
+
* @param {boolean} value
|
|
3629
|
+
* @return {!proto.ondewo.s2t.TranscribeStreamRequest} returns this
|
|
3630
|
+
*/
|
|
3631
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.setEndOfStream = function(value) {
|
|
3632
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
3633
|
+
};
|
|
3634
|
+
|
|
3635
|
+
|
|
3636
|
+
/**
|
|
3637
|
+
* optional TranscribeRequestConfig config = 3;
|
|
3638
|
+
* @return {?proto.ondewo.s2t.TranscribeRequestConfig}
|
|
3639
|
+
*/
|
|
3640
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.getConfig = function() {
|
|
3641
|
+
return /** @type{?proto.ondewo.s2t.TranscribeRequestConfig} */ (
|
|
3642
|
+
jspb.Message.getWrapperField(this, proto.ondewo.s2t.TranscribeRequestConfig, 3));
|
|
3643
|
+
};
|
|
3644
|
+
|
|
3645
|
+
|
|
3646
|
+
/**
|
|
3647
|
+
* @param {?proto.ondewo.s2t.TranscribeRequestConfig|undefined} value
|
|
3648
|
+
* @return {!proto.ondewo.s2t.TranscribeStreamRequest} returns this
|
|
3649
|
+
*/
|
|
3650
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.setConfig = function(value) {
|
|
3651
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
2744
3652
|
};
|
|
2745
3653
|
|
|
2746
3654
|
|
|
2747
3655
|
/**
|
|
2748
|
-
*
|
|
2749
|
-
* @return {
|
|
3656
|
+
* Clears the message field making it undefined.
|
|
3657
|
+
* @return {!proto.ondewo.s2t.TranscribeStreamRequest} returns this
|
|
2750
3658
|
*/
|
|
2751
|
-
proto.ondewo.s2t.
|
|
2752
|
-
return
|
|
3659
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.clearConfig = function() {
|
|
3660
|
+
return this.setConfig(undefined);
|
|
2753
3661
|
};
|
|
2754
3662
|
|
|
2755
3663
|
|
|
2756
3664
|
/**
|
|
2757
|
-
*
|
|
2758
|
-
* @return {
|
|
3665
|
+
* Returns whether this field is set.
|
|
3666
|
+
* @return {boolean}
|
|
2759
3667
|
*/
|
|
2760
|
-
proto.ondewo.s2t.
|
|
2761
|
-
return jspb.Message.
|
|
3668
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.hasConfig = function() {
|
|
3669
|
+
return jspb.Message.getField(this, 3) != null;
|
|
2762
3670
|
};
|
|
2763
3671
|
|
|
2764
3672
|
|
|
2765
3673
|
/**
|
|
2766
|
-
* optional
|
|
2767
|
-
* @return {
|
|
3674
|
+
* optional bool mute_audio = 4;
|
|
3675
|
+
* @return {boolean}
|
|
2768
3676
|
*/
|
|
2769
|
-
proto.ondewo.s2t.
|
|
2770
|
-
return /** @type {
|
|
3677
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.getMuteAudio = function() {
|
|
3678
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
2771
3679
|
};
|
|
2772
3680
|
|
|
2773
3681
|
|
|
2774
3682
|
/**
|
|
2775
|
-
* @param {
|
|
2776
|
-
* @return {!proto.ondewo.s2t.
|
|
3683
|
+
* @param {boolean} value
|
|
3684
|
+
* @return {!proto.ondewo.s2t.TranscribeStreamRequest} returns this
|
|
2777
3685
|
*/
|
|
2778
|
-
proto.ondewo.s2t.
|
|
2779
|
-
return jspb.Message.
|
|
3686
|
+
proto.ondewo.s2t.TranscribeStreamRequest.prototype.setMuteAudio = function(value) {
|
|
3687
|
+
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
2780
3688
|
};
|
|
2781
3689
|
|
|
2782
3690
|
|
|
@@ -3431,7 +4339,7 @@ proto.ondewo.s2t.TranscribeFileRequest.prototype.hasConfig = function() {
|
|
|
3431
4339
|
* @private {!Array<number>}
|
|
3432
4340
|
* @const
|
|
3433
4341
|
*/
|
|
3434
|
-
proto.ondewo.s2t.TranscribeFileResponse.repeatedFields_ = [1
|
|
4342
|
+
proto.ondewo.s2t.TranscribeFileResponse.repeatedFields_ = [1];
|
|
3435
4343
|
|
|
3436
4344
|
|
|
3437
4345
|
|
|
@@ -3467,9 +4375,7 @@ proto.ondewo.s2t.TranscribeFileResponse.toObject = function(includeInstance, msg
|
|
|
3467
4375
|
transcriptionsList: jspb.Message.toObjectList(msg.getTranscriptionsList(),
|
|
3468
4376
|
proto.ondewo.s2t.Transcription.toObject, includeInstance),
|
|
3469
4377
|
time: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
3470
|
-
|
|
3471
|
-
proto.ondewo.s2t.WordTiming.toObject, includeInstance),
|
|
3472
|
-
audioUuid: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
4378
|
+
audioUuid: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
3473
4379
|
};
|
|
3474
4380
|
|
|
3475
4381
|
if (includeInstance) {
|
|
@@ -3516,11 +4422,6 @@ proto.ondewo.s2t.TranscribeFileResponse.deserializeBinaryFromReader = function(m
|
|
|
3516
4422
|
msg.setTime(value);
|
|
3517
4423
|
break;
|
|
3518
4424
|
case 3:
|
|
3519
|
-
var value = new proto.ondewo.s2t.WordTiming;
|
|
3520
|
-
reader.readMessage(value,proto.ondewo.s2t.WordTiming.deserializeBinaryFromReader);
|
|
3521
|
-
msg.addWordTiming(value);
|
|
3522
|
-
break;
|
|
3523
|
-
case 4:
|
|
3524
4425
|
var value = /** @type {string} */ (reader.readString());
|
|
3525
4426
|
msg.setAudioUuid(value);
|
|
3526
4427
|
break;
|
|
@@ -3568,18 +4469,10 @@ proto.ondewo.s2t.TranscribeFileResponse.serializeBinaryToWriter = function(messa
|
|
|
3568
4469
|
f
|
|
3569
4470
|
);
|
|
3570
4471
|
}
|
|
3571
|
-
f = message.getWordTimingList();
|
|
3572
|
-
if (f.length > 0) {
|
|
3573
|
-
writer.writeRepeatedMessage(
|
|
3574
|
-
3,
|
|
3575
|
-
f,
|
|
3576
|
-
proto.ondewo.s2t.WordTiming.serializeBinaryToWriter
|
|
3577
|
-
);
|
|
3578
|
-
}
|
|
3579
4472
|
f = message.getAudioUuid();
|
|
3580
4473
|
if (f.length > 0) {
|
|
3581
4474
|
writer.writeString(
|
|
3582
|
-
|
|
4475
|
+
3,
|
|
3583
4476
|
f
|
|
3584
4477
|
);
|
|
3585
4478
|
}
|
|
@@ -3643,49 +4536,11 @@ proto.ondewo.s2t.TranscribeFileResponse.prototype.setTime = function(value) {
|
|
|
3643
4536
|
|
|
3644
4537
|
|
|
3645
4538
|
/**
|
|
3646
|
-
*
|
|
3647
|
-
* @return {!Array<!proto.ondewo.s2t.WordTiming>}
|
|
3648
|
-
*/
|
|
3649
|
-
proto.ondewo.s2t.TranscribeFileResponse.prototype.getWordTimingList = function() {
|
|
3650
|
-
return /** @type{!Array<!proto.ondewo.s2t.WordTiming>} */ (
|
|
3651
|
-
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.s2t.WordTiming, 3));
|
|
3652
|
-
};
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
/**
|
|
3656
|
-
* @param {!Array<!proto.ondewo.s2t.WordTiming>} value
|
|
3657
|
-
* @return {!proto.ondewo.s2t.TranscribeFileResponse} returns this
|
|
3658
|
-
*/
|
|
3659
|
-
proto.ondewo.s2t.TranscribeFileResponse.prototype.setWordTimingList = function(value) {
|
|
3660
|
-
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
3661
|
-
};
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
/**
|
|
3665
|
-
* @param {!proto.ondewo.s2t.WordTiming=} opt_value
|
|
3666
|
-
* @param {number=} opt_index
|
|
3667
|
-
* @return {!proto.ondewo.s2t.WordTiming}
|
|
3668
|
-
*/
|
|
3669
|
-
proto.ondewo.s2t.TranscribeFileResponse.prototype.addWordTiming = function(opt_value, opt_index) {
|
|
3670
|
-
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ondewo.s2t.WordTiming, opt_index);
|
|
3671
|
-
};
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
/**
|
|
3675
|
-
* Clears the list making it empty but non-null.
|
|
3676
|
-
* @return {!proto.ondewo.s2t.TranscribeFileResponse} returns this
|
|
3677
|
-
*/
|
|
3678
|
-
proto.ondewo.s2t.TranscribeFileResponse.prototype.clearWordTimingList = function() {
|
|
3679
|
-
return this.setWordTimingList([]);
|
|
3680
|
-
};
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
/**
|
|
3684
|
-
* optional string audio_uuid = 4;
|
|
4539
|
+
* optional string audio_uuid = 3;
|
|
3685
4540
|
* @return {string}
|
|
3686
4541
|
*/
|
|
3687
4542
|
proto.ondewo.s2t.TranscribeFileResponse.prototype.getAudioUuid = function() {
|
|
3688
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
4543
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3689
4544
|
};
|
|
3690
4545
|
|
|
3691
4546
|
|
|
@@ -3694,197 +4549,7 @@ proto.ondewo.s2t.TranscribeFileResponse.prototype.getAudioUuid = function() {
|
|
|
3694
4549
|
* @return {!proto.ondewo.s2t.TranscribeFileResponse} returns this
|
|
3695
4550
|
*/
|
|
3696
4551
|
proto.ondewo.s2t.TranscribeFileResponse.prototype.setAudioUuid = function(value) {
|
|
3697
|
-
return jspb.Message.setProto3StringField(this,
|
|
3698
|
-
};
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3705
|
-
/**
|
|
3706
|
-
* Creates an object representation of this proto.
|
|
3707
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3708
|
-
* Optional fields that are not set will be set to undefined.
|
|
3709
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3710
|
-
* For the list of reserved names please see:
|
|
3711
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3712
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3713
|
-
* JSPB instance for transitional soy proto support:
|
|
3714
|
-
* http://goto/soy-param-migration
|
|
3715
|
-
* @return {!Object}
|
|
3716
|
-
*/
|
|
3717
|
-
proto.ondewo.s2t.WordTiming.prototype.toObject = function(opt_includeInstance) {
|
|
3718
|
-
return proto.ondewo.s2t.WordTiming.toObject(opt_includeInstance, this);
|
|
3719
|
-
};
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
/**
|
|
3723
|
-
* Static version of the {@see toObject} method.
|
|
3724
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3725
|
-
* the JSPB instance for transitional soy proto support:
|
|
3726
|
-
* http://goto/soy-param-migration
|
|
3727
|
-
* @param {!proto.ondewo.s2t.WordTiming} msg The msg instance to transform.
|
|
3728
|
-
* @return {!Object}
|
|
3729
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3730
|
-
*/
|
|
3731
|
-
proto.ondewo.s2t.WordTiming.toObject = function(includeInstance, msg) {
|
|
3732
|
-
var f, obj = {
|
|
3733
|
-
word: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3734
|
-
begin: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
3735
|
-
end: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
3736
|
-
};
|
|
3737
|
-
|
|
3738
|
-
if (includeInstance) {
|
|
3739
|
-
obj.$jspbMessageInstance = msg;
|
|
3740
|
-
}
|
|
3741
|
-
return obj;
|
|
3742
|
-
};
|
|
3743
|
-
}
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
/**
|
|
3747
|
-
* Deserializes binary data (in protobuf wire format).
|
|
3748
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3749
|
-
* @return {!proto.ondewo.s2t.WordTiming}
|
|
3750
|
-
*/
|
|
3751
|
-
proto.ondewo.s2t.WordTiming.deserializeBinary = function(bytes) {
|
|
3752
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
3753
|
-
var msg = new proto.ondewo.s2t.WordTiming;
|
|
3754
|
-
return proto.ondewo.s2t.WordTiming.deserializeBinaryFromReader(msg, reader);
|
|
3755
|
-
};
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
/**
|
|
3759
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
3760
|
-
* given reader into the given message object.
|
|
3761
|
-
* @param {!proto.ondewo.s2t.WordTiming} msg The message object to deserialize into.
|
|
3762
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3763
|
-
* @return {!proto.ondewo.s2t.WordTiming}
|
|
3764
|
-
*/
|
|
3765
|
-
proto.ondewo.s2t.WordTiming.deserializeBinaryFromReader = function(msg, reader) {
|
|
3766
|
-
while (reader.nextField()) {
|
|
3767
|
-
if (reader.isEndGroup()) {
|
|
3768
|
-
break;
|
|
3769
|
-
}
|
|
3770
|
-
var field = reader.getFieldNumber();
|
|
3771
|
-
switch (field) {
|
|
3772
|
-
case 1:
|
|
3773
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3774
|
-
msg.setWord(value);
|
|
3775
|
-
break;
|
|
3776
|
-
case 2:
|
|
3777
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
3778
|
-
msg.setBegin(value);
|
|
3779
|
-
break;
|
|
3780
|
-
case 3:
|
|
3781
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
3782
|
-
msg.setEnd(value);
|
|
3783
|
-
break;
|
|
3784
|
-
default:
|
|
3785
|
-
reader.skipField();
|
|
3786
|
-
break;
|
|
3787
|
-
}
|
|
3788
|
-
}
|
|
3789
|
-
return msg;
|
|
3790
|
-
};
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
/**
|
|
3794
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
3795
|
-
* @return {!Uint8Array}
|
|
3796
|
-
*/
|
|
3797
|
-
proto.ondewo.s2t.WordTiming.prototype.serializeBinary = function() {
|
|
3798
|
-
var writer = new jspb.BinaryWriter();
|
|
3799
|
-
proto.ondewo.s2t.WordTiming.serializeBinaryToWriter(this, writer);
|
|
3800
|
-
return writer.getResultBuffer();
|
|
3801
|
-
};
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
/**
|
|
3805
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
3806
|
-
* format), writing to the given BinaryWriter.
|
|
3807
|
-
* @param {!proto.ondewo.s2t.WordTiming} message
|
|
3808
|
-
* @param {!jspb.BinaryWriter} writer
|
|
3809
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3810
|
-
*/
|
|
3811
|
-
proto.ondewo.s2t.WordTiming.serializeBinaryToWriter = function(message, writer) {
|
|
3812
|
-
var f = undefined;
|
|
3813
|
-
f = message.getWord();
|
|
3814
|
-
if (f.length > 0) {
|
|
3815
|
-
writer.writeString(
|
|
3816
|
-
1,
|
|
3817
|
-
f
|
|
3818
|
-
);
|
|
3819
|
-
}
|
|
3820
|
-
f = message.getBegin();
|
|
3821
|
-
if (f !== 0) {
|
|
3822
|
-
writer.writeInt32(
|
|
3823
|
-
2,
|
|
3824
|
-
f
|
|
3825
|
-
);
|
|
3826
|
-
}
|
|
3827
|
-
f = message.getEnd();
|
|
3828
|
-
if (f !== 0) {
|
|
3829
|
-
writer.writeInt32(
|
|
3830
|
-
3,
|
|
3831
|
-
f
|
|
3832
|
-
);
|
|
3833
|
-
}
|
|
3834
|
-
};
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
/**
|
|
3838
|
-
* optional string word = 1;
|
|
3839
|
-
* @return {string}
|
|
3840
|
-
*/
|
|
3841
|
-
proto.ondewo.s2t.WordTiming.prototype.getWord = function() {
|
|
3842
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3843
|
-
};
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
/**
|
|
3847
|
-
* @param {string} value
|
|
3848
|
-
* @return {!proto.ondewo.s2t.WordTiming} returns this
|
|
3849
|
-
*/
|
|
3850
|
-
proto.ondewo.s2t.WordTiming.prototype.setWord = function(value) {
|
|
3851
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3852
|
-
};
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
/**
|
|
3856
|
-
* optional int32 begin = 2;
|
|
3857
|
-
* @return {number}
|
|
3858
|
-
*/
|
|
3859
|
-
proto.ondewo.s2t.WordTiming.prototype.getBegin = function() {
|
|
3860
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
3861
|
-
};
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
/**
|
|
3865
|
-
* @param {number} value
|
|
3866
|
-
* @return {!proto.ondewo.s2t.WordTiming} returns this
|
|
3867
|
-
*/
|
|
3868
|
-
proto.ondewo.s2t.WordTiming.prototype.setBegin = function(value) {
|
|
3869
|
-
return jspb.Message.setProto3IntField(this, 2, value);
|
|
3870
|
-
};
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
/**
|
|
3874
|
-
* optional int32 end = 3;
|
|
3875
|
-
* @return {number}
|
|
3876
|
-
*/
|
|
3877
|
-
proto.ondewo.s2t.WordTiming.prototype.getEnd = function() {
|
|
3878
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
3879
|
-
};
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
/**
|
|
3883
|
-
* @param {number} value
|
|
3884
|
-
* @return {!proto.ondewo.s2t.WordTiming} returns this
|
|
3885
|
-
*/
|
|
3886
|
-
proto.ondewo.s2t.WordTiming.prototype.setEnd = function(value) {
|
|
3887
|
-
return jspb.Message.setProto3IntField(this, 3, value);
|
|
4552
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3888
4553
|
};
|
|
3889
4554
|
|
|
3890
4555
|
|
|
@@ -6033,7 +6698,8 @@ proto.ondewo.s2t.S2TInference.prototype.toObject = function(opt_includeInstance)
|
|
|
6033
6698
|
proto.ondewo.s2t.S2TInference.toObject = function(includeInstance, msg) {
|
|
6034
6699
|
var f, obj = {
|
|
6035
6700
|
acousticModels: (f = msg.getAcousticModels()) && proto.ondewo.s2t.AcousticModels.toObject(includeInstance, f),
|
|
6036
|
-
languageModels: (f = msg.getLanguageModels()) && proto.ondewo.s2t.LanguageModels.toObject(includeInstance, f)
|
|
6701
|
+
languageModels: (f = msg.getLanguageModels()) && proto.ondewo.s2t.LanguageModels.toObject(includeInstance, f),
|
|
6702
|
+
inferenceBackend: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
6037
6703
|
};
|
|
6038
6704
|
|
|
6039
6705
|
if (includeInstance) {
|
|
@@ -6080,6 +6746,10 @@ proto.ondewo.s2t.S2TInference.deserializeBinaryFromReader = function(msg, reader
|
|
|
6080
6746
|
reader.readMessage(value,proto.ondewo.s2t.LanguageModels.deserializeBinaryFromReader);
|
|
6081
6747
|
msg.setLanguageModels(value);
|
|
6082
6748
|
break;
|
|
6749
|
+
case 3:
|
|
6750
|
+
var value = /** @type {!proto.ondewo.s2t.InferenceBackend} */ (reader.readEnum());
|
|
6751
|
+
msg.setInferenceBackend(value);
|
|
6752
|
+
break;
|
|
6083
6753
|
default:
|
|
6084
6754
|
reader.skipField();
|
|
6085
6755
|
break;
|
|
@@ -6125,6 +6795,13 @@ proto.ondewo.s2t.S2TInference.serializeBinaryToWriter = function(message, writer
|
|
|
6125
6795
|
proto.ondewo.s2t.LanguageModels.serializeBinaryToWriter
|
|
6126
6796
|
);
|
|
6127
6797
|
}
|
|
6798
|
+
f = message.getInferenceBackend();
|
|
6799
|
+
if (f !== 0.0) {
|
|
6800
|
+
writer.writeEnum(
|
|
6801
|
+
3,
|
|
6802
|
+
f
|
|
6803
|
+
);
|
|
6804
|
+
}
|
|
6128
6805
|
};
|
|
6129
6806
|
|
|
6130
6807
|
|
|
@@ -6202,6 +6879,24 @@ proto.ondewo.s2t.S2TInference.prototype.hasLanguageModels = function() {
|
|
|
6202
6879
|
};
|
|
6203
6880
|
|
|
6204
6881
|
|
|
6882
|
+
/**
|
|
6883
|
+
* optional InferenceBackend inference_backend = 3;
|
|
6884
|
+
* @return {!proto.ondewo.s2t.InferenceBackend}
|
|
6885
|
+
*/
|
|
6886
|
+
proto.ondewo.s2t.S2TInference.prototype.getInferenceBackend = function() {
|
|
6887
|
+
return /** @type {!proto.ondewo.s2t.InferenceBackend} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
6888
|
+
};
|
|
6889
|
+
|
|
6890
|
+
|
|
6891
|
+
/**
|
|
6892
|
+
* @param {!proto.ondewo.s2t.InferenceBackend} value
|
|
6893
|
+
* @return {!proto.ondewo.s2t.S2TInference} returns this
|
|
6894
|
+
*/
|
|
6895
|
+
proto.ondewo.s2t.S2TInference.prototype.setInferenceBackend = function(value) {
|
|
6896
|
+
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
6897
|
+
};
|
|
6898
|
+
|
|
6899
|
+
|
|
6205
6900
|
|
|
6206
6901
|
|
|
6207
6902
|
|
|
@@ -11811,4 +12506,13 @@ proto.ondewo.s2t.Decoding = {
|
|
|
11811
12506
|
BEAM_SEARCH: 3
|
|
11812
12507
|
};
|
|
11813
12508
|
|
|
12509
|
+
/**
|
|
12510
|
+
* @enum {number}
|
|
12511
|
+
*/
|
|
12512
|
+
proto.ondewo.s2t.InferenceBackend = {
|
|
12513
|
+
INFERENCE_BACKEND_UNKNOWN: 0,
|
|
12514
|
+
INFERENCE_BACKEND_PYTORCH: 1,
|
|
12515
|
+
INFERENCE_BACKEND_FLAX: 2
|
|
12516
|
+
};
|
|
12517
|
+
|
|
11814
12518
|
goog.object.extend(exports, proto.ondewo.s2t);
|