Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.stt.legacy.Provider Class Reference
Inheritance diagram for homeassistant.components.stt.legacy.Provider:
[legend]
Collaboration diagram for homeassistant.components.stt.legacy.Provider:
[legend]

Public Member Functions

SpeechResult async_process_audio_stream (self, SpeechMetadata metadata, AsyncIterable[bytes] stream)
 
bool check_metadata (self, SpeechMetadata metadata)
 
list[AudioBitRatessupported_bit_rates (self)
 
list[AudioChannelssupported_channels (self)
 
list[AudioCodecssupported_codecs (self)
 
list[AudioFormatssupported_formats (self)
 
list[str] supported_languages (self)
 
list[AudioSampleRatessupported_sample_rates (self)
 

Static Public Attributes

 None
 

Detailed Description

Represent a single STT provider.

Definition at line 110 of file legacy.py.

Member Function Documentation

◆ async_process_audio_stream()

SpeechResult homeassistant.components.stt.legacy.Provider.async_process_audio_stream (   self,
SpeechMetadata  metadata,
AsyncIterable[bytes]   stream 
)
Process an audio stream to STT service.

Only streaming of content are allow!

Definition at line 147 of file legacy.py.

◆ check_metadata()

bool homeassistant.components.stt.legacy.Provider.check_metadata (   self,
SpeechMetadata  metadata 
)
Check if given metadata supported by this provider.

Definition at line 156 of file legacy.py.

◆ supported_bit_rates()

list[AudioBitRates] homeassistant.components.stt.legacy.Provider.supported_bit_rates (   self)
Return a list of supported bit rates.

Definition at line 133 of file legacy.py.

◆ supported_channels()

list[AudioChannels] homeassistant.components.stt.legacy.Provider.supported_channels (   self)
Return a list of supported channels.

Definition at line 143 of file legacy.py.

◆ supported_codecs()

list[AudioCodecs] homeassistant.components.stt.legacy.Provider.supported_codecs (   self)
Return a list of supported codecs.

Definition at line 128 of file legacy.py.

◆ supported_formats()

list[AudioFormats] homeassistant.components.stt.legacy.Provider.supported_formats (   self)
Return a list of supported formats.

Definition at line 123 of file legacy.py.

◆ supported_languages()

list[str] homeassistant.components.stt.legacy.Provider.supported_languages (   self)
Return a list of supported languages.

Definition at line 118 of file legacy.py.

◆ supported_sample_rates()

list[AudioSampleRates] homeassistant.components.stt.legacy.Provider.supported_sample_rates (   self)
Return a list of supported sample rates.

Definition at line 138 of file legacy.py.

Member Data Documentation

◆ None

homeassistant.components.stt.legacy.Provider.None
static

Definition at line 113 of file legacy.py.


The documentation for this class was generated from the following file: