@ondewo/s2t-client-typescript 4.0.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,20 +1,34 @@
1
- <p align="center">
2
- <a href="https://www.ondewo.com">
3
- <img alt="ONDEWO Logo" src="https://raw.githubusercontent.com/ondewo/ondewo-logos/master/github/ondewo_logo_github_2.png"/>
4
- </a>
1
+ <div align="center">
2
+ <table>
3
+ <tr>
4
+ <td>
5
+ <a href="https://ondewo.com/en/products/natural-language-understanding/">
6
+ <img width="400px" src="https://raw.githubusercontent.com/ondewo/ondewo-logos/master/ondewo_we_automate_your_phone_calls.png"/>
7
+ </a>
8
+ </td>
9
+ </tr>
10
+ <tr>
11
+ <td align="center">
12
+ <a href="https://www.linkedin.com/company/ondewo "><img width="40px" src="https://cdn-icons-png.flaticon.com/512/3536/3536505.png"></a>
13
+ <a href="https://www.facebook.com/ondewo"><img width="40px" src="https://cdn-icons-png.flaticon.com/512/733/733547.png"></a>
14
+ <a href="https://twitter.com/ondewo"><img width="40px" src="https://cdn-icons-png.flaticon.com/512/733/733579.png"> </a>
15
+ <a href="https://www.instagram.com/ondewo.ai/"><img width="40px" src="https://cdn-icons-png.flaticon.com/512/174/174855.png"></a>
16
+ <a href="https://badge.fury.io/js/%40ondewo%2Fs2t-client-typescript"><img src="https://badge.fury.io/js/%40ondewo%2Fs2t-client-typescript.svg" alt="npm version" height="32"></a>
17
+ </td>
18
+ </tr>
19
+ </table>
5
20
  <h1 align="center">
6
21
  ONDEWO S2T Client Typescript
7
22
  </h1>
8
- <p align="center">
9
- <a href="https://badge.fury.io/js/%40ondewo%2Fs2t-client-typescript"><img src="https://badge.fury.io/js/%40ondewo%2Fs2t-client-typescript.svg" alt="npm version" height="18"></a>
10
- </p>
11
- </p>
23
+ </div>
12
24
 
13
- # @ondewo/s2t-client-typescript
25
+ ## Overview
14
26
 
