(Dec-01-2020, 12:19 PM)Talking2442 Wrote: Please guys I'm new here and I want to learn Python.That's not a good way ask a question,we can not guess what's not working for you.
But I cant get them working...
Can show a quick run,and i use code from Doc Example: Blocking Mode Audio I/O,which i just copy and call
pyaudio_test.py
.Also to run isolated i use virtual environment and PyAudio wheel from Gohlke.
# Make G:\div_code λ python -m venv audio_env # cd in G:\div_code λ cd audio_env\ # Activate G:\div_code\audio_env λ G:\div_code\audio_env\Scripts\activate # Install (audio_env) G:\div_code\audio_env λ pip install PyAudio-0.2.11-cp38-cp38-win_amd64.whl Processing g:\div_code\audio_env\pyaudio-0.2.11-cp38-cp38-win_amd64.whl Installing collected packages: PyAudio Successfully installed PyAudio-0.2.11 # Test (audio_env) G:\div_code\audio_env λ python pyaudio_test.py Alarm.wavSo it's working playing
Alarm.wav
fine.