Uberi / speech_recognition

Speech recognition module for Python, supporting several engines and APIs, online and offline.
https://pypi.python.org/pypi/SpeechRecognition/
BSD 3-Clause "New" or "Revised" License
8.31k stars 2.4k forks source link

Additional Parameters for r.recognize_ibm() #141

Closed michellemorales closed 7 years ago

michellemorales commented 8 years ago

IBM Watson's Speech to Text Service allows you to opt out of data collection when making requests. I do not want them to collect my data so I am trying to opt-out, which involves setting the parameter X-Watson-Learning-Opt-Out to True. See more details at: http://www.ibm.com/watson/developercloud/speech-to-text/api/v1/#authentication

When I use your r.recognize_ibm() function, X-Watson_Learning-Opt-Out=True, is not valid. Is there a way for me to pass this argument in?

Thanks!

Uberi commented 7 years ago

This will be a part of the next release (ref: ba8becc3f3ffea793eb0bf02d77acb06bbe5c173)

Alternatively, you can install the latest development version directly to get this functionality.

Uberi commented 7 years ago

Fixed in 3.5.0!

michellemorales commented 7 years ago

Awesome, thanks!