@ondewo/t2s-client-angular
Version:
ONDEWO Text 2 Speech (T2S) Client library for Angular
1 lines • 566 kB
Source Map (JSON)
{"version":3,"file":"ondewo-t2s-client-angular.mjs","sources":["../../api/ondewo/t2s/text-to-speech.pb.ts","../../api/ondewo/t2s/text-to-speech.pbconf.ts","../../api/ondewo/t2s/text-to-speech.pbsc.ts","../../ondewo-t2s-client-angular.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n// @ts-nocheck\n//\n// THIS IS A GENERATED FILE\n// DO NOT MODIFY IT! YOUR CHANGES WILL BE LOST\nimport {\n GrpcMessage,\n RecursivePartial,\n ToProtobufJSONOptions,\n uint8ArrayToBase64\n} from '@ngx-grpc/common';\nimport { BinaryReader, BinaryWriter, ByteSource } from 'google-protobuf';\nimport * as googleProtobuf000 from '@ngx-grpc/well-known-types';\nimport * as googleProtobuf001 from '@ngx-grpc/well-known-types';\nexport enum Pcm {\n PCM_16 = 0,\n PCM_24 = 1,\n PCM_32 = 2,\n PCM_S8 = 3,\n PCM_U8 = 4,\n FLOAT = 5,\n DOUBLE = 6\n}\nexport enum AudioFormat {\n wav = 0,\n flac = 1,\n caf = 2,\n mp3 = 3,\n aac = 4,\n ogg = 5,\n wma = 6\n}\n/**\n * Message implementation for ondewo.t2s.SynthesizeRequest\n */\nexport class SynthesizeRequest implements GrpcMessage {\n static id = 'ondewo.t2s.SynthesizeRequest';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new SynthesizeRequest();\n SynthesizeRequest.deserializeBinaryFromReader(\n instance,\n new BinaryReader(bytes)\n );\n return instance;\n }\n\n /**\n * Check all the properties and set default protobuf values if necessary\n * @param _instance message instance\n */\n static refineValues(_instance: SynthesizeRequest) {\n _instance.text = _instance.text || '';\n _instance.config = _instance.config || undefined;\n }\n\n /**\n * Deserializes / reads binary message into message instance using provided binary reader\n * @param _instance message instance\n * @param _reader binary reader instance\n */\n static deserializeBinaryFromReader(\n _instance: SynthesizeRequest,\n _reader: BinaryReader\n ) {\n while (_reader.nextField()) {\n if (_reader.isEndGroup()) break;\n\n switch (_reader.getFieldNumber()) {\n case 1:\n _instance.text = _reader.readString();\n break;\n case 2:\n _instance.config = new RequestConfig();\n _reader.readMessage(\n _instance.config,\n RequestConfig.deserializeBinaryFromReader\n );\n break;\n default:\n _reader.skipField();\n }\n }\n\n SynthesizeRequest.refineValues(_instance);\n }\n\n /**\n * Serializes a message to binary format using provided binary reader\n * @param _instance message instance\n * @param _writer binary writer instance\n */\n static serializeBinaryToWriter(\n _instance: SynthesizeRequest,\n _writer: BinaryWriter\n ) {\n if (_instance.text) {\n _writer.writeString(1, _instance.text);\n }\n if (_instance.config) {\n _writer.writeMessage(\n 2,\n _instance.config as any,\n RequestConfig.serializeBinaryToWriter\n );\n }\n }\n\n private _text: string;\n private _config?: RequestConfig;\n\n /**\n * Message constructor. Initializes the properties and applies default Protobuf values if necessary\n * @param _value initial values object or instance of SynthesizeRequest to deeply clone from\n */\n constructor(_value?: RecursivePartial<SynthesizeRequest.AsObject>) {\n _value = _value || {};\n this.text = _value.text;\n this.config = _value.config ? new RequestConfig(_value.config) : undefined;\n SynthesizeRequest.refineValues(this);\n }\n get text(): string {\n return this._text;\n }\n set text(value: string) {\n this._text = value;\n }\n get config(): RequestConfig | undefined {\n return this._config;\n }\n set config(value: RequestConfig | undefined) {\n this._config = value;\n }\n\n /**\n * Serialize message to binary data\n * @param instance message instance\n */\n serializeBinary() {\n const writer = new BinaryWriter();\n SynthesizeRequest.serializeBinaryToWriter(this, writer);\n return writer.getResultBuffer();\n }\n\n /**\n * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)\n */\n toObject(): SynthesizeRequest.AsObject {\n return {\n text: this.text,\n config: this.config ? this.config.toObject() : undefined\n };\n }\n\n /**\n * Convenience method to support JSON.stringify(message), replicates the structure of toObject()\n */\n toJSON() {\n return this.toObject();\n }\n\n /**\n * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json\n * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.\n * 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\n */\n toProtobufJSON(\n // @ts-ignore\n options?: ToProtobufJSONOptions\n ): SynthesizeRequest.AsProtobufJSON {\n return {\n text: this.text,\n config: this.config ? this.config.toProtobufJSON(options) : null\n };\n }\n}\nexport module SynthesizeRequest {\n /**\n * Standard JavaScript object representation for SynthesizeRequest\n */\n export interface AsObject {\n text: string;\n config?: RequestConfig.AsObject;\n }\n\n /**\n * Protobuf JSON representation for SynthesizeRequest\n */\n export interface AsProtobufJSON {\n text: string;\n config: RequestConfig.AsProtobufJSON | null;\n }\n}\n\n/**\n * Message implementation for ondewo.t2s.BatchSynthesizeRequest\n */\nexport class BatchSynthesizeRequest implements GrpcMessage {\n static id = 'ondewo.t2s.BatchSynthesizeRequest';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new BatchSynthesizeRequest();\n BatchSynthesizeRequest.deserializeBinaryFromReader(\n instance,\n new BinaryReader(bytes)\n );\n return instance;\n }\n\n /**\n * Check all the properties and set default protobuf values if necessary\n * @param _instance message instance\n */\n static refineValues(_instance: BatchSynthesizeRequest) {\n _instance.batchRequest = _instance.batchRequest || [];\n }\n\n /**\n * Deserializes / reads binary message into message instance using provided binary reader\n * @param _instance message instance\n * @param _reader binary reader instance\n */\n static deserializeBinaryFromReader(\n _instance: BatchSynthesizeRequest,\n _reader: BinaryReader\n ) {\n while (_reader.nextField()) {\n if (_reader.isEndGroup()) break;\n\n switch (_reader.getFieldNumber()) {\n case 1:\n const messageInitializer1 = new SynthesizeRequest();\n _reader.readMessage(\n messageInitializer1,\n SynthesizeRequest.deserializeBinaryFromReader\n );\n (_instance.batchRequest = _instance.batchRequest || []).push(\n messageInitializer1\n );\n break;\n default:\n _reader.skipField();\n }\n }\n\n BatchSynthesizeRequest.refineValues(_instance);\n }\n\n /**\n * Serializes a message to binary format using provided binary reader\n * @param _instance message instance\n * @param _writer binary writer instance\n */\n static serializeBinaryToWriter(\n _instance: BatchSynthesizeRequest,\n _writer: BinaryWriter\n ) {\n if (_instance.batchRequest && _instance.batchRequest.length) {\n _writer.writeRepeatedMessage(\n 1,\n _instance.batchRequest as any,\n SynthesizeRequest.serializeBinaryToWriter\n );\n }\n }\n\n private _batchRequest?: SynthesizeRequest[];\n\n /**\n * Message constructor. Initializes the properties and applies default Protobuf values if necessary\n * @param _value initial values object or instance of BatchSynthesizeRequest to deeply clone from\n */\n constructor(_value?: RecursivePartial<BatchSynthesizeRequest.AsObject>) {\n _value = _value || {};\n this.batchRequest = (_value.batchRequest || []).map(\n m => new SynthesizeRequest(m)\n );\n BatchSynthesizeRequest.refineValues(this);\n }\n get batchRequest(): SynthesizeRequest[] | undefined {\n return this._batchRequest;\n }\n set batchRequest(value: SynthesizeRequest[] | undefined) {\n this._batchRequest = value;\n }\n\n /**\n * Serialize message to binary data\n * @param instance message instance\n */\n serializeBinary() {\n const writer = new BinaryWriter();\n BatchSynthesizeRequest.serializeBinaryToWriter(this, writer);\n return writer.getResultBuffer();\n }\n\n /**\n * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)\n */\n toObject(): BatchSynthesizeRequest.AsObject {\n return {\n batchRequest: (this.batchRequest || []).map(m => m.toObject())\n };\n }\n\n /**\n * Convenience method to support JSON.stringify(message), replicates the structure of toObject()\n */\n toJSON() {\n return this.toObject();\n }\n\n /**\n * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json\n * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.\n * 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\n */\n toProtobufJSON(\n // @ts-ignore\n options?: ToProtobufJSONOptions\n ): BatchSynthesizeRequest.AsProtobufJSON {\n return {\n batchRequest: (this.batchRequest || []).map(m =>\n m.toProtobufJSON(options)\n )\n };\n }\n}\nexport module BatchSynthesizeRequest {\n /**\n * Standard JavaScript object representation for BatchSynthesizeRequest\n */\n export interface AsObject {\n batchRequest?: SynthesizeRequest.AsObject[];\n }\n\n /**\n * Protobuf JSON representation for BatchSynthesizeRequest\n */\n export interface AsProtobufJSON {\n batchRequest: SynthesizeRequest.AsProtobufJSON[] | null;\n }\n}\n\n/**\n * Message implementation for ondewo.t2s.StreamingSynthesizeRequest\n */\nexport class StreamingSynthesizeRequest implements GrpcMessage {\n static id = 'ondewo.t2s.StreamingSynthesizeRequest';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new StreamingSynthesizeRequest();\n StreamingSynthesizeRequest.deserializeBinaryFromReader(\n instance,\n new BinaryReader(bytes)\n );\n return instance;\n }\n\n /**\n * Check all the properties and set default protobuf values if necessary\n * @param _instance message instance\n */\n static refineValues(_instance: StreamingSynthesizeRequest) {\n _instance.text = _instance.text || '';\n _instance.config = _instance.config || undefined;\n }\n\n /**\n * Deserializes / reads binary message into message instance using provided binary reader\n * @param _instance message instance\n * @param _reader binary reader instance\n */\n static deserializeBinaryFromReader(\n _instance: StreamingSynthesizeRequest,\n _reader: BinaryReader\n ) {\n while (_reader.nextField()) {\n if (_reader.isEndGroup()) break;\n\n switch (_reader.getFieldNumber()) {\n case 1:\n _instance.text = _reader.readString();\n break;\n case 2:\n _instance.config = new RequestConfig();\n _reader.readMessage(\n _instance.config,\n RequestConfig.deserializeBinaryFromReader\n );\n break;\n default:\n _reader.skipField();\n }\n }\n\n StreamingSynthesizeRequest.refineValues(_instance);\n }\n\n /**\n * Serializes a message to binary format using provided binary reader\n * @param _instance message instance\n * @param _writer binary writer instance\n */\n static serializeBinaryToWriter(\n _instance: StreamingSynthesizeRequest,\n _writer: BinaryWriter\n ) {\n if (_instance.text) {\n _writer.writeString(1, _instance.text);\n }\n if (_instance.config) {\n _writer.writeMessage(\n 2,\n _instance.config as any,\n RequestConfig.serializeBinaryToWriter\n );\n }\n }\n\n private _text: string;\n private _config?: RequestConfig;\n\n /**\n * Message constructor. Initializes the properties and applies default Protobuf values if necessary\n * @param _value initial values object or instance of StreamingSynthesizeRequest to deeply clone from\n */\n constructor(_value?: RecursivePartial<StreamingSynthesizeRequest.AsObject>) {\n _value = _value || {};\n this.text = _value.text;\n this.config = _value.config ? new RequestConfig(_value.config) : undefined;\n StreamingSynthesizeRequest.refineValues(this);\n }\n get text(): string {\n return this._text;\n }\n set text(value: string) {\n this._text = value;\n }\n get config(): RequestConfig | undefined {\n return this._config;\n }\n set config(value: RequestConfig | undefined) {\n this._config = value;\n }\n\n /**\n * Serialize message to binary data\n * @param instance message instance\n */\n serializeBinary() {\n const writer = new BinaryWriter();\n StreamingSynthesizeRequest.serializeBinaryToWriter(this, writer);\n return writer.getResultBuffer();\n }\n\n /**\n * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)\n */\n toObject(): StreamingSynthesizeRequest.AsObject {\n return {\n text: this.text,\n config: this.config ? this.config.toObject() : undefined\n };\n }\n\n /**\n * Convenience method to support JSON.stringify(message), replicates the structure of toObject()\n */\n toJSON() {\n return this.toObject();\n }\n\n /**\n * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json\n * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.\n * 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\n */\n toProtobufJSON(\n // @ts-ignore\n options?: ToProtobufJSONOptions\n ): StreamingSynthesizeRequest.AsProtobufJSON {\n return {\n text: this.text,\n config: this.config ? this.config.toProtobufJSON(options) : null\n };\n }\n}\nexport module StreamingSynthesizeRequest {\n /**\n * Standard JavaScript object representation for StreamingSynthesizeRequest\n */\n export interface AsObject {\n text: string;\n config?: RequestConfig.AsObject;\n }\n\n /**\n * Protobuf JSON representation for StreamingSynthesizeRequest\n */\n export interface AsProtobufJSON {\n text: string;\n config: RequestConfig.AsProtobufJSON | null;\n }\n}\n\n/**\n * Message implementation for ondewo.t2s.BatchSynthesizeResponse\n */\nexport class BatchSynthesizeResponse implements GrpcMessage {\n static id = 'ondewo.t2s.BatchSynthesizeResponse';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new BatchSynthesizeResponse();\n BatchSynthesizeResponse.deserializeBinaryFromReader(\n instance,\n new BinaryReader(bytes)\n );\n return instance;\n }\n\n /**\n * Check all the properties and set default protobuf values if necessary\n * @param _instance message instance\n */\n static refineValues(_instance: BatchSynthesizeResponse) {\n _instance.batchResponse = _instance.batchResponse || [];\n }\n\n /**\n * Deserializes / reads binary message into message instance using provided binary reader\n * @param _instance message instance\n * @param _reader binary reader instance\n */\n static deserializeBinaryFromReader(\n _instance: BatchSynthesizeResponse,\n _reader: BinaryReader\n ) {\n while (_reader.nextField()) {\n if (_reader.isEndGroup()) break;\n\n switch (_reader.getFieldNumber()) {\n case 1:\n const messageInitializer1 = new SynthesizeResponse();\n _reader.readMessage(\n messageInitializer1,\n SynthesizeResponse.deserializeBinaryFromReader\n );\n (_instance.batchResponse = _instance.batchResponse || []).push(\n messageInitializer1\n );\n break;\n default:\n _reader.skipField();\n }\n }\n\n BatchSynthesizeResponse.refineValues(_instance);\n }\n\n /**\n * Serializes a message to binary format using provided binary reader\n * @param _instance message instance\n * @param _writer binary writer instance\n */\n static serializeBinaryToWriter(\n _instance: BatchSynthesizeResponse,\n _writer: BinaryWriter\n ) {\n if (_instance.batchResponse && _instance.batchResponse.length) {\n _writer.writeRepeatedMessage(\n 1,\n _instance.batchResponse as any,\n SynthesizeResponse.serializeBinaryToWriter\n );\n }\n }\n\n private _batchResponse?: SynthesizeResponse[];\n\n /**\n * Message constructor. Initializes the properties and applies default Protobuf values if necessary\n * @param _value initial values object or instance of BatchSynthesizeResponse to deeply clone from\n */\n constructor(_value?: RecursivePartial<BatchSynthesizeResponse.AsObject>) {\n _value = _value || {};\n this.batchResponse = (_value.batchResponse || []).map(\n m => new SynthesizeResponse(m)\n );\n BatchSynthesizeResponse.refineValues(this);\n }\n get batchResponse(): SynthesizeResponse[] | undefined {\n return this._batchResponse;\n }\n set batchResponse(value: SynthesizeResponse[] | undefined) {\n this._batchResponse = value;\n }\n\n /**\n * Serialize message to binary data\n * @param instance message instance\n */\n serializeBinary() {\n const writer = new BinaryWriter();\n BatchSynthesizeResponse.serializeBinaryToWriter(this, writer);\n return writer.getResultBuffer();\n }\n\n /**\n * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)\n */\n toObject(): BatchSynthesizeResponse.AsObject {\n return {\n batchResponse: (this.batchResponse || []).map(m => m.toObject())\n };\n }\n\n /**\n * Convenience method to support JSON.stringify(message), replicates the structure of toObject()\n */\n toJSON() {\n return this.toObject();\n }\n\n /**\n * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json\n * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.\n * 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\n */\n toProtobufJSON(\n // @ts-ignore\n options?: ToProtobufJSONOptions\n ): BatchSynthesizeResponse.AsProtobufJSON {\n return {\n batchResponse: (this.batchResponse || []).map(m =>\n m.toProtobufJSON(options)\n )\n };\n }\n}\nexport module BatchSynthesizeResponse {\n /**\n * Standard JavaScript object representation for BatchSynthesizeResponse\n */\n export interface AsObject {\n batchResponse?: SynthesizeResponse.AsObject[];\n }\n\n /**\n * Protobuf JSON representation for BatchSynthesizeResponse\n */\n export interface AsProtobufJSON {\n batchResponse: SynthesizeResponse.AsProtobufJSON[] | null;\n }\n}\n\n/**\n * Message implementation for ondewo.t2s.RequestConfig\n */\nexport class RequestConfig implements GrpcMessage {\n static id = 'ondewo.t2s.RequestConfig';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new RequestConfig();\n RequestConfig.deserializeBinaryFromReader(\n instance,\n new BinaryReader(bytes)\n );\n return instance;\n }\n\n /**\n * Check all the properties and set default protobuf values if necessary\n * @param _instance message instance\n */\n static refineValues(_instance: RequestConfig) {\n _instance.t2sPipelineId = _instance.t2sPipelineId || '';\n\n _instance.t2sServiceConfig = _instance.t2sServiceConfig || undefined;\n _instance.t2sCloudProviderConfig =\n _instance.t2sCloudProviderConfig || undefined;\n\n _instance.wordToPhonemeMapping =\n _instance.wordToPhonemeMapping || undefined;\n }\n\n /**\n * Deserializes / reads binary message into message instance using provided binary reader\n * @param _instance message instance\n * @param _reader binary reader instance\n */\n static deserializeBinaryFromReader(\n _instance: RequestConfig,\n _reader: BinaryReader\n ) {\n while (_reader.nextField()) {\n if (_reader.isEndGroup()) break;\n\n switch (_reader.getFieldNumber()) {\n case 1:\n _instance.t2sPipelineId = _reader.readString();\n break;\n case 2:\n _instance.lengthScale = _reader.readFloat();\n break;\n case 3:\n _instance.noiseScale = _reader.readFloat();\n break;\n case 4:\n _instance.sampleRate = _reader.readInt32();\n break;\n case 5:\n _instance.pcm = _reader.readEnum();\n break;\n case 6:\n _instance.audioFormat = _reader.readEnum();\n break;\n case 7:\n _instance.useCache = _reader.readBool();\n break;\n case 9:\n _instance.t2sServiceConfig = new googleProtobuf001.Struct();\n _reader.readMessage(\n _instance.t2sServiceConfig,\n googleProtobuf001.Struct.deserializeBinaryFromReader\n );\n break;\n case 10:\n _instance.t2sCloudProviderConfig = new T2sCloudProviderConfig();\n _reader.readMessage(\n _instance.t2sCloudProviderConfig,\n T2sCloudProviderConfig.deserializeBinaryFromReader\n );\n break;\n case 11:\n _instance.t2sNormalization = new T2SNormalization();\n _reader.readMessage(\n _instance.t2sNormalization,\n T2SNormalization.deserializeBinaryFromReader\n );\n break;\n case 12:\n _instance.wordToPhonemeMapping = new googleProtobuf001.Struct();\n _reader.readMessage(\n _instance.wordToPhonemeMapping,\n googleProtobuf001.Struct.deserializeBinaryFromReader\n );\n break;\n default:\n _reader.skipField();\n }\n }\n\n RequestConfig.refineValues(_instance);\n }\n\n /**\n * Serializes a message to binary format using provided binary reader\n * @param _instance message instance\n * @param _writer binary writer instance\n */\n static serializeBinaryToWriter(\n _instance: RequestConfig,\n _writer: BinaryWriter\n ) {\n if (_instance.t2sPipelineId) {\n _writer.writeString(1, _instance.t2sPipelineId);\n }\n if (_instance.lengthScale || _instance.lengthScale === 0) {\n _writer.writeFloat(2, _instance.lengthScale);\n }\n if (_instance.noiseScale || _instance.noiseScale === 0) {\n _writer.writeFloat(3, _instance.noiseScale);\n }\n if (_instance.sampleRate || _instance.sampleRate === 0) {\n _writer.writeInt32(4, _instance.sampleRate);\n }\n if (_instance.pcm || _instance.pcm === 0) {\n _writer.writeEnum(5, _instance.pcm);\n }\n if (_instance.audioFormat || _instance.audioFormat === 0) {\n _writer.writeEnum(6, _instance.audioFormat);\n }\n if (_instance.useCache || _instance.useCache === false) {\n _writer.writeBool(7, _instance.useCache);\n }\n if (_instance.t2sServiceConfig) {\n _writer.writeMessage(\n 9,\n _instance.t2sServiceConfig as any,\n googleProtobuf001.Struct.serializeBinaryToWriter\n );\n }\n if (_instance.t2sCloudProviderConfig) {\n _writer.writeMessage(\n 10,\n _instance.t2sCloudProviderConfig as any,\n T2sCloudProviderConfig.serializeBinaryToWriter\n );\n }\n if (_instance.t2sNormalization) {\n _writer.writeMessage(\n 11,\n _instance.t2sNormalization as any,\n T2SNormalization.serializeBinaryToWriter\n );\n }\n if (_instance.wordToPhonemeMapping) {\n _writer.writeMessage(\n 12,\n _instance.wordToPhonemeMapping as any,\n googleProtobuf001.Struct.serializeBinaryToWriter\n );\n }\n }\n\n private _t2sPipelineId: string;\n private _lengthScale: number;\n private _noiseScale: number;\n private _sampleRate: number;\n private _pcm: Pcm;\n private _audioFormat: AudioFormat;\n private _useCache: boolean;\n private _t2sServiceConfig?: googleProtobuf001.Struct;\n private _t2sCloudProviderConfig?: T2sCloudProviderConfig;\n private _t2sNormalization?: T2SNormalization;\n private _wordToPhonemeMapping?: googleProtobuf001.Struct;\n\n private _oneofLengthScale: RequestConfig.OneofLengthScaleCase =\n RequestConfig.OneofLengthScaleCase.none;\n private _oneofNoiseScale: RequestConfig.OneofNoiseScaleCase =\n RequestConfig.OneofNoiseScaleCase.none;\n private _oneofSampleRate: RequestConfig.OneofSampleRateCase =\n RequestConfig.OneofSampleRateCase.none;\n private _oneofPcm: RequestConfig.OneofPcmCase =\n RequestConfig.OneofPcmCase.none;\n private _oneofAudioFormat: RequestConfig.OneofAudioFormatCase =\n RequestConfig.OneofAudioFormatCase.none;\n private _oneofUseCache: RequestConfig.OneofUseCacheCase =\n RequestConfig.OneofUseCacheCase.none;\n private _oneofT2sNormalization: RequestConfig.OneofT2sNormalizationCase =\n RequestConfig.OneofT2sNormalizationCase.none;\n\n /**\n * Message constructor. Initializes the properties and applies default Protobuf values if necessary\n * @param _value initial values object or instance of RequestConfig to deeply clone from\n */\n constructor(_value?: RecursivePartial<RequestConfig.AsObject>) {\n _value = _value || {};\n this.t2sPipelineId = _value.t2sPipelineId;\n this.lengthScale = _value.lengthScale;\n this.noiseScale = _value.noiseScale;\n this.sampleRate = _value.sampleRate;\n this.pcm = _value.pcm;\n this.audioFormat = _value.audioFormat;\n this.useCache = _value.useCache;\n this.t2sServiceConfig = _value.t2sServiceConfig\n ? new googleProtobuf001.Struct(_value.t2sServiceConfig)\n : undefined;\n this.t2sCloudProviderConfig = _value.t2sCloudProviderConfig\n ? new T2sCloudProviderConfig(_value.t2sCloudProviderConfig)\n : undefined;\n this.t2sNormalization = _value.t2sNormalization\n ? new T2SNormalization(_value.t2sNormalization)\n : undefined;\n this.wordToPhonemeMapping = _value.wordToPhonemeMapping\n ? new googleProtobuf001.Struct(_value.wordToPhonemeMapping)\n : undefined;\n RequestConfig.refineValues(this);\n }\n get t2sPipelineId(): string {\n return this._t2sPipelineId;\n }\n set t2sPipelineId(value: string) {\n this._t2sPipelineId = value;\n }\n get lengthScale(): number {\n return this._lengthScale;\n }\n set lengthScale(value: number) {\n if (value !== undefined && value !== null) {\n this._oneofLengthScale = RequestConfig.OneofLengthScaleCase.lengthScale;\n }\n this._lengthScale = value;\n }\n get noiseScale(): number {\n return this._noiseScale;\n }\n set noiseScale(value: number) {\n if (value !== undefined && value !== null) {\n this._oneofNoiseScale = RequestConfig.OneofNoiseScaleCase.noiseScale;\n }\n this._noiseScale = value;\n }\n get sampleRate(): number {\n return this._sampleRate;\n }\n set sampleRate(value: number) {\n if (value !== undefined && value !== null) {\n this._oneofSampleRate = RequestConfig.OneofSampleRateCase.sampleRate;\n }\n this._sampleRate = value;\n }\n get pcm(): Pcm {\n return this._pcm;\n }\n set pcm(value: Pcm) {\n if (value !== undefined && value !== null) {\n this._oneofPcm = RequestConfig.OneofPcmCase.pcm;\n }\n this._pcm = value;\n }\n get audioFormat(): AudioFormat {\n return this._audioFormat;\n }\n set audioFormat(value: AudioFormat) {\n if (value !== undefined && value !== null) {\n this._oneofAudioFormat = RequestConfig.OneofAudioFormatCase.audioFormat;\n }\n this._audioFormat = value;\n }\n get useCache(): boolean {\n return this._useCache;\n }\n set useCache(value: boolean) {\n if (value !== undefined && value !== null) {\n this._oneofUseCache = RequestConfig.OneofUseCacheCase.useCache;\n }\n this._useCache = value;\n }\n get t2sServiceConfig(): googleProtobuf001.Struct | undefined {\n return this._t2sServiceConfig;\n }\n set t2sServiceConfig(value: googleProtobuf001.Struct | undefined) {\n this._t2sServiceConfig = value;\n }\n get t2sCloudProviderConfig(): T2sCloudProviderConfig | undefined {\n return this._t2sCloudProviderConfig;\n }\n set t2sCloudProviderConfig(value: T2sCloudProviderConfig | undefined) {\n this._t2sCloudProviderConfig = value;\n }\n get t2sNormalization(): T2SNormalization | undefined {\n return this._t2sNormalization;\n }\n set t2sNormalization(value: T2SNormalization | undefined) {\n if (value !== undefined && value !== null) {\n this._oneofT2sNormalization =\n RequestConfig.OneofT2sNormalizationCase.t2sNormalization;\n }\n this._t2sNormalization = value;\n }\n get wordToPhonemeMapping(): googleProtobuf001.Struct | undefined {\n return this._wordToPhonemeMapping;\n }\n set wordToPhonemeMapping(value: googleProtobuf001.Struct | undefined) {\n this._wordToPhonemeMapping = value;\n }\n get oneofLengthScale() {\n return this._oneofLengthScale;\n }\n get oneofNoiseScale() {\n return this._oneofNoiseScale;\n }\n get oneofSampleRate() {\n return this._oneofSampleRate;\n }\n get oneofPcm() {\n return this._oneofPcm;\n }\n get oneofAudioFormat() {\n return this._oneofAudioFormat;\n }\n get oneofUseCache() {\n return this._oneofUseCache;\n }\n get oneofT2sNormalization() {\n return this._oneofT2sNormalization;\n }\n\n /**\n * Serialize message to binary data\n * @param instance message instance\n */\n serializeBinary() {\n const writer = new BinaryWriter();\n RequestConfig.serializeBinaryToWriter(this, writer);\n return writer.getResultBuffer();\n }\n\n /**\n * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)\n */\n toObject(): RequestConfig.AsObject {\n return {\n t2sPipelineId: this.t2sPipelineId,\n lengthScale: this.lengthScale,\n noiseScale: this.noiseScale,\n sampleRate: this.sampleRate,\n pcm: this.pcm,\n audioFormat: this.audioFormat,\n useCache: this.useCache,\n t2sServiceConfig: this.t2sServiceConfig\n ? this.t2sServiceConfig.toObject()\n : undefined,\n t2sCloudProviderConfig: this.t2sCloudProviderConfig\n ? this.t2sCloudProviderConfig.toObject()\n : undefined,\n t2sNormalization: this.t2sNormalization\n ? this.t2sNormalization.toObject()\n : undefined,\n wordToPhonemeMapping: this.wordToPhonemeMapping\n ? this.wordToPhonemeMapping.toObject()\n : undefined\n };\n }\n\n /**\n * Convenience method to support JSON.stringify(message), replicates the structure of toObject()\n */\n toJSON() {\n return this.toObject();\n }\n\n /**\n * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json\n * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.\n * 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\n */\n toProtobufJSON(\n // @ts-ignore\n options?: ToProtobufJSONOptions\n ): RequestConfig.AsProtobufJSON {\n return {\n t2sPipelineId: this.t2sPipelineId,\n lengthScale:\n this.lengthScale === null || this.lengthScale === undefined\n ? null\n : this.lengthScale,\n noiseScale:\n this.noiseScale === null || this.noiseScale === undefined\n ? null\n : this.noiseScale,\n sampleRate:\n this.sampleRate === null || this.sampleRate === undefined\n ? null\n : this.sampleRate,\n pcm:\n this.pcm === undefined\n ? null\n : Pcm[this.pcm === null || this.pcm === undefined ? 0 : this.pcm],\n audioFormat:\n this.audioFormat === undefined\n ? null\n : AudioFormat[\n this.audioFormat === null || this.audioFormat === undefined\n ? 0\n : this.audioFormat\n ],\n useCache: this.useCache,\n t2sServiceConfig: this.t2sServiceConfig\n ? this.t2sServiceConfig.toProtobufJSON(options)\n : null,\n t2sCloudProviderConfig: this.t2sCloudProviderConfig\n ? this.t2sCloudProviderConfig.toProtobufJSON(options)\n : null,\n t2sNormalization: this.t2sNormalization\n ? this.t2sNormalization.toProtobufJSON(options)\n : null,\n wordToPhonemeMapping: this.wordToPhonemeMapping\n ? this.wordToPhonemeMapping.toProtobufJSON(options)\n : null\n };\n }\n}\nexport module RequestConfig {\n /**\n * Standard JavaScript object representation for RequestConfig\n */\n export interface AsObject {\n t2sPipelineId: string;\n lengthScale: number;\n noiseScale: number;\n sampleRate: number;\n pcm: Pcm;\n audioFormat: AudioFormat;\n useCache: boolean;\n t2sServiceConfig?: googleProtobuf001.Struct.AsObject;\n t2sCloudProviderConfig?: T2sCloudProviderConfig.AsObject;\n t2sNormalization?: T2SNormalization.AsObject;\n wordToPhonemeMapping?: googleProtobuf001.Struct.AsObject;\n }\n\n /**\n * Protobuf JSON representation for RequestConfig\n */\n export interface AsProtobufJSON {\n t2sPipelineId: string;\n lengthScale: number | null;\n noiseScale: number | null;\n sampleRate: number | null;\n pcm: string | null;\n audioFormat: string | null;\n useCache: boolean;\n t2sServiceConfig: googleProtobuf001.Struct.AsProtobufJSON | null;\n t2sCloudProviderConfig: T2sCloudProviderConfig.AsProtobufJSON | null;\n t2sNormalization: T2SNormalization.AsProtobufJSON | null;\n wordToPhonemeMapping: googleProtobuf001.Struct.AsProtobufJSON | null;\n }\n export enum OneofLengthScaleCase {\n none = 0,\n lengthScale = 1\n }\n export enum OneofNoiseScaleCase {\n none = 0,\n noiseScale = 1\n }\n export enum OneofSampleRateCase {\n none = 0,\n sampleRate = 1\n }\n export enum OneofPcmCase {\n none = 0,\n pcm = 1\n }\n export enum OneofAudioFormatCase {\n none = 0,\n audioFormat = 1\n }\n export enum OneofUseCacheCase {\n none = 0,\n useCache = 1\n }\n export enum OneofT2sNormalizationCase {\n none = 0,\n t2sNormalization = 1\n }\n}\n\n/**\n * Message implementation for ondewo.t2s.T2sCloudProviderConfig\n */\nexport class T2sCloudProviderConfig implements GrpcMessage {\n static id = 'ondewo.t2s.T2sCloudProviderConfig';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new T2sCloudProviderConfig();\n T2sCloudProviderConfig.deserializeBinaryFromReader(\n instance,\n new BinaryReader(bytes)\n );\n return instance;\n }\n\n /**\n * Check all the properties and set default protobuf values if necessary\n * @param _instance message instance\n */\n static refineValues(_instance: T2sCloudProviderConfig) {\n _instance.t2sCloudProviderConfigElevenlabs =\n _instance.t2sCloudProviderConfigElevenlabs || undefined;\n _instance.t2sCloudProviderConfigGoogle =\n _instance.t2sCloudProviderConfigGoogle || undefined;\n _instance.t2sCloudProviderConfigMicrosoft =\n _instance.t2sCloudProviderConfigMicrosoft || undefined;\n }\n\n /**\n * Deserializes / reads binary message into message instance using provided binary reader\n * @param _instance message instance\n * @param _reader binary reader instance\n */\n static deserializeBinaryFromReader(\n _instance: T2sCloudProviderConfig,\n _reader: BinaryReader\n ) {\n while (_reader.nextField()) {\n if (_reader.isEndGroup()) break;\n\n switch (_reader.getFieldNumber()) {\n case 1:\n _instance.t2sCloudProviderConfigElevenlabs = new T2sCloudProviderConfigElevenLabs();\n _reader.readMessage(\n _instance.t2sCloudProviderConfigElevenlabs,\n T2sCloudProviderConfigElevenLabs.deserializeBinaryFromReader\n );\n break;\n case 2:\n _instance.t2sCloudProviderConfigGoogle = new T2sCloudProviderConfigGoogle();\n _reader.readMessage(\n _instance.t2sCloudProviderConfigGoogle,\n T2sCloudProviderConfigGoogle.deserializeBinaryFromReader\n );\n break;\n case 3:\n _instance.t2sCloudProviderConfigMicrosoft = new T2sCloudProviderConfigMicrosoft();\n _reader.readMessage(\n _instance.t2sCloudProviderConfigMicrosoft,\n T2sCloudProviderConfigMicrosoft.deserializeBinaryFromReader\n );\n break;\n default:\n _reader.skipField();\n }\n }\n\n T2sCloudProviderConfig.refineValues(_instance);\n }\n\n /**\n * Serializes a message to binary format using provided binary reader\n * @param _instance message instance\n * @param _writer binary writer instance\n */\n static serializeBinaryToWriter(\n _instance: T2sCloudProviderConfig,\n _writer: BinaryWriter\n ) {\n if (_instance.t2sCloudProviderConfigElevenlabs) {\n _writer.writeMessage(\n 1,\n _instance.t2sCloudProviderConfigElevenlabs as any,\n T2sCloudProviderConfigElevenLabs.serializeBinaryToWriter\n );\n }\n if (_instance.t2sCloudProviderConfigGoogle) {\n _writer.writeMessage(\n 2,\n _instance.t2sCloudProviderConfigGoogle as any,\n T2sCloudProviderConfigGoogle.serializeBinaryToWriter\n );\n }\n if (_instance.t2sCloudProviderConfigMicrosoft) {\n _writer.writeMessage(\n 3,\n _instance.t2sCloudProviderConfigMicrosoft as any,\n T2sCloudProviderConfigMicrosoft.serializeBinaryToWriter\n );\n }\n }\n\n private _t2sCloudProviderConfigElevenlabs?: T2sCloudProviderConfigElevenLabs;\n private _t2sCloudProviderConfigGoogle?: T2sCloudProviderConfigGoogle;\n private _t2sCloudProviderConfigMicrosoft?: T2sCloudProviderConfigMicrosoft;\n\n /**\n * Message constructor. Initializes the properties and applies default Protobuf values if necessary\n * @param _value initial values object or instance of T2sCloudProviderConfig to deeply clone from\n */\n constructor(_value?: RecursivePartial<T2sCloudProviderConfig.AsObject>) {\n _value = _value || {};\n this.t2sCloudProviderConfigElevenlabs = _value.t2sCloudProviderConfigElevenlabs\n ? new T2sCloudProviderConfigElevenLabs(\n _value.t2sCloudProviderConfigElevenlabs\n )\n : undefined;\n this.t2sCloudProviderConfigGoogle = _value.t2sCloudProviderConfigGoogle\n ? new T2sCloudProviderConfigGoogle(_value.t2sCloudProviderConfigGoogle)\n : undefined;\n this.t2sCloudProviderConfigMicrosoft = _value.t2sCloudProviderConfigMicrosoft\n ? new T2sCloudProviderConfigMicrosoft(\n _value.t2sCloudProviderConfigMicrosoft\n )\n : undefined;\n T2sCloudProviderConfig.refineValues(this);\n }\n get t2sCloudProviderConfigElevenlabs():\n | T2sCloudProviderConfigElevenLabs\n | undefined {\n return this._t2sCloudProviderConfigElevenlabs;\n }\n set t2sCloudProviderConfigElevenlabs(\n value: T2sCloudProviderConfigElevenLabs | undefined\n ) {\n this._t2sCloudProviderConfigElevenlabs = value;\n }\n get t2sCloudProviderConfigGoogle(): T2sCloudProviderConfigGoogle | undefined {\n return this._t2sCloudProviderConfigGoogle;\n }\n set t2sCloudProviderConfigGoogle(\n value: T2sCloudProviderConfigGoogle | undefined\n ) {\n this._t2sCloudProviderConfigGoogle = value;\n }\n get t2sCloudProviderConfigMicrosoft():\n | T2sCloudProviderConfigMicrosoft\n | undefined {\n return this._t2sCloudProviderConfigMicrosoft;\n }\n set t2sCloudProviderConfigMicrosoft(\n value: T2sCloudProviderConfigMicrosoft | undefined\n ) {\n this._t2sCloudProviderConfigMicrosoft = value;\n }\n\n /**\n * Serialize message to binary data\n * @param instance message instance\n */\n serializeBinary() {\n const writer = new BinaryWriter();\n T2sCloudProviderConfig.serializeBinaryToWriter(this, writer);\n return writer.getResultBuffer();\n }\n\n /**\n * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)\n */\n toObject(): T2sCloudProviderConfig.AsObject {\n return {\n t2sCloudProviderConfigElevenlabs: this.t2sCloudProviderConfigElevenlabs\n ? this.t2sCloudProviderConfigElevenlabs.toObject()\n : undefined,\n t2sCloudProviderConfigGoogle: this.t2sCloudProviderConfigGoogle\n ? this.t2sCloudProviderConfigGoogle.toObject()\n : undefined,\n t2sCloudProviderConfigMicrosoft: this.t2sCloudProviderConfigMicrosoft\n ? this.t2sCloudProviderConfigMicrosoft.toObject()\n : undefined\n };\n }\n\n /**\n * Convenience method to support JSON.stringify(message), replicates the structure of toObject()\n */\n toJSON() {\n return this.toObject();\n }\n\n /**\n * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json\n * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.\n * 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\n */\n toProtobufJSON(\n // @ts-ignore\n options?: ToProtobufJSONOptions\n ): T2sCloudProviderConfig.AsProtobufJSON {\n return {\n t2sCloudProviderConfigElevenlabs: this.t2sCloudProviderConfigElevenlabs\n ? this.t2sCloudProviderConfigElevenlabs.toProtobufJSON(options)\n : null,\n t2sCloudProviderConfigGoogle: this.t2sCloudProviderConfigGoogle\n ? this.t2sCloudProviderConfigGoogle.toProtobufJSON(options)\n : null,\n t2sCloudProviderConfigMicrosoft: this.t2sCloudProviderConfigMicrosoft\n ? this.t2sCloudProviderConfigMicrosoft.toProtobufJSON(options)\n : null\n };\n }\n}\nexport module T2sCloudProviderConfig {\n /**\n * Standard JavaScript object representation for T2sCloudProviderConfig\n */\n export interface AsObject {\n t2sCloudProviderConfigElevenlabs?: T2sCloudProviderConfigElevenLabs.AsObject;\n t2sCloudProviderConfigGoogle?: T2sCloudProviderConfigGoogle.AsObject;\n t2sCloudProviderConfigMicrosoft?: T2sCloudProviderConfigMicrosoft.AsObject;\n }\n\n /**\n * Protobuf JSON representation for T2sCloudProviderConfig\n */\n export interface AsProtobufJSON {\n t2sCloudProviderConfigElevenlabs: T2sCloudProviderConfigElevenLabs.AsProtobufJSON | null;\n t2sCloudProviderConfigGoogle: T2sCloudProviderConfigGoogle.AsProtobufJSON | null;\n t2sCloudProviderConfigMicrosoft: T2sCloudProviderConfigMicrosoft.AsProtobufJSON | null;\n }\n}\n\n/**\n * Message implementation for ondewo.t2s.T2sCloudProviderConfigElevenLabs\n */\nexport class T2sCloudProviderConfigElevenLabs implements GrpcMessage {\n static id = 'ondewo.t2s.T2sCloudProviderConfigElevenLabs';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new T2sCloudProviderConfigElevenLabs();\n T2sCloudProviderConfigElevenLabs.deserializeBinaryFromReader(\n instance,\n new BinaryReader(bytes)\n );\n return instance;\n }\n\n /**\n * Check all the properties and set default protobuf values if necessary\n * @param _instance message instance\n */\n static refineValues(_instance: T2sCloudProviderConfigElevenLabs) {\n _instance.stability = _instance.stability || 0;\n _instance.similarityBoost = _instance.similarityBoost || 0;\n _instance.style = _instance.style || 0;\n _instance.useSpeakerBoost = _instance.useSpeakerBoost || false;\n _instance.applyTextNormalization = _instance.applyTextNormalization || '';\n }\n\n /**\n * Deserializes / reads binary message into message instance using provided binary reader\n * @param _instance message instance\n * @param _reader binary reader instance\n */\n static deserializeBinaryFromReader(\n _instance: T2sCloudProviderConfigElevenLabs,\n _reader: BinaryReader\n ) {\n while (_reader.nextField()) {\n if (_reader.isEndGroup()) break;\n\n switch (_reader.getFieldNumber()) {\n case 1:\n _instance.stability = _reader.readFloat();\n break;\n case 2:\n _instance.similarityBoost = _reader.readFloat();\n break;\n case 3:\n _instance.style = _reader.readFloat();\n break;\n case 4:\n _instance.useSpeakerBoost = _reader.readBool();\n break;\n case 5:\n _instance.applyTextNormalization = _reader.readString();\n break;\n default:\n _reader.skipField();\n }\n }\n\n T2sCloudProviderConfigElevenLabs.refineValues(_instance);\n }\n\n /**\n * Serializes a message to binary format using provided binary reader\n * @param _instance message instance\n * @param _writer binary writer instance\n */\n static serializeBinaryToWriter(\n _instance: T2sCloudProviderConfigElevenLabs,\n _writer: BinaryWriter\n ) {\n if (_instance.stability) {\n _writer.writeFloat(1, _instance.stability);\n }\n if (_instance.similarityBoost) {\n _writer.writeFloat(2, _instance.similarityBoost);\n }\n if (_instance.style) {\n _writer.writeFloat(3, _instance.style);\n }\n if (_instance.useSpeakerBoost) {\n _writer.writeBool(4, _instance.useSpeakerBoost);\n }\n if (_instance.applyTextNormalization) {\n _writer.writeString(5, _instance.applyTextNormalization);\n }\n }\n\n private _stability: number;\n private _similarityBoost: number;\n private _style: number;\n private _useSpeakerBoost: boolean;\n private _applyTextNormalization: string;\n\n /**\n * Message constructor. Initializes the properties and applies default Protobuf values if necessary\n * @param _value initial values object or instance of T2sCloudProviderConfigElevenLabs to deeply clone from\n */\n constructor(\n _value?: RecursivePartial<T2sCloudProviderConfigElevenLabs.AsObject>\n ) {\n _value = _value || {};\n this.stability = _value.stability;\n this.similarityBoost = _value.similarityBoost;\n this.style = _value.style;\n this.useSpeakerBoost = _value.useSpeakerBoost;\n this.applyTextNormalization = _value.applyTextNormalization;\n T2sCloudProviderConfigElevenLabs.refineValues(this);\n }\n get stability(): number {\n return this._stability;\n }\n set stability(value: number) {\n this._stability = value;\n }\n get similarityBoost(): number {\n return this._similarityBoost;\n }\n set similarityBoost(value: number) {\n this._similarityBoost = value;\n }\n get style(): number {\n return this._style;\n }\n set style(value: number) {\n this._style = value;\n }\n get useSpeakerBoost(): boolean {\n return this._useSpeakerBoost;\n }\n set useSpeakerBoost(value: boolean) {\n this._useSpeakerBoost = value;\n }\n get applyTextNormalization(): string {\n return this._applyTextNormalization;\n }\n set applyTextNormalization(value: string) {\n this._applyTextNormalization = value;\n }\n\n /**\n * Serialize message to binary data\n * @param instance message instance\n */\n serializeBinary() {\n const writer = new BinaryWriter();\n T2sCloudProviderConfigElevenLabs.serializeBinaryToWriter(this, writer);\n return writer.getResultBuffer();\n }\n\n /**\n * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)\n */\n toObject(): T2sCloudProviderConfigElevenLabs.AsObject {\n return {\n stability: this.stability,\n similarityBoost: this.similarityBoost,\n style: this.style,\n useSpeakerBoost: this.useSpeakerBoost,\n applyTextNormalization: this.applyTextNormalization\n };\n }\n\n /**\n * Convenience method to support JSON.stringify(message), replicates the structure of toObject()\n */\n toJSON() {\n return this.toObject();\n }\n\n /**\n * Cast message to JSON using protobuf JSON notation: https://developers.google.com/proto