@ondewo/s2t-client-typescript 5.3.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 +125 -59
- package/api/ondewo/s2t/speech-to-text_pb.js +991 -417
- package/package.json +1 -1
|
@@ -206,6 +206,126 @@ export namespace PostProcessingOptions {
|
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
export class Transcription extends jspb.Message {
|
|
210
|
+
getTranscription(): string;
|
|
211
|
+
setTranscription(value: string): Transcription;
|
|
212
|
+
|
|
213
|
+
getConfidenceScore(): number;
|
|
214
|
+
setConfidenceScore(value: number): Transcription;
|
|
215
|
+
|
|
216
|
+
getWordsList(): Array<WordDetail>;
|
|
217
|
+
setWordsList(value: Array<WordDetail>): Transcription;
|
|
218
|
+
clearWordsList(): Transcription;
|
|
219
|
+
addWords(value?: WordDetail, index?: number): WordDetail;
|
|
220
|
+
|
|
221
|
+
getAlternativesList(): Array<TranscriptionAlternative>;
|
|
222
|
+
setAlternativesList(value: Array<TranscriptionAlternative>): Transcription;
|
|
223
|
+
clearAlternativesList(): Transcription;
|
|
224
|
+
addAlternatives(value?: TranscriptionAlternative, index?: number): TranscriptionAlternative;
|
|
225
|
+
|
|
226
|
+
serializeBinary(): Uint8Array;
|
|
227
|
+
toObject(includeInstance?: boolean): Transcription.AsObject;
|
|
228
|
+
static toObject(includeInstance: boolean, msg: Transcription): Transcription.AsObject;
|
|
229
|
+
static serializeBinaryToWriter(message: Transcription, writer: jspb.BinaryWriter): void;
|
|
230
|
+
static deserializeBinary(bytes: Uint8Array): Transcription;
|
|
231
|
+
static deserializeBinaryFromReader(message: Transcription, reader: jspb.BinaryReader): Transcription;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export namespace Transcription {
|
|
235
|
+
export type AsObject = {
|
|
236
|
+
transcription: string,
|
|
237
|
+
confidenceScore: number,
|
|
238
|
+
wordsList: Array<WordDetail.AsObject>,
|
|
239
|
+
alternativesList: Array<TranscriptionAlternative.AsObject>,
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export class TranscriptionAlternative extends jspb.Message {
|
|
244
|
+
getTranscript(): string;
|
|
245
|
+
setTranscript(value: string): TranscriptionAlternative;
|
|
246
|
+
|
|
247
|
+
getConfidence(): number;
|
|
248
|
+
setConfidence(value: number): TranscriptionAlternative;
|
|
249
|
+
|
|
250
|
+
getWordsList(): Array<WordDetail>;
|
|
251
|
+
setWordsList(value: Array<WordDetail>): TranscriptionAlternative;
|
|
252
|
+
clearWordsList(): TranscriptionAlternative;
|
|
253
|
+
addWords(value?: WordDetail, index?: number): WordDetail;
|
|
254
|
+
|
|
255
|
+
serializeBinary(): Uint8Array;
|
|
256
|
+
toObject(includeInstance?: boolean): TranscriptionAlternative.AsObject;
|
|
257
|
+
static toObject(includeInstance: boolean, msg: TranscriptionAlternative): TranscriptionAlternative.AsObject;
|
|
258
|
+
static serializeBinaryToWriter(message: TranscriptionAlternative, writer: jspb.BinaryWriter): void;
|
|
259
|
+
static deserializeBinary(bytes: Uint8Array): TranscriptionAlternative;
|
|
260
|
+
static deserializeBinaryFromReader(message: TranscriptionAlternative, reader: jspb.BinaryReader): TranscriptionAlternative;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export namespace TranscriptionAlternative {
|
|
264
|
+
export type AsObject = {
|
|
265
|
+
transcript: string,
|
|
266
|
+
confidence: number,
|
|
267
|
+
wordsList: Array<WordDetail.AsObject>,
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export class WordDetail extends jspb.Message {
|
|
272
|
+
getStartTime(): number;
|
|
273
|
+
setStartTime(value: number): WordDetail;
|
|
274
|
+
|
|
275
|
+
getEndTime(): number;
|
|
276
|
+
setEndTime(value: number): WordDetail;
|
|
277
|
+
|
|
278
|
+
getWord(): string;
|
|
279
|
+
setWord(value: string): WordDetail;
|
|
280
|
+
|
|
281
|
+
getConfidence(): number;
|
|
282
|
+
setConfidence(value: number): WordDetail;
|
|
283
|
+
|
|
284
|
+
getWordAlternativesList(): Array<WordAlternative>;
|
|
285
|
+
setWordAlternativesList(value: Array<WordAlternative>): WordDetail;
|
|
286
|
+
clearWordAlternativesList(): WordDetail;
|
|
287
|
+
addWordAlternatives(value?: WordAlternative, index?: number): WordAlternative;
|
|
288
|
+
|
|
289
|
+
serializeBinary(): Uint8Array;
|
|
290
|
+
toObject(includeInstance?: boolean): WordDetail.AsObject;
|
|
291
|
+
static toObject(includeInstance: boolean, msg: WordDetail): WordDetail.AsObject;
|
|
292
|
+
static serializeBinaryToWriter(message: WordDetail, writer: jspb.BinaryWriter): void;
|
|
293
|
+
static deserializeBinary(bytes: Uint8Array): WordDetail;
|
|
294
|
+
static deserializeBinaryFromReader(message: WordDetail, reader: jspb.BinaryReader): WordDetail;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export namespace WordDetail {
|
|
298
|
+
export type AsObject = {
|
|
299
|
+
startTime: number,
|
|
300
|
+
endTime: number,
|
|
301
|
+
word: string,
|
|
302
|
+
confidence: number,
|
|
303
|
+
wordAlternativesList: Array<WordAlternative.AsObject>,
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export class WordAlternative extends jspb.Message {
|
|
308
|
+
getWord(): string;
|
|
309
|
+
setWord(value: string): WordAlternative;
|
|
310
|
+
|
|
311
|
+
getConfidence(): number;
|
|
312
|
+
setConfidence(value: number): WordAlternative;
|
|
313
|
+
|
|
314
|
+
serializeBinary(): Uint8Array;
|
|
315
|
+
toObject(includeInstance?: boolean): WordAlternative.AsObject;
|
|
316
|
+
static toObject(includeInstance: boolean, msg: WordAlternative): WordAlternative.AsObject;
|
|
317
|
+
static serializeBinaryToWriter(message: WordAlternative, writer: jspb.BinaryWriter): void;
|
|
318
|
+
static deserializeBinary(bytes: Uint8Array): WordAlternative;
|
|
319
|
+
static deserializeBinaryFromReader(message: WordAlternative, reader: jspb.BinaryReader): WordAlternative;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export namespace WordAlternative {
|
|
323
|
+
export type AsObject = {
|
|
324
|
+
word: string,
|
|
325
|
+
confidence: number,
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
209
329
|
export class TranscribeStreamRequest extends jspb.Message {
|
|
210
330
|
getAudioChunk(): Uint8Array | string;
|
|
211
331
|
getAudioChunk_asU8(): Uint8Array;
|
|
@@ -240,28 +360,6 @@ export namespace TranscribeStreamRequest {
|
|
|
240
360
|
}
|
|
241
361
|
}
|
|
242
362
|
|
|
243
|
-
export class Transcription extends jspb.Message {
|
|
244
|
-
getTranscription(): string;
|
|
245
|
-
setTranscription(value: string): Transcription;
|
|
246
|
-
|
|
247
|
-
getConfidenceScore(): number;
|
|
248
|
-
setConfidenceScore(value: number): Transcription;
|
|
249
|
-
|
|
250
|
-
serializeBinary(): Uint8Array;
|
|
251
|
-
toObject(includeInstance?: boolean): Transcription.AsObject;
|
|
252
|
-
static toObject(includeInstance: boolean, msg: Transcription): Transcription.AsObject;
|
|
253
|
-
static serializeBinaryToWriter(message: Transcription, writer: jspb.BinaryWriter): void;
|
|
254
|
-
static deserializeBinary(bytes: Uint8Array): Transcription;
|
|
255
|
-
static deserializeBinaryFromReader(message: Transcription, reader: jspb.BinaryReader): Transcription;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
export namespace Transcription {
|
|
259
|
-
export type AsObject = {
|
|
260
|
-
transcription: string,
|
|
261
|
-
confidenceScore: number,
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
363
|
export class TranscribeStreamResponse extends jspb.Message {
|
|
266
364
|
getTranscriptionsList(): Array<Transcription>;
|
|
267
365
|
setTranscriptionsList(value: Array<Transcription>): TranscribeStreamResponse;
|
|
@@ -356,11 +454,6 @@ export class TranscribeFileResponse extends jspb.Message {
|
|
|
356
454
|
getTime(): number;
|
|
357
455
|
setTime(value: number): TranscribeFileResponse;
|
|
358
456
|
|
|
359
|
-
getWordTimingList(): Array<WordTiming>;
|
|
360
|
-
setWordTimingList(value: Array<WordTiming>): TranscribeFileResponse;
|
|
361
|
-
clearWordTimingList(): TranscribeFileResponse;
|
|
362
|
-
addWordTiming(value?: WordTiming, index?: number): WordTiming;
|
|
363
|
-
|
|
364
457
|
getAudioUuid(): string;
|
|
365
458
|
setAudioUuid(value: string): TranscribeFileResponse;
|
|
366
459
|
|
|
@@ -376,37 +469,10 @@ export namespace TranscribeFileResponse {
|
|
|
376
469
|
export type AsObject = {
|
|
377
470
|
transcriptionsList: Array<Transcription.AsObject>,
|
|
378
471
|
time: number,
|
|
379
|
-
wordTimingList: Array<WordTiming.AsObject>,
|
|
380
472
|
audioUuid: string,
|
|
381
473
|
}
|
|
382
474
|
}
|
|
383
475
|
|
|
384
|
-
export class WordTiming extends jspb.Message {
|
|
385
|
-
getWord(): string;
|
|
386
|
-
setWord(value: string): WordTiming;
|
|
387
|
-
|
|
388
|
-
getBegin(): number;
|
|
389
|
-
setBegin(value: number): WordTiming;
|
|
390
|
-
|
|
391
|
-
getEnd(): number;
|
|
392
|
-
setEnd(value: number): WordTiming;
|
|
393
|
-
|
|
394
|
-
serializeBinary(): Uint8Array;
|
|
395
|
-
toObject(includeInstance?: boolean): WordTiming.AsObject;
|
|
396
|
-
static toObject(includeInstance: boolean, msg: WordTiming): WordTiming.AsObject;
|
|
397
|
-
static serializeBinaryToWriter(message: WordTiming, writer: jspb.BinaryWriter): void;
|
|
398
|
-
static deserializeBinary(bytes: Uint8Array): WordTiming;
|
|
399
|
-
static deserializeBinaryFromReader(message: WordTiming, reader: jspb.BinaryReader): WordTiming;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
export namespace WordTiming {
|
|
403
|
-
export type AsObject = {
|
|
404
|
-
word: string,
|
|
405
|
-
begin: number,
|
|
406
|
-
end: number,
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
|
|
410
476
|
export class S2tPipelineId extends jspb.Message {
|
|
411
477
|
getId(): string;
|
|
412
478
|
setId(value: string): S2tPipelineId;
|
|
@@ -1456,14 +1522,14 @@ export namespace TrainUserLanguageModelRequest {
|
|
|
1456
1522
|
}
|
|
1457
1523
|
}
|
|
1458
1524
|
|
|
1459
|
-
export enum InferenceBackend {
|
|
1460
|
-
INFERENCE_BACKEND_UNKNOWN = 0,
|
|
1461
|
-
INFERENCE_BACKEND_PYTORCH = 1,
|
|
1462
|
-
INFERENCE_BACKEND_FLAX = 2,
|
|
1463
|
-
}
|
|
1464
1525
|
export enum Decoding {
|
|
1465
1526
|
DEFAULT = 0,
|
|
1466
1527
|
GREEDY = 1,
|
|
1467
1528
|
BEAM_SEARCH_WITH_LM = 2,
|
|
1468
1529
|
BEAM_SEARCH = 3,
|
|
1469
1530
|
}
|
|
1531
|
+
export enum InferenceBackend {
|
|
1532
|
+
INFERENCE_BACKEND_UNKNOWN = 0,
|
|
1533
|
+
INFERENCE_BACKEND_PYTORCH = 1,
|
|
1534
|
+
INFERENCE_BACKEND_FLAX = 2,
|
|
1535
|
+
}
|