Using PYO with other audio output engines #317
snuq
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So unfortunately PYO's reliance on portaudio for output resulted in some serious issues on my linux install (unable to output through bluetooth, unable to record output in obs, frequent stuttering issues, occasional complete refusal to output audio until restarted computer, etc...), so I decided to try and use an alternate library for outputting PYO's audio.
After quite a bit of frustration, I was able to get a working setup using Sounddevice ( https://github.com/spatialaudio/python-sounddevice/ ). This method should work with pretty much any sound output library for python, tho some modification will be needed of course.
I am posting the relevant code here in case others have the same issue, or if anyone might have any ideas for improving it:
A way to get the Server's audio output data directly after calling process() would remove the need for a lot of this code, and would mean that using standard .out() functions on pyo objects would behave normally, but I have not been able to find a way to do this.
is there some way to get a buffer output from a pyo Stream object? or maybe some server function i missed in the documentation? maybe this feature can be added?
Beta Was this translation helpful? Give feedback.
All reactions