简体   繁体   中英

Pyaudio alternative in Python for speech to text translation

I am executing the code for speech to text translation in Python using the speech_recognition module; while executing the code the error is Pyaudio not installed. When I am trying to install the error is: building '_portaudio' extension error: Microsoft Visual C++ 14.0 is required.

is there any alternative for Pyaudio?

python-sounddevice is an alternative to PyAudio for recording and playing back audio streams, from microphone or to soundcard. It has a much more Pythonic API than PyAudio. And they also provide binary wheels for Windows and Mac OS, so no C++ compiler is needed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM