Enum TextToSpeechSynthesisAudioEncoding
- Namespace
- Uralstech.UCloud.TextToSpeech.Synthesis
Configuration to set up audio encoder. The encoding determines the output audio format that we'd like.
public enum TextToSpeechSynthesisAudioEncoding
Fields
[EnumMember(Value = "AUDIO_ENCODING_UNSPECIFIED")] Default = 0Default value. Will return result
google.rpc.Code.INVALID_ARGUMENT.[EnumMember(Value = "MP3")] Mp3 = 2MP3 audio at 32kbps.
[EnumMember(Value = "MP3_64_KBPS")] Mp3_64Kbps = 3MP3 at 64kbps. Requires the beta API.
[EnumMember(Value = "OGG_OPUS")] OggOpus = 4Opus encoded audio wrapped in an ogg container.
[EnumMember(Value = "ALAW")] WavALaw = 68-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law. Audio content returned as ALAW also contains a WAV header.
This encoding is not supported by the plugin. You will have to convert the resulting bytes to an AudioClip yourself.[EnumMember(Value = "LINEAR16")] WavLinear16 = 1Uncompressed 16-bit signed little-endian samples (Linear PCM). Audio content returned as LINEAR16 also contains a WAV header.
[EnumMember(Value = "MULAW")] WavMuLaw = 58-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. Audio content returned as MULAW also contains a WAV header.
This encoding is not supported by the plugin. You will have to convert the resulting bytes to an AudioClip yourself.