wit-ai / pywit

Python library for Wit.ai
Other
1.45k stars 359 forks source link

Does BytesIO work with Wit.ai? #119

Closed SoulSen closed 5 years ago

SoulSen commented 5 years ago

Can I send audio that is a BytesIO object to Wit.ai's API for speech recognition?

jtliao commented 5 years ago

Not too familiar with the BytesIO object, but you may be able to try with the audio/raw encoding. Refer to https://wit.ai/docs/http/20170307#post__speech_link for the officially supported types.