UNPKG

@ondewo/s2t-client-angular

Version:

ONDEWO Speech 2 Text (S2T) Client library for Angular

1,198 lines (1,195 loc) 252 kB
import * as i0 from '@angular/core'; import { InjectionToken } from '@angular/core'; import { GrpcMessage, RecursivePartial, ToProtobufJSONOptions, GrpcMetadata, GrpcEvent, GrpcClientFactory } from '@ngx-grpc/common'; import { GrpcHandler } from '@ngx-grpc/core'; import { Observable } from 'rxjs'; import { ByteSource, BinaryReader, BinaryWriter } from 'google-protobuf'; import * as googleProtobuf000 from '@ngx-grpc/well-known-types'; /** * Specific GrpcClientSettings for Speech2Text. * Use it only if your default settings are not set or the service requires other settings. */ declare const GRPC_SPEECH2_TEXT_CLIENT_SETTINGS: InjectionToken<any>; declare enum Decoding { DEFAULT = 0, GREEDY = 1, BEAM_SEARCH_WITH_LM = 2, BEAM_SEARCH = 3 } declare enum InferenceBackend { INFERENCE_BACKEND_UNKNOWN = 0, INFERENCE_BACKEND_PYTORCH = 1, INFERENCE_BACKEND_FLAX = 2, INFERENCE_BACKEND_CLOUD_SERVICE_AMAZON = 3, INFERENCE_BACKEND_CLOUD_SERVICE_DEEPGRAM = 4, INFERENCE_BACKEND_CLOUD_SERVICE_GOOGLE = 5, INFERENCE_BACKEND_CLOUD_SERVICE_MICROSOFT = 6 } /** * Message implementation for ondewo.s2t.TranscribeRequestConfig */ declare class TranscribeRequestConfig implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): TranscribeRequestConfig; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: TranscribeRequestConfig): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: TranscribeRequestConfig, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: TranscribeRequestConfig, _writer: BinaryWriter): void; private _s2tPipelineId; private _decoding; private _languageModelName; private _postProcessing?; private _utteranceDetection?; private _pyannote?; private _returnOptions?; private _language; private _task; private _s2tServiceConfig?; private _s2tCloudProviderConfig?; private _oneofLanguageModelName; private _oneofPostProcessing; private _oneofUtteranceDetection; private _voiceActivityDetection; private _oneofReturnOptions; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of TranscribeRequestConfig to deeply clone from */ constructor(_value?: RecursivePartial<TranscribeRequestConfig.AsObject>); get s2tPipelineId(): string; set s2tPipelineId(value: string); get decoding(): Decoding; set decoding(value: Decoding); get languageModelName(): string; set languageModelName(value: string); get postProcessing(): PostProcessingOptions | undefined; set postProcessing(value: PostProcessingOptions | undefined); get utteranceDetection(): UtteranceDetectionOptions | undefined; set utteranceDetection(value: UtteranceDetectionOptions | undefined); get pyannote(): Pyannote | undefined; set pyannote(value: Pyannote | undefined); get returnOptions(): TranscriptionReturnOptions | undefined; set returnOptions(value: TranscriptionReturnOptions | undefined); get language(): string; set language(value: string); get task(): string; set task(value: string); get s2tServiceConfig(): googleProtobuf000.Struct | undefined; set s2tServiceConfig(value: googleProtobuf000.Struct | undefined); get s2tCloudProviderConfig(): S2tCloudProviderConfig | undefined; set s2tCloudProviderConfig(value: S2tCloudProviderConfig | undefined); get oneofLanguageModelName(): TranscribeRequestConfig.OneofLanguageModelNameCase; get oneofPostProcessing(): TranscribeRequestConfig.OneofPostProcessingCase; get oneofUtteranceDetection(): TranscribeRequestConfig.OneofUtteranceDetectionCase; get voiceActivityDetection(): TranscribeRequestConfig.VoiceActivityDetectionCase; get oneofReturnOptions(): TranscribeRequestConfig.OneofReturnOptionsCase; /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): TranscribeRequestConfig.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): TranscribeRequestConfig.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required */ toProtobufJSON(options?: ToProtobufJSONOptions): TranscribeRequestConfig.AsProtobufJSON; } declare namespace TranscribeRequestConfig { /** * Standard JavaScript object representation for TranscribeRequestConfig */ interface AsObject { s2tPipelineId: string; decoding: Decoding; languageModelName: string; postProcessing?: PostProcessingOptions.AsObject; utteranceDetection?: UtteranceDetectionOptions.AsObject; pyannote?: Pyannote.AsObject; returnOptions?: TranscriptionReturnOptions.AsObject; language: string; task: string; s2tServiceConfig?: googleProtobuf000.Struct.AsObject; s2tCloudProviderConfig?: S2tCloudProviderConfig.AsObject; } /** * Protobuf JSON representation for TranscribeRequestConfig */ interface AsProtobufJSON { s2tPipelineId: string; decoding: string; languageModelName: string | null; postProcessing: PostProcessingOptions.AsProtobufJSON | null; utteranceDetection: UtteranceDetectionOptions.AsProtobufJSON | null; pyannote: Pyannote.AsProtobufJSON | null; returnOptions: TranscriptionReturnOptions.AsProtobufJSON | null; language: string; task: string; s2tServiceConfig: googleProtobuf000.Struct.AsProtobufJSON | null; s2tCloudProviderConfig: S2tCloudProviderConfig.AsProtobufJSON | null; } enum OneofLanguageModelNameCase { none = 0, languageModelName = 1 } enum OneofPostProcessingCase { none = 0, postProcessing = 1 } enum OneofUtteranceDetectionCase { none = 0, utteranceDetection = 1 } enum VoiceActivityDetectionCase { none = 0, pyannote = 1 } enum OneofReturnOptionsCase { none = 0, returnOptions = 1 } } /** * Message implementation for ondewo.s2t.S2tCloudProviderConfig */ declare class S2tCloudProviderConfig implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): S2tCloudProviderConfig; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: S2tCloudProviderConfig): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: S2tCloudProviderConfig, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: S2tCloudProviderConfig, _writer: BinaryWriter): void; private _s2tCloudProviderConfigAmazon?; private _s2tCloudProviderConfigDeepgram?; private _s2tCloudProviderConfigGoogle?; private _s2tCloudProviderConfigMicrosoft?; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of S2tCloudProviderConfig to deeply clone from */ constructor(_value?: RecursivePartial<S2tCloudProviderConfig.AsObject>); get s2tCloudProviderConfigAmazon(): S2tCloudProviderConfigAmazon | undefined; set s2tCloudProviderConfigAmazon(value: S2tCloudProviderConfigAmazon | undefined); get s2tCloudProviderConfigDeepgram(): S2tCloudProviderConfigDeepgram | undefined; set s2tCloudProviderConfigDeepgram(value: S2tCloudProviderConfigDeepgram | undefined); get s2tCloudProviderConfigGoogle(): S2tCloudProviderConfigGoogle | undefined; set s2tCloudProviderConfigGoogle(value: S2tCloudProviderConfigGoogle | undefined); get s2tCloudProviderConfigMicrosoft(): S2tCloudProviderConfigMicrosoft | undefined; set s2tCloudProviderConfigMicrosoft(value: S2tCloudProviderConfigMicrosoft | undefined); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): S2tCloudProviderConfig.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): S2tCloudProviderConfig.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required */ toProtobufJSON(options?: ToProtobufJSONOptions): S2tCloudProviderConfig.AsProtobufJSON; } declare namespace S2tCloudProviderConfig { /** * Standard JavaScript object representation for S2tCloudProviderConfig */ interface AsObject { s2tCloudProviderConfigAmazon?: S2tCloudProviderConfigAmazon.AsObject; s2tCloudProviderConfigDeepgram?: S2tCloudProviderConfigDeepgram.AsObject; s2tCloudProviderConfigGoogle?: S2tCloudProviderConfigGoogle.AsObject; s2tCloudProviderConfigMicrosoft?: S2tCloudProviderConfigMicrosoft.AsObject; } /** * Protobuf JSON representation for S2tCloudProviderConfig */ interface AsProtobufJSON { s2tCloudProviderConfigAmazon: S2tCloudProviderConfigAmazon.AsProtobufJSON | null; s2tCloudProviderConfigDeepgram: S2tCloudProviderConfigDeepgram.AsProtobufJSON | null; s2tCloudProviderConfigGoogle: S2tCloudProviderConfigGoogle.AsProtobufJSON | null; s2tCloudProviderConfigMicrosoft: S2tCloudProviderConfigMicrosoft.AsProtobufJSON | null; } } /** * Message implementation for ondewo.s2t.S2tCloudProviderConfigAmazon */ declare class S2tCloudProviderConfigAmazon implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): S2tCloudProviderConfigAmazon; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: S2tCloudProviderConfigAmazon): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: S2tCloudProviderConfigAmazon, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: S2tCloudProviderConfigAmazon, _writer: BinaryWriter): void; private _enablePartialResultsStabilization; private _partialResultsStability; private _languageModelName; private _vocabularyName; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of S2tCloudProviderConfigAmazon to deeply clone from */ constructor(_value?: RecursivePartial<S2tCloudProviderConfigAmazon.AsObject>); get enablePartialResultsStabilization(): boolean; set enablePartialResultsStabilization(value: boolean); get partialResultsStability(): string; set partialResultsStability(value: string); get languageModelName(): string; set languageModelName(value: string); get vocabularyName(): string; set vocabularyName(value: string); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): S2tCloudProviderConfigAmazon.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): S2tCloudProviderConfigAmazon.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required */ toProtobufJSON(options?: ToProtobufJSONOptions): S2tCloudProviderConfigAmazon.AsProtobufJSON; } declare namespace S2tCloudProviderConfigAmazon { /** * Standard JavaScript object representation for S2tCloudProviderConfigAmazon */ interface AsObject { enablePartialResultsStabilization: boolean; partialResultsStability: string; languageModelName: string; vocabularyName: string; } /** * Protobuf JSON representation for S2tCloudProviderConfigAmazon */ interface AsProtobufJSON { enablePartialResultsStabilization: boolean; partialResultsStability: string; languageModelName: string; vocabularyName: string; } } /** * Message implementation for ondewo.s2t.S2tCloudProviderConfigDeepgram */ declare class S2tCloudProviderConfigDeepgram implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): S2tCloudProviderConfigDeepgram; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: S2tCloudProviderConfigDeepgram): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: S2tCloudProviderConfigDeepgram, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: S2tCloudProviderConfigDeepgram, _writer: BinaryWriter): void; private _punctuate; private _smartFormat; private _numerals; private _measurements; private _dictation; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of S2tCloudProviderConfigDeepgram to deeply clone from */ constructor(_value?: RecursivePartial<S2tCloudProviderConfigDeepgram.AsObject>); get punctuate(): boolean; set punctuate(value: boolean); get smartFormat(): boolean; set smartFormat(value: boolean); get numerals(): boolean; set numerals(value: boolean); get measurements(): boolean; set measurements(value: boolean); get dictation(): boolean; set dictation(value: boolean); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): S2tCloudProviderConfigDeepgram.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): S2tCloudProviderConfigDeepgram.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required */ toProtobufJSON(options?: ToProtobufJSONOptions): S2tCloudProviderConfigDeepgram.AsProtobufJSON; } declare namespace S2tCloudProviderConfigDeepgram { /** * Standard JavaScript object representation for S2tCloudProviderConfigDeepgram */ interface AsObject { punctuate: boolean; smartFormat: boolean; numerals: boolean; measurements: boolean; dictation: boolean; } /** * Protobuf JSON representation for S2tCloudProviderConfigDeepgram */ interface AsProtobufJSON { punctuate: boolean; smartFormat: boolean; numerals: boolean; measurements: boolean; dictation: boolean; } } /** * Message implementation for ondewo.s2t.S2tCloudProviderConfigGoogle */ declare class S2tCloudProviderConfigGoogle implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): S2tCloudProviderConfigGoogle; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: S2tCloudProviderConfigGoogle): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: S2tCloudProviderConfigGoogle, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: S2tCloudProviderConfigGoogle, _writer: BinaryWriter): void; private _enableAutomaticPunctuation; private _enableWordTimeOffsets; private _enableWordConfidence; private _transcriptNormalization; private _maxAlternatives; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of S2tCloudProviderConfigGoogle to deeply clone from */ constructor(_value?: RecursivePartial<S2tCloudProviderConfigGoogle.AsObject>); get enableAutomaticPunctuation(): boolean; set enableAutomaticPunctuation(value: boolean); get enableWordTimeOffsets(): boolean; set enableWordTimeOffsets(value: boolean); get enableWordConfidence(): boolean; set enableWordConfidence(value: boolean); get transcriptNormalization(): boolean; set transcriptNormalization(value: boolean); get maxAlternatives(): number; set maxAlternatives(value: number); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): S2tCloudProviderConfigGoogle.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): S2tCloudProviderConfigGoogle.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required */ toProtobufJSON(options?: ToProtobufJSONOptions): S2tCloudProviderConfigGoogle.AsProtobufJSON; } declare namespace S2tCloudProviderConfigGoogle { /** * Standard JavaScript object representation for S2tCloudProviderConfigGoogle */ interface AsObject { enableAutomaticPunctuation: boolean; enableWordTimeOffsets: boolean; enableWordConfidence: boolean; transcriptNormalization: boolean; maxAlternatives: number; } /** * Protobuf JSON representation for S2tCloudProviderConfigGoogle */ interface AsProtobufJSON { enableAutomaticPunctuation: boolean; enableWordTimeOffsets: boolean; enableWordConfidence: boolean; transcriptNormalization: boolean; maxAlternatives: number; } } /** * Message implementation for ondewo.s2t.S2tCloudProviderConfigMicrosoft */ declare class S2tCloudProviderConfigMicrosoft implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): S2tCloudProviderConfigMicrosoft; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: S2tCloudProviderConfigMicrosoft): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: S2tCloudProviderConfigMicrosoft, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: S2tCloudProviderConfigMicrosoft, _writer: BinaryWriter): void; private _useFastTranscriptionApi; private _useDetailedOutputFormat; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of S2tCloudProviderConfigMicrosoft to deeply clone from */ constructor(_value?: RecursivePartial<S2tCloudProviderConfigMicrosoft.AsObject>); get useFastTranscriptionApi(): boolean; set useFastTranscriptionApi(value: boolean); get useDetailedOutputFormat(): boolean; set useDetailedOutputFormat(value: boolean); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): S2tCloudProviderConfigMicrosoft.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): S2tCloudProviderConfigMicrosoft.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required */ toProtobufJSON(options?: ToProtobufJSONOptions): S2tCloudProviderConfigMicrosoft.AsProtobufJSON; } declare namespace S2tCloudProviderConfigMicrosoft { /** * Standard JavaScript object representation for S2tCloudProviderConfigMicrosoft */ interface AsObject { useFastTranscriptionApi: boolean; useDetailedOutputFormat: boolean; } /** * Protobuf JSON representation for S2tCloudProviderConfigMicrosoft */ interface AsProtobufJSON { useFastTranscriptionApi: boolean; useDetailedOutputFormat: boolean; } } /** * Message implementation for ondewo.s2t.TranscriptionReturnOptions */ declare class TranscriptionReturnOptions implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): TranscriptionReturnOptions; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: TranscriptionReturnOptions): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: TranscriptionReturnOptions, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: TranscriptionReturnOptions, _writer: BinaryWriter): void; private _returnStartOfSpeech; private _returnAudio; private _returnConfidenceScore; private _returnAlternativeTranscriptions; private _returnAlternativeTranscriptionsNr; private _returnAlternativeWords; private _returnAlternativeWordsNr; private _returnWordTiming; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of TranscriptionReturnOptions to deeply clone from */ constructor(_value?: RecursivePartial<TranscriptionReturnOptions.AsObject>); get returnStartOfSpeech(): boolean; set returnStartOfSpeech(value: boolean); get returnAudio(): boolean; set returnAudio(value: boolean); get returnConfidenceScore(): boolean; set returnConfidenceScore(value: boolean); get returnAlternativeTranscriptions(): boolean; set returnAlternativeTranscriptions(value: boolean); get returnAlternativeTranscriptionsNr(): number; set returnAlternativeTranscriptionsNr(value: number); get returnAlternativeWords(): boolean; set returnAlternativeWords(value: boolean); get returnAlternativeWordsNr(): number; set returnAlternativeWordsNr(value: number); get returnWordTiming(): boolean; set returnWordTiming(value: boolean); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): TranscriptionReturnOptions.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): TranscriptionReturnOptions.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required */ toProtobufJSON(options?: ToProtobufJSONOptions): TranscriptionReturnOptions.AsProtobufJSON; } declare namespace TranscriptionReturnOptions { /** * Standard JavaScript object representation for TranscriptionReturnOptions */ interface AsObject { returnStartOfSpeech: boolean; returnAudio: boolean; returnConfidenceScore: boolean; returnAlternativeTranscriptions: boolean; returnAlternativeTranscriptionsNr: number; returnAlternativeWords: boolean; returnAlternativeWordsNr: number; returnWordTiming: boolean; } /** * Protobuf JSON representation for TranscriptionReturnOptions */ interface AsProtobufJSON { returnStartOfSpeech: boolean; returnAudio: boolean; returnConfidenceScore: boolean; returnAlternativeTranscriptions: boolean; returnAlternativeTranscriptionsNr: number; returnAlternativeWords: boolean; returnAlternativeWordsNr: number; returnWordTiming: boolean; } } /** * Message implementation for ondewo.s2t.UtteranceDetectionOptions */ declare class UtteranceDetectionOptions implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): UtteranceDetectionOptions; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: UtteranceDetectionOptions): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: UtteranceDetectionOptions, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: UtteranceDetectionOptions, _writer: BinaryWriter): void; private _transcribeNotFinal; private _nextChunkTimeout; private _turnDetection?; private _oneofTranscribeNotFinal; private _oneofTurnDetection; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of UtteranceDetectionOptions to deeply clone from */ constructor(_value?: RecursivePartial<UtteranceDetectionOptions.AsObject>); get transcribeNotFinal(): boolean; set transcribeNotFinal(value: boolean); get nextChunkTimeout(): number; set nextChunkTimeout(value: number); get turnDetection(): TurnDetectionOptions | undefined; set turnDetection(value: TurnDetectionOptions | undefined); get oneofTranscribeNotFinal(): UtteranceDetectionOptions.OneofTranscribeNotFinalCase; get oneofTurnDetection(): UtteranceDetectionOptions.OneofTurnDetectionCase; /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): UtteranceDetectionOptions.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): UtteranceDetectionOptions.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required */ toProtobufJSON(options?: ToProtobufJSONOptions): UtteranceDetectionOptions.AsProtobufJSON; } declare namespace UtteranceDetectionOptions { /** * Standard JavaScript object representation for UtteranceDetectionOptions */ interface AsObject { transcribeNotFinal: boolean; nextChunkTimeout: number; turnDetection?: TurnDetectionOptions.AsObject; } /** * Protobuf JSON representation for UtteranceDetectionOptions */ interface AsProtobufJSON { transcribeNotFinal: boolean; nextChunkTimeout: number; turnDetection: TurnDetectionOptions.AsProtobufJSON | null; } enum OneofTranscribeNotFinalCase { none = 0, transcribeNotFinal = 1 } enum OneofTurnDetectionCase { none = 0, turnDetection = 1 } } /** * Message implementation for ondewo.s2t.PostProcessingOptions */ declare class PostProcessingOptions implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): PostProcessingOptions; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: PostProcessingOptions): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: PostProcessingOptions, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: PostProcessingOptions, _writer: BinaryWriter): void; private _spellingCorrection; private _normalize; private _config?; private _llmPostProcessing; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of PostProcessingOptions to deeply clone from */ constructor(_value?: RecursivePartial<PostProcessingOptions.AsObject>); get spellingCorrection(): boolean; set spellingCorrection(value: boolean); get normalize(): boolean; set normalize(value: boolean); get config(): PostProcessing | undefined; set config(value: PostProcessing | undefined); get llmPostProcessing(): boolean; set llmPostProcessing(value: boolean); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): PostProcessingOptions.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): PostProcessingOptions.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required */ toProtobufJSON(options?: ToProtobufJSONOptions): PostProcessingOptions.AsProtobufJSON; } declare namespace PostProcessingOptions { /** * Standard JavaScript object representation for PostProcessingOptions */ interface AsObject { spellingCorrection: boolean; normalize: boolean; config?: PostProcessing.AsObject; llmPostProcessing: boolean; } /** * Protobuf JSON representation for PostProcessingOptions */ interface AsProtobufJSON { spellingCorrection: boolean; normalize: boolean; config: PostProcessing.AsProtobufJSON | null; llmPostProcessing: boolean; } } /** * Message implementation for ondewo.s2t.Transcription */ declare class Transcription implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): Transcription; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: Transcription): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: Transcription, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: Transcription, _writer: BinaryWriter): void; private _transcription; private _confidenceScore; private _words?; private _alternatives?; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of Transcription to deeply clone from */ constructor(_value?: RecursivePartial<Transcription.AsObject>); get transcription(): string; set transcription(value: string); get confidenceScore(): number; set confidenceScore(value: number); get words(): WordDetail[] | undefined; set words(value: WordDetail[] | undefined); get alternatives(): TranscriptionAlternative[] | undefined; set alternatives(value: TranscriptionAlternative[] | undefined); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): Transcription.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): Transcription.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required */ toProtobufJSON(options?: ToProtobufJSONOptions): Transcription.AsProtobufJSON; } declare namespace Transcription { /** * Standard JavaScript object representation for Transcription */ interface AsObject { transcription: string; confidenceScore: number; words?: WordDetail.AsObject[]; alternatives?: TranscriptionAlternative.AsObject[]; } /** * Protobuf JSON representation for Transcription */ interface AsProtobufJSON { transcription: string; confidenceScore: number; words: WordDetail.AsProtobufJSON[] | null; alternatives: TranscriptionAlternative.AsProtobufJSON[] | null; } } /** * Message implementation for ondewo.s2t.TranscriptionAlternative */ declare class TranscriptionAlternative implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): TranscriptionAlternative; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: TranscriptionAlternative): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: TranscriptionAlternative, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: TranscriptionAlternative, _writer: BinaryWriter): void; private _transcript; private _confidence; private _words?; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of TranscriptionAlternative to deeply clone from */ constructor(_value?: RecursivePartial<TranscriptionAlternative.AsObject>); get transcript(): string; set transcript(value: string); get confidence(): number; set confidence(value: number); get words(): WordDetail[] | undefined; set words(value: WordDetail[] | undefined); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): TranscriptionAlternative.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): TranscriptionAlternative.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required */ toProtobufJSON(options?: ToProtobufJSONOptions): TranscriptionAlternative.AsProtobufJSON; } declare namespace TranscriptionAlternative { /** * Standard JavaScript object representation for TranscriptionAlternative */ interface AsObject { transcript: string; confidence: number; words?: WordDetail.AsObject[]; } /** * Protobuf JSON representation for TranscriptionAlternative */ interface AsProtobufJSON { transcript: string; confidence: number; words: WordDetail.AsProtobufJSON[] | null; } } /** * Message implementation for ondewo.s2t.WordDetail */ declare class WordDetail implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): WordDetail; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: WordDetail): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: WordDetail, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: WordDetail, _writer: BinaryWriter): void; private _startTime; private _endTime; private _word; private _confidence; private _wordAlternatives?; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of WordDetail to deeply clone from */ constructor(_value?: RecursivePartial<WordDetail.AsObject>); get startTime(): number; set startTime(value: number); get endTime(): number; set endTime(value: number); get word(): string; set word(value: string); get confidence(): number; set confidence(value: number); get wordAlternatives(): WordAlternative[] | undefined; set wordAlternatives(value: WordAlternative[] | undefined); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): WordDetail.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): WordDetail.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required */ toProtobufJSON(options?: ToProtobufJSONOptions): WordDetail.AsProtobufJSON; } declare namespace WordDetail { /** * Standard JavaScript object representation for WordDetail */ interface AsObject { startTime: number; endTime: number; word: string; confidence: number; wordAlternatives?: WordAlternative.AsObject[]; } /** * Protobuf JSON representation for WordDetail */ interface AsProtobufJSON { startTime: number; endTime: number; word: string; confidence: number; wordAlternatives: WordAlternative.AsProtobufJSON[] | null; } } /** * Message implementation for ondewo.s2t.WordAlternative */ declare class WordAlternative implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): WordAlternative; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: WordAlternative): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: WordAlternative, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: WordAlternative, _writer: BinaryWriter): void; private _word; private _confidence; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of WordAlternative to deeply clone from */ constructor(_value?: RecursivePartial<WordAlternative.AsObject>); get word(): string; set word(value: string); get confidence(): number; set confidence(value: number); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): WordAlternative.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): WordAlternative.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required */ toProtobufJSON(options?: ToProtobufJSONOptions): WordAlternative.AsProtobufJSON; } declare namespace WordAlternative { /** * Standard JavaScript object representation for WordAlternative */ interface AsObject { word: string; confidence: number; } /** * Protobuf JSON representation for WordAlternative