watson_developer_cloud.speech_to_text_v1 module¶
The v1 Speech to Text service (https://www.ibm.com/watson/developercloud/speech-to-text.html)
-
class
SpeechToTextV1
(url='https://stream.watsonplatform.net/speech-to-text/api', **kwargs)[source]¶ Bases:
watson_developer_cloud.watson_developer_cloud_service.WatsonDeveloperCloudService
-
default_url
= 'https://stream.watsonplatform.net/speech-to-text/api'¶
-
recognize
(audio, content_type, continuous=False, model=None, customization_id=None, inactivity_timeout=None, keywords=None, keywords_threshold=None, max_alternatives=None, word_alternatives_threshold=None, word_confidence=None, timestamps=None, interim_results=None, profanity_filter=None, smart_formatting=None, speaker_labels=None)[source]¶ Returns the recognized text from the audio input
-
get_model
(model_id)[source]¶ Parameters: model_id – The identifier of the desired model Returns: A single instance of a Model object with results for the specified model.
-