'Returns the recognized text from the audio input'

def recognize(self, audio, content_type, continuous=None, 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):

    headers = {'content-type': content_type}
    params = {'continuous': continuous, 'inactivity_timeout': inactivity_timeout, 'keywords': keywords, 'keywords_threshold': keywords_threshold, 'max_alternatives': max_alternatives, 'model': model, 'customization_id': customization_id, 'word_alternatives_threshold': word_alternatives_threshold, 'word_confidence': word_confidence, 'timestamps': timestamps, 'interim_results': interim_results, 'profanity_filter': profanity_filter, 'smart_formatting': smart_formatting, 'speaker_labels': speaker_labels}
    return self.request(method='POST', url='/v1/recognize', headers=headers, data=audio, params=params, stream=True, accept_json=True)
