G
G
GRIMSHOT2021-10-28 17:32:52
Python
GRIMSHOT, 2021-10-28 17:32:52

Voice assistant. no module name "_portaudio", how to solve this problem?

I am writing a voice assistant in python 3.10. I struggled with installing pyAudio for a long time, installed it via the source https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio portaudio is installed but gives the same error Device listing program using pyaudio
617ab40923c4c166529473.png


import pyaudio
p = pyaudio.PyAudio()
for i in range(p.get_device_count()):
    print(p.get_device_info_by_index(i)['name'])

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
UMFUCHI, 2021-11-02
@GRIMSHOT

I advise you not to use PyAudio in 3.10 yet. I
tried it myself, it's still a hemorrhoid.
You can see in my questions how I did my voice. assistant, there you will immediately find the reproduction of his speech and so that he can see the micro, but I will say right away that the program is very laggy, I did not understand why, sometimes it just freezes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question