Lập Trình Linux

Can't install PyAudio? issues in Speech Recognition. See if this helps!




Can’t install pyaudio? See steps on how to get it working so you can create Python script to test it.

PyAudio – it provides bindings for the PortAudio library.

First find your Python version that is installed on your machine by going to

go to cmmand prompt and type python. Make sure environment variables are set right.

If you choose “pip install PyAudio” some times it may not work because the default module can be some other version and your python something else.

This needs a correct .whl file
my python version is Python 3.8.0

To get the right file go to

Download the file and copy to desired folder. From command prompt

navigate to the folder where it is downloaded for example cd C:tmp

install the .whl file with pip for example in my case:

pip install PyAudio‑0.2.11‑cp38‑cp38‑win_amd64.whl

You can test it out by writing a sample script shown in video. for speech recognition to work, You may need to install SpeechRecognition library using pip install SpeechRecognition

Thank you for watching.

Nguồn:https://ftlinuxcourse.com/

Xem Thêm Bài Viết Khác:https://ftlinuxcourse.com/lap-trinh-linux

Game
How to Download Gta5 for pc full version 59gb offline
Âm Nhạc
Tuyệt Phẩm Nhạc Vàng Xưa Song Ca Nghe Là Mê – CHẾ LINH THANH TUYỀN – Con Đường Mang Tên Em
Tin HOT
Virus corona: cập nhật tình hình Việt Nam và châu Âu ngày 19/3 – BBC News Tiếng Việt
There are currently no comments.