15
- `@ondewo/s2t-client-typescript` is a compiled version of the [ONDEWO S2T API](https://github.com/ondewo/ondewo-s2t-api). Here you can find the S2T API [documentation](https://ondewo.github.io/ondewo-s2t-api/).
27
+ `@ondewo/s2t-client-typescript` is a compiled version of the [ONDEWO S2T API](https://github.com/ondewo/ondewo-s2t-api) using the [ONDEWO PROTO COMPILER](https://github.com/ondewo/ondewo-proto-compiler). Here you can find the S2T API [documentation](https://ondewo.github.io).
16
28
 
17
- ## Installation
29
+ ONDEWO APIs use [Protocol Buffers](https://github.com/google/protobuf) version 3 (proto3) as their Interface Definition Language (IDL) to define the API interface and the structure of the payload messages. The same interface definition is used for gRPC versions of the API in all languages.
30
+
31
+ ## Setup
18
32
 
19
33
  Using NPM:
20
34
 
@@ -22,6 +36,33 @@ Using NPM:
22
36
  npm i --save @ondewo/s2t-client-typescript
23
37
  ```
24
38
 
25
- ## Documentation
39
+ Using GitHub:
40
+
41
+ ```shell
42
+ git clone https://github.com/ondewo/ondewo-s2t-client-typescript.git ## Clone repository
43
+ cd ondewo-s2t-client-typescript ## Change into repo-directoy
44
+ make setup_developer_environment_locally ## Install dependencies
45
+ ```
46
+
47
+ ## Package structure
48
+
49
+ ```
50
+ npm
51
+ ├── api
52
+ │ ├── google
53
+ │ │ └── protobuf
54
+ │ │ ├── empty_pb.d.ts
55
+ │ │ └── empty_pb.js
56
+ │ └── ondewo
57
+ │ └── s2t
58
+ │ ├── speech-to-text_grpc_web_pb.d.ts
59
+ │ ├── speech-to-text_grpc_web_pb.js
60
+ │ ├── speech-to-text_pb.d.ts
61
+ │ └── speech-to-text_pb.js
62
+ ├── LICENSE
63
+ ├── package.json
64
+ ├── public-api.d.ts
65
+ ├── public-api.js
66
+ └── README.md
67
+ ```
26
68
 
27
- Read the full documentation on [GitHub](https://github.com/ondewo/ondewo-s2t-client-typescript).
@@ -7,8 +7,8 @@ export class TranscribeRequestConfig extends jspb.Message {
7
7
  getS2tPipelineId(): string;
8
8
  setS2tPipelineId(value: string): TranscribeRequestConfig;
9
9
 
10
- getCtcDecoding(): CTCDecoding;
11
- setCtcDecoding(value: CTCDecoding): TranscribeRequestConfig;
10
+ getDecoding(): Decoding;
11
+ setDecoding(value: Decoding): TranscribeRequestConfig;
12
12
 
13
13
  getLanguageModelName(): string;
14
14
  setLanguageModelName(value: string): TranscribeRequestConfig;
@@ -59,7 +59,7 @@ export class TranscribeRequestConfig extends jspb.Message {
59
59
  export namespace TranscribeRequestConfig {
60
60
  export type AsObject = {
61
61
  s2tPipelineId: string,
62
- ctcDecoding: CTCDecoding,
62
+ decoding: Decoding,
63
63
  languageModelName: string,
64
64
  postProcessing?: PostProcessingOptions.AsObject,
65
65
  utteranceDetection?: UtteranceDetectionOptions.AsObject,
@@ -668,10 +668,10 @@ export namespace S2TDescription {
668
668
  }
669
669
 
670
670
  export class S2TInference extends jspb.Message {
671
- getCtcAcousticModels(): CtcAcousticModels | undefined;
672
- setCtcAcousticModels(value?: CtcAcousticModels): S2TInference;
673
- hasCtcAcousticModels(): boolean;
674
- clearCtcAcousticModels(): S2TInference;
671
+ getAcousticModels(): AcousticModels | undefined;
672
+ setAcousticModels(value?: AcousticModels): S2TInference;
673
+ hasAcousticModels(): boolean;
674
+ clearAcousticModels(): S2TInference;
675
675
 
676
676
  getLanguageModels(): LanguageModels | undefined;
677
677
  setLanguageModels(value?: LanguageModels): S2TInference;
@@ -688,50 +688,118 @@ export class S2TInference extends jspb.Message {
688
688
 
689
689
  export namespace S2TInference {
690
690
  export type AsObject = {
691
- ctcAcousticModels?: CtcAcousticModels.AsObject,
691
+ acousticModels?: AcousticModels.AsObject,
692
692
  languageModels?: LanguageModels.AsObject,
693
693
  }
694
694
  }
695
695
 
696
- export class CtcAcousticModels extends jspb.Message {
696
+ export class AcousticModels extends jspb.Message {
697
697
  getType(): string;
698
- setType(value: string): CtcAcousticModels;
698
+ setType(value: string): AcousticModels;
699
699
 
700
700
  getQuartznet(): Quartznet | undefined;
701
- setQuartznet(value?: Quartznet): CtcAcousticModels;
701
+ setQuartznet(value?: Quartznet): AcousticModels;
702
702
  hasQuartznet(): boolean;
703
- clearQuartznet(): CtcAcousticModels;
703
+ clearQuartznet(): AcousticModels;
704
704
 
705
705
  getQuartznetTriton(): QuartznetTriton | undefined;
706
- setQuartznetTriton(value?: QuartznetTriton): CtcAcousticModels;
706
+ setQuartznetTriton(value?: QuartznetTriton): AcousticModels;
707
707
  hasQuartznetTriton(): boolean;
708
- clearQuartznetTriton(): CtcAcousticModels;
708
+ clearQuartznetTriton(): AcousticModels;
709
709
 
710
710
  getWav2vec(): Wav2Vec | undefined;
711
- setWav2vec(value?: Wav2Vec): CtcAcousticModels;
711
+ setWav2vec(value?: Wav2Vec): AcousticModels;
712
712
  hasWav2vec(): boolean;
713
- clearWav2vec(): CtcAcousticModels;
713
+ clearWav2vec(): AcousticModels;
714
714
 
715
715
  getWav2vecTriton(): Wav2VecTriton | undefined;
716
- setWav2vecTriton(value?: Wav2VecTriton): CtcAcousticModels;
716
+ setWav2vecTriton(value?: Wav2VecTriton): AcousticModels;
717
717
  hasWav2vecTriton(): boolean;
718
- clearWav2vecTriton(): CtcAcousticModels;
718
+ clearWav2vecTriton(): AcousticModels;
719
+
720
+ getWhisper(): Whisper | undefined;
721
+ setWhisper(value?: Whisper): AcousticModels;
722
+ hasWhisper(): boolean;
723
+ clearWhisper(): AcousticModels;
724
+
725
+ getWhisperTriton(): WhisperTriton | undefined;
726
+ setWhisperTriton(value?: WhisperTriton): AcousticModels;
727
+ hasWhisperTriton(): boolean;
728
+ clearWhisperTriton(): AcousticModels;
719
729
 
720
730
  serializeBinary(): Uint8Array;
721
- toObject(includeInstance?: boolean): CtcAcousticModels.AsObject;
722
- static toObject(includeInstance: boolean, msg: CtcAcousticModels): CtcAcousticModels.AsObject;
723
- static serializeBinaryToWriter(message: CtcAcousticModels, writer: jspb.BinaryWriter): void;
724
- static deserializeBinary(bytes: Uint8Array): CtcAcousticModels;
725
- static deserializeBinaryFromReader(message: CtcAcousticModels, reader: jspb.BinaryReader): CtcAcousticModels;
731
+ toObject(includeInstance?: boolean): AcousticModels.AsObject;
732
+ static toObject(includeInstance: boolean, msg: AcousticModels): AcousticModels.AsObject;
733
+ static serializeBinaryToWriter(message: AcousticModels, writer: jspb.BinaryWriter): void;
734
+ static deserializeBinary(bytes: Uint8Array): AcousticModels;
735
+ static deserializeBinaryFromReader(message: AcousticModels, reader: jspb.BinaryReader): AcousticModels;
726
736
  }
727
737
 
728
- export namespace CtcAcousticModels {
738
+ export namespace AcousticModels {
729
739
  export type AsObject = {
730
740
  type: string,
731
741
  quartznet?: Quartznet.AsObject,
732
742
  quartznetTriton?: QuartznetTriton.AsObject,
733
743
  wav2vec?: Wav2Vec.AsObject,
734
744
  wav2vecTriton?: Wav2VecTriton.AsObject,
745
+ whisper?: Whisper.AsObject,
746
+ whisperTriton?: WhisperTriton.AsObject,
747
+ }
748
+ }
749
+
750
+ export class Whisper extends jspb.Message {
751
+ getModelPath(): string;
752
+ setModelPath(value: string): Whisper;
753
+
754
+ getUseGpu(): boolean;
755
+ setUseGpu(value: boolean): Whisper;
756
+
757
+ getLanguage(): string;
758
+ setLanguage(value: string): Whisper;
759
+
760
+ serializeBinary(): Uint8Array;
761
+ toObject(includeInstance?: boolean): Whisper.AsObject;
762
+ static toObject(includeInstance: boolean, msg: Whisper): Whisper.AsObject;
763
+ static serializeBinaryToWriter(message: Whisper, writer: jspb.BinaryWriter): void;
764
+ static deserializeBinary(bytes: Uint8Array): Whisper;
765
+ static deserializeBinaryFromReader(message: Whisper, reader: jspb.BinaryReader): Whisper;
766
+ }
767
+
768
+ export namespace Whisper {
769
+ export type AsObject = {
770
+ modelPath: string,
771
+ useGpu: boolean,
772
+ language: string,
773
+ }
774
+ }
775
+
776
+ export class WhisperTriton extends jspb.Message {
777
+ getProcessorPath(): string;
778
+ setProcessorPath(value: string): WhisperTriton;
779
+
780
+ getTritonModelName(): string;
781
+ setTritonModelName(value: string): WhisperTriton;
782
+
783
+ getTritonModelVersion(): string;
784
+ setTritonModelVersion(value: string): WhisperTriton;
785
+
786
+ getCheckStatusTimeout(): number;
787
+ setCheckStatusTimeout(value: number): WhisperTriton;
788
+
789
+ serializeBinary(): Uint8Array;
790
+ toObject(includeInstance?: boolean): WhisperTriton.AsObject;
791
+ static toObject(includeInstance: boolean, msg: WhisperTriton): WhisperTriton.AsObject;
792
+ static serializeBinaryToWriter(message: WhisperTriton, writer: jspb.BinaryWriter): void;
793
+ static deserializeBinary(bytes: Uint8Array): WhisperTriton;
794
+ static deserializeBinaryFromReader(message: WhisperTriton, reader: jspb.BinaryReader): WhisperTriton;
795
+ }
796
+
797
+ export namespace WhisperTriton {
798
+ export type AsObject = {
799
+ processorPath: string,
800
+ tritonModelName: string,
801
+ tritonModelVersion: string,
802
+ checkStatusTimeout: number,
735
803
  }
736
804
  }
737
805
 
@@ -961,8 +1029,8 @@ export class StreamingSpeechRecognition extends jspb.Message {
961
1029
  getTranscribeNotFinal(): boolean;
962
1030
  setTranscribeNotFinal(value: boolean): StreamingSpeechRecognition;
963
1031
 
964
- getCtcDecodingMethod(): string;
965
- setCtcDecodingMethod(value: string): StreamingSpeechRecognition;
1032
+ getDecodingMethod(): string;
1033
+ setDecodingMethod(value: string): StreamingSpeechRecognition;
966
1034
 
967
1035
  getSamplingRate(): number;
968
1036
  setSamplingRate(value: number): StreamingSpeechRecognition;
@@ -990,7 +1058,7 @@ export class StreamingSpeechRecognition extends jspb.Message {
990
1058
  export namespace StreamingSpeechRecognition {
991
1059
  export type AsObject = {
992
1060
  transcribeNotFinal: boolean,
993
- ctcDecodingMethod: string,
1061
+ decodingMethod: string,
994
1062
  samplingRate: number,
995
1063
  minAudioChunkSize: number,
996
1064
  startOfUtteranceThreshold: number,
@@ -1372,8 +1440,9 @@ export namespace TrainUserLanguageModelRequest {
1372
1440
  }
1373
1441
  }
1374
1442
 
1375
- export enum CTCDecoding {
1443
+ export enum Decoding {
1376
1444
  DEFAULT = 0,
1377
1445
  GREEDY = 1,
1378
1446
  BEAM_SEARCH_WITH_LM = 2,
1447
+ BEAM_SEARCH = 3,
1379
1448
  }