Public Member Functions | List of all members
mycroft.api.STTApi Class Reference
Inheritance diagram for mycroft.api.STTApi:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, path)
 
def stt (self, audio, language, limit)
 
- Public Member Functions inherited from mycroft.api.Api
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)
 

Additional Inherited Members

- Public Attributes inherited from mycroft.api.Api
 identity
 
 old_params
 
 path
 
 url
 
 version
 
- Static Public Attributes inherited from mycroft.api.Api
dictionary etag_to_response = {}
 
dictionary params_to_etag = {}
 

Detailed Description

Web API wrapper for performing Speech to Text (STT) 

Definition at line 446 of file scripts/mycroft/api/__init__.py.

Constructor & Destructor Documentation

def mycroft.api.STTApi.__init__ (   self,
  path 
)

Definition at line 449 of file scripts/mycroft/api/__init__.py.

Member Function Documentation

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:


mycroft_ros
Author(s):
autogenerated on Mon Apr 26 2021 02:35:40