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 = 0
Default value. Will return result
google.rpc.Code.INVALID_ARGUMENT
.[EnumMember(Value = "MP3")] Mp3 = 2
MP3 audio at 32kbps.
[EnumMember(Value = "MP3_64_KBPS")] Mp3_64Kbps = 3
MP3 at 64kbps. Requires the beta API.
[EnumMember(Value = "OGG_OPUS")] OggOpus = 4
Opus encoded audio wrapped in an ogg container.
[EnumMember(Value = "ALAW")] WavALaw = 6
8-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 = 1
Uncompressed 16-bit signed little-endian samples (Linear PCM). Audio content returned as LINEAR16 also contains a WAV header.
[EnumMember(Value = "MULAW")] WavMuLaw = 5
8-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.