ptwz / python_wizard

Command line LPC analysis tool to generate bitstreams for the Texas Instruments TMS5220 chip
MIT License
40 stars 12 forks source link

Playback feature #19

Open 125scratch opened 1 year ago

125scratch commented 1 year ago

I was able to use this program to convert a few audio files to LPC data, and I noticed the README.md mentions a playback feature was added, but I can't seem to find a way to activate it in the GUI, how would one go about playing back the LPC data?

sintech commented 1 year ago

Try to install pyaudio as it is used to playback samples to audio card. pip3 install pyaudio

adamsstephen commented 1 year ago

Downloading PyAudio-0.2.13.tar.gz (46 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.8/46.8 KB 225.4 kB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: pyaudio Building wheel for pyaudio (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for pyaudio (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [17 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.10 creating build/lib.linux-x86_64-3.10/pyaudio copying src/pyaudio/init.py -> build/lib.linux-x86_64-3.10/pyaudio running build_ext creating build/temp.linux-x86_64-3.10 creating build/temp.linux-x86_64-3.10/src creating build/temp.linux-x86_64-3.10/src/pyaudio x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/local/include -I/usr/include -I/usr/include/python3.10 -c src/pyaudio/device_api.c -o build/temp.linux-x86_64-3.10/src/pyaudio/device_api.o src/pyaudio/device_api.c:9:10: fatal error: portaudio.h: No such file or directory 9 | #include "portaudio.h" | ^~~~~ compilation terminated. error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1 [end of output]

It does not work, you get these errors. note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pyaudio Failed to build pyaudio ERROR: Could not build wheels for pyaudio, which is required to install pyproject.toml-based projects

sintech commented 1 year ago

https://stackoverflow.com/questions/48690984/portaudio-h-no-such-file-or-directory