|
def | __init__ (self, path) |
|
def | stt (self, audio, language, limit) |
|
def | __init__ (self, path) |
|
def | add_authorization (self, headers) |
|
def | add_content_type (self, headers) |
|
def | build_data (self, params) |
|
def | build_headers (self, params) |
|
def | build_json (self, params) |
|
def | build_path (self, params) |
|
def | build_query (self, params) |
|
def | build_url (self, params) |
|
def | check_token (self) |
|
def | get_data (self, response) |
|
def | get_response (self, response, no_refresh=False) |
|
def | refresh_token (self) |
|
def | request (self, params) |
|
def | send (self, params, no_refresh=False) |
|
Web API wrapper for performing Speech to Text (STT)
Definition at line 446 of file scripts/mycroft/api/__init__.py.
def mycroft.api.STTApi.__init__ |
( |
|
self, |
|
|
|
path |
|
) |
| |
def mycroft.api.STTApi.stt |
( |
|
self, |
|
|
|
audio, |
|
|
|
language, |
|
|
|
limit |
|
) |
| |
Web API wrapper for performing Speech to Text (STT)
Args:
audio (bytes): The recorded audio, as in a FLAC file
language (str): A BCP-47 language code, e.g. "en-US"
limit (int): Maximum minutes to transcribe(?)
Returns:
str: JSON structure with transcription results
Definition at line 452 of file scripts/mycroft/api/__init__.py.
The documentation for this class was generated from the following file: