"""STT constante.""" from enum import Enum DOMAIN = "stt" class AudioCodecs(str, Enum): """Supported Audio codecs.""" PCM = "pcm" OPUS = "opus" class AudioFormats(str, Enum): """Supported Audio formats.""" WAV = "wav" OGG = "ogg" class AudioBitRates(int, Enum): """Supported Audio bit rates.""" BITRATE_8 = 8 BITRATE_16 = 16 BITRATE_24 = 24 BITRATE_32 = 32 class AudioSampleRates(int, Enum): """Supported Audio sample rates.""" SAMPLERATE_8000 = 8000 SAMPLERATE_11000 = 11000 SAMPLERATE_16000 = 16000 SAMPLERATE_18900 = 18900 SAMPLERATE_22000 = 22000 SAMPLERATE_32000 = 32000 SAMPLERATE_37800 = 37800 SAMPLERATE_44100 = 44100 SAMPLERATE_48000 = 48000 class AudioChannels(int, Enum): """Supported Audio channel.""" CHANNEL_MONO = 1 CHANNEL_STEREO = 2 class SpeechResultState(str, Enum): """Result state of speech.""" SUCCESS = "success" ERROR = "error"