Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.demo.tts Namespace Reference

Classes

class  DemoProvider
 

Functions

Provider get_engine (HomeAssistant hass, ConfigType config, DiscoveryInfoType|None discovery_info=None)
 

Variables

string DEFAULT_LANG = "en"
 
 PLATFORM_SCHEMA
 
list SUPPORT_LANGUAGES = ["en", "de"]
 

Detailed Description

Support for the demo for text-to-speech service.

Function Documentation

◆ get_engine()

Provider homeassistant.components.demo.tts.get_engine ( HomeAssistant  hass,
ConfigType  config,
DiscoveryInfoType | None   discovery_info = None 
)
Set up Demo speech component.

Definition at line 28 of file tts.py.

Variable Documentation

◆ DEFAULT_LANG

string homeassistant.components.demo.tts.DEFAULT_LANG = "en"

Definition at line 21 of file tts.py.

◆ PLATFORM_SCHEMA

homeassistant.components.demo.tts.PLATFORM_SCHEMA
Initial value:
1 = TTS_PLATFORM_SCHEMA.extend(
2  {vol.Optional(CONF_LANG, default=DEFAULT_LANG): vol.In(SUPPORT_LANGUAGES)}
3 )

Definition at line 23 of file tts.py.

◆ SUPPORT_LANGUAGES

list homeassistant.components.demo.tts.SUPPORT_LANGUAGES = ["en", "de"]

Definition at line 19 of file tts.py.