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

Public Member Functions

None __init__ (self, SpeechManager tts)
 
web.Response get (self, web.Request request, str filename)
 

Public Attributes

 tts
 

Static Public Attributes

string name = "api:tts_speech"
 
bool requires_auth = False
 
string url = "/api/tts_proxy/{filename}"
 

Detailed Description

TTS view to serve a speech audio.

Definition at line 1084 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.tts.TextToSpeechView.__init__ (   self,
SpeechManager  tts 
)
Initialize a tts view.

Definition at line 1091 of file __init__.py.

Member Function Documentation

◆ get()

web.Response homeassistant.components.tts.TextToSpeechView.get (   self,
web.Request  request,
str  filename 
)
Start a get request.

Definition at line 1095 of file __init__.py.

Member Data Documentation

◆ name

string homeassistant.components.tts.TextToSpeechView.name = "api:tts_speech"
static

Definition at line 1089 of file __init__.py.

◆ requires_auth

bool homeassistant.components.tts.TextToSpeechView.requires_auth = False
static

Definition at line 1087 of file __init__.py.

◆ tts

homeassistant.components.tts.TextToSpeechView.tts

Definition at line 1093 of file __init__.py.

◆ url

string homeassistant.components.tts.TextToSpeechView.url = "/api/tts_proxy/{filename}"
static

Definition at line 1088 of file __init__.py.


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