-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alsaaudio.PCM() not playing nicely with pipewire #155
Comments
pyaa is really a "rather boring" alsa client, so nothing special should be required. try taking pyaa out of the loop: try actually using aplay and arecord, with different parameters. does it work? export LIBASOUND_DEBUG=1 and compare the output between working and not working constellations. |
I can demonstrate the problem on my system with the supplied isine.py.
[edit: converted code to diff to make it useful] |
so you reduced the amplitude and increased the play time. |
Unsure whether this is a pyalsaaudio or pipewire thing but guidance
greatly appreciated.
I'm running ubuntu 24.04 with pipewire installed.
Here's the buffer from the emacs pipewire command
this all works fine. the tclsh client is the speech server from the
emacspeak package which is the main input.
Running ipython:
and here's the output from aplay -lL
So as I understand it calling
out=alsaaudio.PCM(device='default')
should open a connection to the pipewire media server and handle all
the resampling etc.
This isn't working, it produces endless sound loops from the tclsh
server above (destroying speech output) and won't go on to produce
sound from the rest of the application. This has been working with
pulseaudio for a number of years. Are there things I need to do to get
pyalsaaudio and pipewire talking?
[edit: fixed markup]
The text was updated successfully, but these errors were encountered: