Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.baidu.tts.BaiduTTSProvider Class Reference
Inheritance diagram for homeassistant.components.baidu.tts.BaiduTTSProvider:
[legend]
Collaboration diagram for homeassistant.components.baidu.tts.BaiduTTSProvider:
[legend]

Public Member Functions

def __init__ (self, hass, conf)
 
def default_language (self)
 
def default_options (self)
 
def get_tts_audio (self, message, language, options)
 
def supported_languages (self)
 
def supported_options (self)
 

Public Attributes

 hass
 
 name
 

Private Attributes

 _app_data
 
 _codec
 
 _lang
 
 _speech_conf_data
 

Detailed Description

Baidu TTS speech api provider.

Definition at line 64 of file tts.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.baidu.tts.BaiduTTSProvider.__init__ (   self,
  hass,
  conf 
)
Init Baidu TTS service.

Definition at line 67 of file tts.py.

Member Function Documentation

◆ default_language()

def homeassistant.components.baidu.tts.BaiduTTSProvider.default_language (   self)
Return the default language.

Definition at line 88 of file tts.py.

◆ default_options()

def homeassistant.components.baidu.tts.BaiduTTSProvider.default_options (   self)
Return a dict including default options.

Definition at line 98 of file tts.py.

◆ get_tts_audio()

def homeassistant.components.baidu.tts.BaiduTTSProvider.get_tts_audio (   self,
  message,
  language,
  options 
)
Load TTS from BaiduTTS.

Definition at line 112 of file tts.py.

◆ supported_languages()

def homeassistant.components.baidu.tts.BaiduTTSProvider.supported_languages (   self)
Return a list of supported languages.

Definition at line 93 of file tts.py.

◆ supported_options()

def homeassistant.components.baidu.tts.BaiduTTSProvider.supported_options (   self)
Return a list of supported options.

Definition at line 108 of file tts.py.

Member Data Documentation

◆ _app_data

homeassistant.components.baidu.tts.BaiduTTSProvider._app_data
private

Definition at line 74 of file tts.py.

◆ _codec

homeassistant.components.baidu.tts.BaiduTTSProvider._codec
private

Definition at line 71 of file tts.py.

◆ _lang

homeassistant.components.baidu.tts.BaiduTTSProvider._lang
private

Definition at line 70 of file tts.py.

◆ _speech_conf_data

homeassistant.components.baidu.tts.BaiduTTSProvider._speech_conf_data
private

Definition at line 80 of file tts.py.

◆ hass

homeassistant.components.baidu.tts.BaiduTTSProvider.hass

Definition at line 69 of file tts.py.

◆ name

homeassistant.components.baidu.tts.BaiduTTSProvider.name

Definition at line 72 of file tts.py.


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