@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
|
@@ -102,11 +102,20 @@ export class TranscriptionReturnOptions extends jspb.Message {
|
|
|
102
102
|
getReturnAudio(): boolean;
|
|
103
103
|
setReturnAudio(value: boolean): TranscriptionReturnOptions;
|
|
104
104
|
|
|
105
|
+
getReturnConfidenceScore(): boolean;
|
|
106
|
+
setReturnConfidenceScore(value: boolean): TranscriptionReturnOptions;
|
|
107
|
+
|
|
105
108
|
getReturnAlternativeTranscriptions(): boolean;
|
|
106
109
|
setReturnAlternativeTranscriptions(value: boolean): TranscriptionReturnOptions;
|
|
107
110
|
|
|
108
|
-
|
|
109
|
-
|
|
111
|
+
getReturnAlternativeTranscriptionsNr(): number;
|
|
112
|
+
setReturnAlternativeTranscriptionsNr(value: number): TranscriptionReturnOptions;
|
|
113
|
+
|
|
114
|
+
getReturnAlternativeWords(): boolean;
|
|
115
|
+
setReturnAlternativeWords(value: boolean): TranscriptionReturnOptions;
|
|
116
|
+
|
|
117
|
+
getReturnAlternativeWordsNr(): number;
|
|
118
|
+
setReturnAlternativeWordsNr(value: number): TranscriptionReturnOptions;
|
|
110
119
|
|
|
111
120
|
getReturnWordTiming(): boolean;
|
|
112
121
|
setReturnWordTiming(value: boolean): TranscriptionReturnOptions;
|
|
@@ -123,8 +132,11 @@ export namespace TranscriptionReturnOptions {
|
|
|
123
132
|
export type AsObject = {
|
|
124
133
|
returnStartOfSpeech: boolean,
|
|
125
134
|
returnAudio: boolean,
|
|
126
|
-
returnAlternativeTranscriptions: boolean,
|
|
127
135
|
returnConfidenceScore: boolean,
|
|
136
|
+
returnAlternativeTranscriptions: boolean,
|
|
137
|
+
returnAlternativeTranscriptionsNr: number,
|
|
138
|
+
returnAlternativeWords: boolean,
|
|
139
|
+
returnAlternativeWordsNr: number,
|
|
128
140
|
returnWordTiming: boolean,
|
|
129
141
|
}
|
|
130
142
|
}
|
|
@@ -194,6 +206,126 @@ export namespace PostProcessingOptions {
|
|
|
194
206
|
}
|
|
195
207
|
}
|
|
196
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
|
+
|
|
197
329
|
export class TranscribeStreamRequest extends jspb.Message {
|
|
198
330
|
getAudioChunk(): Uint8Array | string;
|
|
199
331
|
getAudioChunk_asU8(): Uint8Array;
|
|
@@ -228,28 +360,6 @@ export namespace TranscribeStreamRequest {
|
|
|
228
360
|
}
|
|
229
361
|
}
|
|
230
362
|
|
|
231
|
-
export class Transcription extends jspb.Message {
|
|
232
|
-
getTranscription(): string;
|
|
233
|
-
setTranscription(value: string): Transcription;
|
|
234
|
-
|
|
235
|
-
getConfidenceScore(): number;
|
|
236
|
-
setConfidenceScore(value: number): Transcription;
|
|
237
|
-
|
|
238
|
-
serializeBinary(): Uint8Array;
|
|
239
|
-
toObject(includeInstance?: boolean): Transcription.AsObject;
|
|
240
|
-
static toObject(includeInstance: boolean, msg: Transcription): Transcription.AsObject;
|
|
241
|
-
static serializeBinaryToWriter(message: Transcription, writer: jspb.BinaryWriter): void;
|
|
242
|
-
static deserializeBinary(bytes: Uint8Array): Transcription;
|
|
243
|
-
static deserializeBinaryFromReader(message: Transcription, reader: jspb.BinaryReader): Transcription;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
export namespace Transcription {
|
|
247
|
-
export type AsObject = {
|
|
248
|
-
transcription: string,
|
|
249
|
-
confidenceScore: number,
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
363
|
export class TranscribeStreamResponse extends jspb.Message {
|
|
254
364
|
getTranscriptionsList(): Array<Transcription>;
|
|
255
365
|
setTranscriptionsList(value: Array<Transcription>): TranscribeStreamResponse;
|
|
@@ -344,11 +454,6 @@ export class TranscribeFileResponse extends jspb.Message {
|
|
|
344
454
|
getTime(): number;
|
|
345
455
|
setTime(value: number): TranscribeFileResponse;
|
|
346
456
|
|
|
347
|
-
getWordTimingList(): Array<WordTiming>;
|
|
348
|
-
setWordTimingList(value: Array<WordTiming>): TranscribeFileResponse;
|
|
349
|
-
clearWordTimingList(): TranscribeFileResponse;
|
|
350
|
-
addWordTiming(value?: WordTiming, index?: number): WordTiming;
|
|
351
|
-
|
|
352
457
|
getAudioUuid(): string;
|
|
353
458
|
setAudioUuid(value: string): TranscribeFileResponse;
|
|
354
459
|
|
|
@@ -364,37 +469,10 @@ export namespace TranscribeFileResponse {
|
|
|
364
469
|
export type AsObject = {
|
|
365
470
|
transcriptionsList: Array<Transcription.AsObject>,
|
|
366
471
|
time: number,
|
|
367
|
-
wordTimingList: Array<WordTiming.AsObject>,
|
|
368
472
|
audioUuid: string,
|
|
369
473
|
}
|
|
370
474
|
}
|
|
371
475
|
|
|
372
|
-
export class WordTiming extends jspb.Message {
|
|
373
|
-
getWord(): string;
|
|
374
|
-
setWord(value: string): WordTiming;
|
|
375
|
-
|
|
376
|
-
getBegin(): number;
|
|
377
|
-
setBegin(value: number): WordTiming;
|
|
378
|
-
|
|
379
|
-
getEnd(): number;
|
|
380
|
-
setEnd(value: number): WordTiming;
|
|
381
|
-
|
|
382
|
-
serializeBinary(): Uint8Array;
|
|
383
|
-
toObject(includeInstance?: boolean): WordTiming.AsObject;
|
|
384
|
-
static toObject(includeInstance: boolean, msg: WordTiming): WordTiming.AsObject;
|
|
385
|
-
static serializeBinaryToWriter(message: WordTiming, writer: jspb.BinaryWriter): void;
|
|
386
|
-
static deserializeBinary(bytes: Uint8Array): WordTiming;
|
|
387
|
-
static deserializeBinaryFromReader(message: WordTiming, reader: jspb.BinaryReader): WordTiming;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
export namespace WordTiming {
|
|
391
|
-
export type AsObject = {
|
|
392
|
-
word: string,
|
|
393
|
-
begin: number,
|
|
394
|
-
end: number,
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
|
|
398
476
|
export class S2tPipelineId extends jspb.Message {
|
|
399
477
|
getId(): string;
|
|
400
478
|
setId(value: string): S2tPipelineId;
|
|
@@ -678,6 +756,9 @@ export class S2TInference extends jspb.Message {
|
|
|
678
756
|
hasLanguageModels(): boolean;
|
|
679
757
|
clearLanguageModels(): S2TInference;
|
|
680
758
|
|
|
759
|
+
getInferenceBackend(): InferenceBackend;
|
|
760
|
+
setInferenceBackend(value: InferenceBackend): S2TInference;
|
|
761
|
+
|
|
681
762
|
serializeBinary(): Uint8Array;
|
|
682
763
|
toObject(includeInstance?: boolean): S2TInference.AsObject;
|
|
683
764
|
static toObject(includeInstance: boolean, msg: S2TInference): S2TInference.AsObject;
|
|
@@ -690,6 +771,7 @@ export namespace S2TInference {
|
|
|
690
771
|
export type AsObject = {
|
|
691
772
|
acousticModels?: AcousticModels.AsObject,
|
|
692
773
|
languageModels?: LanguageModels.AsObject,
|
|
774
|
+
inferenceBackend: InferenceBackend,
|
|
693
775
|
}
|
|
694
776
|
}
|
|
695
777
|
|
|
@@ -1446,3 +1528,8 @@ export enum Decoding {
|
|
|
1446
1528
|
BEAM_SEARCH_WITH_LM = 2,
|
|
1447
1529
|
BEAM_SEARCH = 3,
|
|
1448
1530
|
}
|
|
1531
|
+
export enum InferenceBackend {
|
|
1532
|
+
INFERENCE_BACKEND_UNKNOWN = 0,
|
|
1533
|
+
INFERENCE_BACKEND_PYTORCH = 1,
|
|
1534
|
+
INFERENCE_BACKEND_FLAX = 2,
|
|
1535
|
+
}
|