|
| None | __init__ (self, dict[str, Provider] providers) |
| |
| web.Response | get (self, web.Request request, str provider) |
| |
| web.Response | post (self, web.Request request, str provider) |
| |
STT view to generate a text from audio stream.
Definition at line 247 of file __init__.py.
◆ __init__()
| None homeassistant.components.stt.SpeechToTextView.__init__ |
( |
|
self, |
|
|
dict[str, Provider] |
providers |
|
) |
| |
◆ _get_provider()
| Provider homeassistant.components.stt.SpeechToTextView._get_provider |
( |
|
self, |
|
|
HomeAssistant |
hass, |
|
|
str |
provider |
|
) |
| |
|
private |
Get provider.
Method for legacy providers.
This can be removed when we remove the legacy provider support.
Definition at line 333 of file __init__.py.
◆ _suggest_report_issue()
| str homeassistant.components.stt.SpeechToTextView._suggest_report_issue |
( |
|
self, |
|
|
HomeAssistant |
hass, |
|
|
str |
provider, |
|
|
object
|
provider_instance |
|
) |
| |
|
private |
Suggest to report an issue.
Definition at line 356 of file __init__.py.
◆ get()
| web.Response homeassistant.components.stt.SpeechToTextView.get |
( |
|
self, |
|
|
web.Request |
request, |
|
|
str |
provider |
|
) |
| |
Return provider specific audio information.
Definition at line 299 of file __init__.py.
◆ post()
| web.Response homeassistant.components.stt.SpeechToTextView.post |
( |
|
self, |
|
|
web.Request |
request, |
|
|
str |
provider |
|
) |
| |
Convert Speech (audio) to text.
Definition at line 259 of file __init__.py.
◆ _legacy_provider_reported [1/2]
| bool homeassistant.components.stt.SpeechToTextView._legacy_provider_reported = False |
|
staticprivate |
◆ _legacy_provider_reported [2/2]
| homeassistant.components.stt.SpeechToTextView._legacy_provider_reported |
|
private |
◆ name
| string homeassistant.components.stt.SpeechToTextView.name = "api:stt:provider" |
|
static |
◆ providers
| homeassistant.components.stt.SpeechToTextView.providers |
◆ requires_auth
| bool homeassistant.components.stt.SpeechToTextView.requires_auth = True |
|
static |
◆ url
| string homeassistant.components.stt.SpeechToTextView.url = "/api/stt/{provider}" |
|
static |
The documentation for this class was generated from the following file: