UNPKG

@ondewo/csi-client-angular

Version:

ONDEWO Conversation System Integration (CSI) Client library for Angular

1,234 lines (1,233 loc) 175 kB
import { GrpcMessage, RecursivePartial, ToProtobufJSONOptions } from '@ngx-grpc/common'; import { BinaryReader, BinaryWriter, ByteSource } from 'google-protobuf'; import * as googleProtobuf001 from '@ngx-grpc/well-known-types'; export declare enum Pcm { PCM_16 = 0, PCM_24 = 1, PCM_32 = 2, PCM_S8 = 3, PCM_U8 = 4, FLOAT = 5, DOUBLE = 6 } export declare enum AudioFormat { wav = 0, flac = 1, caf = 2, mp3 = 3, aac = 4, ogg = 5, wma = 6 } /** * Message implementation for ondewo.t2s.SynthesizeRequest */ export declare class SynthesizeRequest implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): SynthesizeRequest; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: SynthesizeRequest): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: SynthesizeRequest, _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: SynthesizeRequest, _writer: BinaryWriter): void; private _text; private _config?; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of SynthesizeRequest to deeply clone from */ constructor(_value?: RecursivePartial<SynthesizeRequest.AsObject>); get text(): string; set text(value: string); get config(): RequestConfig | undefined; set config(value: RequestConfig | 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(): SynthesizeRequest.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): SynthesizeRequest.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): SynthesizeRequest.AsProtobufJSON; } export declare namespace SynthesizeRequest { /** * Standard JavaScript object representation for SynthesizeRequest */ interface AsObject { text: string; config?: RequestConfig.AsObject; } /** * Protobuf JSON representation for SynthesizeRequest */ interface AsProtobufJSON { text: string; config: RequestConfig.AsProtobufJSON | null; } } /** * Message implementation for ondewo.t2s.BatchSynthesizeRequest */ export declare class BatchSynthesizeRequest implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): BatchSynthesizeRequest; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: BatchSynthesizeRequest): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: BatchSynthesizeRequest, _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: BatchSynthesizeRequest, _writer: BinaryWriter): void; private _batchRequest?; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of BatchSynthesizeRequest to deeply clone from */ constructor(_value?: RecursivePartial<BatchSynthesizeRequest.AsObject>); get batchRequest(): SynthesizeRequest[] | undefined; set batchRequest(value: SynthesizeRequest[] | 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(): BatchSynthesizeRequest.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): BatchSynthesizeRequest.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): BatchSynthesizeRequest.AsProtobufJSON; } export declare namespace BatchSynthesizeRequest { /** * Standard JavaScript object representation for BatchSynthesizeRequest */ interface AsObject { batchRequest?: SynthesizeRequest.AsObject[]; } /** * Protobuf JSON representation for BatchSynthesizeRequest */ interface AsProtobufJSON { batchRequest: SynthesizeRequest.AsProtobufJSON[] | null; } } /** * Message implementation for ondewo.t2s.BatchSynthesizeResponse */ export declare class BatchSynthesizeResponse implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): BatchSynthesizeResponse; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: BatchSynthesizeResponse): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: BatchSynthesizeResponse, _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: BatchSynthesizeResponse, _writer: BinaryWriter): void; private _batchResponse?; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of BatchSynthesizeResponse to deeply clone from */ constructor(_value?: RecursivePartial<BatchSynthesizeResponse.AsObject>); get batchResponse(): SynthesizeResponse[] | undefined; set batchResponse(value: SynthesizeResponse[] | 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(): BatchSynthesizeResponse.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): BatchSynthesizeResponse.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): BatchSynthesizeResponse.AsProtobufJSON; } export declare namespace BatchSynthesizeResponse { /** * Standard JavaScript object representation for BatchSynthesizeResponse */ interface AsObject { batchResponse?: SynthesizeResponse.AsObject[]; } /** * Protobuf JSON representation for BatchSynthesizeResponse */ interface AsProtobufJSON { batchResponse: SynthesizeResponse.AsProtobufJSON[] | null; } } /** * Message implementation for ondewo.t2s.RequestConfig */ export declare class RequestConfig implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): RequestConfig; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: RequestConfig): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: RequestConfig, _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: RequestConfig, _writer: BinaryWriter): void; private _t2sPipelineId; private _lengthScale; private _noiseScale; private _sampleRate; private _pcm; private _audioFormat; private _useCache; private _normalizer; private _t2sServiceConfig?; private _t2sCloudProviderConfig?; private _oneofLengthScale; private _oneofNoiseScale; private _oneofSampleRate; private _oneofPcm; private _oneofAudioFormat; private _oneofUseCache; private _oneofNormalizer; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of RequestConfig to deeply clone from */ constructor(_value?: RecursivePartial<RequestConfig.AsObject>); get t2sPipelineId(): string; set t2sPipelineId(value: string); get lengthScale(): number; set lengthScale(value: number); get noiseScale(): number; set noiseScale(value: number); get sampleRate(): number; set sampleRate(value: number); get pcm(): Pcm; set pcm(value: Pcm); get audioFormat(): AudioFormat; set audioFormat(value: AudioFormat); get useCache(): boolean; set useCache(value: boolean); get normalizer(): string; set normalizer(value: string); get t2sServiceConfig(): googleProtobuf001.Struct | undefined; set t2sServiceConfig(value: googleProtobuf001.Struct | undefined); get t2sCloudProviderConfig(): T2sCloudProviderConfig | undefined; set t2sCloudProviderConfig(value: T2sCloudProviderConfig | undefined); get oneofLengthScale(): RequestConfig.OneofLengthScaleCase; get oneofNoiseScale(): RequestConfig.OneofNoiseScaleCase; get oneofSampleRate(): RequestConfig.OneofSampleRateCase; get oneofPcm(): RequestConfig.OneofPcmCase; get oneofAudioFormat(): RequestConfig.OneofAudioFormatCase; get oneofUseCache(): RequestConfig.OneofUseCacheCase; get oneofNormalizer(): RequestConfig.OneofNormalizerCase; /** * 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(): RequestConfig.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): RequestConfig.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): RequestConfig.AsProtobufJSON; } export declare namespace RequestConfig { /** * Standard JavaScript object representation for RequestConfig */ interface AsObject { t2sPipelineId: string; lengthScale: number; noiseScale: number; sampleRate: number; pcm: Pcm; audioFormat: AudioFormat; useCache: boolean; normalizer: string; t2sServiceConfig?: googleProtobuf001.Struct.AsObject; t2sCloudProviderConfig?: T2sCloudProviderConfig.AsObject; } /** * Protobuf JSON representation for RequestConfig */ interface AsProtobufJSON { t2sPipelineId: string; lengthScale: number | null; noiseScale: number | null; sampleRate: number | null; pcm: string | null; audioFormat: string | null; useCache: boolean; normalizer: string | null; t2sServiceConfig: googleProtobuf001.Struct.AsProtobufJSON | null; t2sCloudProviderConfig: T2sCloudProviderConfig.AsProtobufJSON | null; } enum OneofLengthScaleCase { none = 0, lengthScale = 1 } enum OneofNoiseScaleCase { none = 0, noiseScale = 1 } enum OneofSampleRateCase { none = 0, sampleRate = 1 } enum OneofPcmCase { none = 0, pcm = 1 } enum OneofAudioFormatCase { none = 0, audioFormat = 1 } enum OneofUseCacheCase { none = 0, useCache = 1 } enum OneofNormalizerCase { none = 0, normalizer = 1 } } /** * Message implementation for ondewo.t2s.T2sCloudProviderConfig */ export declare class T2sCloudProviderConfig implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): T2sCloudProviderConfig; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: T2sCloudProviderConfig): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: T2sCloudProviderConfig, _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: T2sCloudProviderConfig, _writer: BinaryWriter): void; private _t2sCloudProviderConfigElevenlabs?; private _t2sCloudProviderConfigGoogle?; private _t2sCloudProviderConfigMicrosoft?; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of T2sCloudProviderConfig to deeply clone from */ constructor(_value?: RecursivePartial<T2sCloudProviderConfig.AsObject>); get t2sCloudProviderConfigElevenlabs(): T2sCloudProviderConfigElevenLabs | undefined; set t2sCloudProviderConfigElevenlabs(value: T2sCloudProviderConfigElevenLabs | undefined); get t2sCloudProviderConfigGoogle(): T2sCloudProviderConfigGoogle | undefined; set t2sCloudProviderConfigGoogle(value: T2sCloudProviderConfigGoogle | undefined); get t2sCloudProviderConfigMicrosoft(): T2sCloudProviderConfigMicrosoft | undefined; set t2sCloudProviderConfigMicrosoft(value: T2sCloudProviderConfigMicrosoft | 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(): T2sCloudProviderConfig.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): T2sCloudProviderConfig.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): T2sCloudProviderConfig.AsProtobufJSON; } export declare namespace T2sCloudProviderConfig { /** * Standard JavaScript object representation for T2sCloudProviderConfig */ interface AsObject { t2sCloudProviderConfigElevenlabs?: T2sCloudProviderConfigElevenLabs.AsObject; t2sCloudProviderConfigGoogle?: T2sCloudProviderConfigGoogle.AsObject; t2sCloudProviderConfigMicrosoft?: T2sCloudProviderConfigMicrosoft.AsObject; } /** * Protobuf JSON representation for T2sCloudProviderConfig */ interface AsProtobufJSON { t2sCloudProviderConfigElevenlabs: T2sCloudProviderConfigElevenLabs.AsProtobufJSON | null; t2sCloudProviderConfigGoogle: T2sCloudProviderConfigGoogle.AsProtobufJSON | null; t2sCloudProviderConfigMicrosoft: T2sCloudProviderConfigMicrosoft.AsProtobufJSON | null; } } /** * Message implementation for ondewo.t2s.T2sCloudProviderConfigElevenLabs */ export declare class T2sCloudProviderConfigElevenLabs implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): T2sCloudProviderConfigElevenLabs; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: T2sCloudProviderConfigElevenLabs): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: T2sCloudProviderConfigElevenLabs, _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: T2sCloudProviderConfigElevenLabs, _writer: BinaryWriter): void; private _stability; private _similarityBoost; private _style; private _useSpeakerBoost; private _applyTextNormalization; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of T2sCloudProviderConfigElevenLabs to deeply clone from */ constructor(_value?: RecursivePartial<T2sCloudProviderConfigElevenLabs.AsObject>); get stability(): number; set stability(value: number); get similarityBoost(): number; set similarityBoost(value: number); get style(): number; set style(value: number); get useSpeakerBoost(): boolean; set useSpeakerBoost(value: boolean); get applyTextNormalization(): string; set applyTextNormalization(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(): T2sCloudProviderConfigElevenLabs.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): T2sCloudProviderConfigElevenLabs.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): T2sCloudProviderConfigElevenLabs.AsProtobufJSON; } export declare namespace T2sCloudProviderConfigElevenLabs { /** * Standard JavaScript object representation for T2sCloudProviderConfigElevenLabs */ interface AsObject { stability: number; similarityBoost: number; style: number; useSpeakerBoost: boolean; applyTextNormalization: string; } /** * Protobuf JSON representation for T2sCloudProviderConfigElevenLabs */ interface AsProtobufJSON { stability: number; similarityBoost: number; style: number; useSpeakerBoost: boolean; applyTextNormalization: string; } } /** * Message implementation for ondewo.t2s.T2sCloudProviderConfigMicrosoft */ export declare class T2sCloudProviderConfigMicrosoft implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): T2sCloudProviderConfigMicrosoft; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: T2sCloudProviderConfigMicrosoft): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: T2sCloudProviderConfigMicrosoft, _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: T2sCloudProviderConfigMicrosoft, _writer: BinaryWriter): void; private _useDefaultSpeaker; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of T2sCloudProviderConfigMicrosoft to deeply clone from */ constructor(_value?: RecursivePartial<T2sCloudProviderConfigMicrosoft.AsObject>); get useDefaultSpeaker(): boolean; set useDefaultSpeaker(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(): T2sCloudProviderConfigMicrosoft.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): T2sCloudProviderConfigMicrosoft.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): T2sCloudProviderConfigMicrosoft.AsProtobufJSON; } export declare namespace T2sCloudProviderConfigMicrosoft { /** * Standard JavaScript object representation for T2sCloudProviderConfigMicrosoft */ interface AsObject { useDefaultSpeaker: boolean; } /** * Protobuf JSON representation for T2sCloudProviderConfigMicrosoft */ interface AsProtobufJSON { useDefaultSpeaker: boolean; } } /** * Message implementation for ondewo.t2s.T2sCloudProviderConfigGoogle */ export declare class T2sCloudProviderConfigGoogle implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): T2sCloudProviderConfigGoogle; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: T2sCloudProviderConfigGoogle): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: T2sCloudProviderConfigGoogle, _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: T2sCloudProviderConfigGoogle, _writer: BinaryWriter): void; private _speakingRate; private _volumeGainDb; private _pitch; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of T2sCloudProviderConfigGoogle to deeply clone from */ constructor(_value?: RecursivePartial<T2sCloudProviderConfigGoogle.AsObject>); get speakingRate(): number; set speakingRate(value: number); get volumeGainDb(): number; set volumeGainDb(value: number); get pitch(): number; set pitch(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(): T2sCloudProviderConfigGoogle.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): T2sCloudProviderConfigGoogle.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): T2sCloudProviderConfigGoogle.AsProtobufJSON; } export declare namespace T2sCloudProviderConfigGoogle { /** * Standard JavaScript object representation for T2sCloudProviderConfigGoogle */ interface AsObject { speakingRate: number; volumeGainDb: number; pitch: number; } /** * Protobuf JSON representation for T2sCloudProviderConfigGoogle */ interface AsProtobufJSON { speakingRate: number; volumeGainDb: number; pitch: number; } } /** * Message implementation for ondewo.t2s.SynthesizeResponse */ export declare class SynthesizeResponse implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): SynthesizeResponse; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: SynthesizeResponse): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: SynthesizeResponse, _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: SynthesizeResponse, _writer: BinaryWriter): void; private _audioUuid; private _audio; private _generationTime; private _audioLength; private _text; private _config?; private _normalizedText; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of SynthesizeResponse to deeply clone from */ constructor(_value?: RecursivePartial<SynthesizeResponse.AsObject>); get audioUuid(): string; set audioUuid(value: string); get audio(): Uint8Array; set audio(value: Uint8Array); get generationTime(): number; set generationTime(value: number); get audioLength(): number; set audioLength(value: number); get text(): string; set text(value: string); get config(): RequestConfig | undefined; set config(value: RequestConfig | undefined); get normalizedText(): string; set normalizedText(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(): SynthesizeResponse.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): SynthesizeResponse.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): SynthesizeResponse.AsProtobufJSON; } export declare namespace SynthesizeResponse { /** * Standard JavaScript object representation for SynthesizeResponse */ interface AsObject { audioUuid: string; audio: Uint8Array; generationTime: number; audioLength: number; text: string; config?: RequestConfig.AsObject; normalizedText: string; } /** * Protobuf JSON representation for SynthesizeResponse */ interface AsProtobufJSON { audioUuid: string; audio: string; generationTime: number; audioLength: number; text: string; config: RequestConfig.AsProtobufJSON | null; normalizedText: string; } } /** * Message implementation for ondewo.t2s.NormalizeTextRequest */ export declare class NormalizeTextRequest implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): NormalizeTextRequest; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: NormalizeTextRequest): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: NormalizeTextRequest, _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: NormalizeTextRequest, _writer: BinaryWriter): void; private _t2sPipelineId; private _text; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of NormalizeTextRequest to deeply clone from */ constructor(_value?: RecursivePartial<NormalizeTextRequest.AsObject>); get t2sPipelineId(): string; set t2sPipelineId(value: string); get text(): string; set text(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(): NormalizeTextRequest.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): NormalizeTextRequest.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): NormalizeTextRequest.AsProtobufJSON; } export declare namespace NormalizeTextRequest { /** * Standard JavaScript object representation for NormalizeTextRequest */ interface AsObject { t2sPipelineId: string; text: string; } /** * Protobuf JSON representation for NormalizeTextRequest */ interface AsProtobufJSON { t2sPipelineId: string; text: string; } } /** * Message implementation for ondewo.t2s.NormalizeTextResponse */ export declare class NormalizeTextResponse implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): NormalizeTextResponse; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: NormalizeTextResponse): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: NormalizeTextResponse, _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: NormalizeTextResponse, _writer: BinaryWriter): void; private _normalizedText; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of NormalizeTextResponse to deeply clone from */ constructor(_value?: RecursivePartial<NormalizeTextResponse.AsObject>); get normalizedText(): string; set normalizedText(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(): NormalizeTextResponse.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): NormalizeTextResponse.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): NormalizeTextResponse.AsProtobufJSON; } export declare namespace NormalizeTextResponse { /** * Standard JavaScript object representation for NormalizeTextResponse */ interface AsObject { normalizedText: string; } /** * Protobuf JSON representation for NormalizeTextResponse */ interface AsProtobufJSON { normalizedText: string; } } /** * Message implementation for ondewo.t2s.T2SGetServiceInfoResponse */ export declare class T2SGetServiceInfoResponse implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): T2SGetServiceInfoResponse; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: T2SGetServiceInfoResponse): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: T2SGetServiceInfoResponse, _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: T2SGetServiceInfoResponse, _writer: BinaryWriter): void; private _version; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of T2SGetServiceInfoResponse to deeply clone from */ constructor(_value?: RecursivePartial<T2SGetServiceInfoResponse.AsObject>); get version(): string; set version(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(): T2SGetServiceInfoResponse.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): T2SGetServiceInfoResponse.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): T2SGetServiceInfoResponse.AsProtobufJSON; } export declare namespace T2SGetServiceInfoResponse { /** * Standard JavaScript object representation for T2SGetServiceInfoResponse */ interface AsObject { version: string; } /** * Protobuf JSON representation for T2SGetServiceInfoResponse */ interface AsProtobufJSON { version: string; } } /** * Message implementation for ondewo.t2s.ListT2sPipelinesRequest */ export declare class ListT2sPipelinesRequest implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): ListT2sPipelinesRequest; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: ListT2sPipelinesRequest): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: ListT2sPipelinesRequest, _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: ListT2sPipelinesRequest, _writer: BinaryWriter): void; private _languages; private _speakerSexes; private _pipelineOwners; private _speakerNames; private _domains; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of ListT2sPipelinesRequest to deeply clone from */ constructor(_value?: RecursivePartial<ListT2sPipelinesRequest.AsObject>); get languages(): string[]; set languages(value: string[]); get speakerSexes(): string[]; set speakerSexes(value: string[]); get pipelineOwners(): string[]; set pipelineOwners(value: string[]); get speakerNames(): string[]; set speakerNames(value: string[]); get domains(): string[]; set domains(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(): ListT2sPipelinesRequest.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): ListT2sPipelinesRequest.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): ListT2sPipelinesRequest.AsProtobufJSON; } export declare namespace ListT2sPipelinesRequest { /** * Standard JavaScript object representation for ListT2sPipelinesRequest */ interface AsObject { languages: string[]; speakerSexes: string[]; pipelineOwners: string[]; speakerNames: string[]; domains: string[]; } /** * Protobuf JSON representation for ListT2sPipelinesRequest */ interface AsProtobufJSON { languages: string[]; speakerSexes: string[]; pipelineOwners: string[]; speakerNames: string[]; domains: string[]; } } /** * Message implementation for ondewo.t2s.ListT2sPipelinesResponse */ export declare class ListT2sPipelinesResponse implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): ListT2sPipelinesResponse; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: ListT2sPipelinesResponse): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: ListT2sPipelinesResponse, _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: ListT2sPipelinesResponse, _writer: BinaryWriter): void; private _pipelines?; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of ListT2sPipelinesResponse to deeply clone from */ constructor(_value?: RecursivePartial<ListT2sPipelinesResponse.AsObject>); get pipelines(): Text2SpeechConfig[] | undefined; set pipelines(value: Text2SpeechConfig[] | 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(): ListT2sPipelinesResponse.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): ListT2sPipelinesResponse.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): ListT2sPipelinesResponse.AsProtobufJSON; } export declare namespace ListT2sPipelinesResponse { /** * Standard JavaScript object representation for ListT2sPipelinesResponse */ interface AsObject { pipelines?: Text2SpeechConfig.AsObject[]; } /** * Protobuf JSON representation for ListT2sPipelinesResponse */ interface AsProtobufJSON { pipelines: Text2SpeechConfig.AsProtobufJSON[] | null; } } /** * Message implementation for ondewo.t2s.ListT2sLanguagesRequest */ export declare class ListT2sLanguagesRequest implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): ListT2sLanguagesRequest; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: ListT2sLanguagesRequest): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: ListT2sLanguagesRequest, _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: ListT2sLanguagesRequest, _writer: BinaryWriter): void; private _speakerSexes; private _pipelineOwners; private _speakerNames; private _domains; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of ListT2sLanguagesRequest to deeply clone from */ constructor(_value?: RecursivePartial<ListT2sLanguagesRequest.AsObject>); get speakerSexes(): string[]; set speakerSexes(value: string[]); get pipelineOwners(): string[]; set pipelineOwners(value: string[]); get speakerNames(): string[]; set speakerNames(value: string[]); get domains(): string[]; set domains(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(): ListT2sLanguagesRequest.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): ListT2sLanguagesRequest.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json