Feb-07-2021, 05:44 PM
I would just like to play a fixed frequency for a fixed period of time to the default speakers (HDMI or other) on a RP3 running wheezy with eventual porting to RPI 4 on Buster. This is from within a python 3 program. I am not playing anything from a file - just outputting a tone to the speaker.
Because the development work is not done directly on a Pi, I'd prefer a solution that is not restricted to a Pi but could run on other Linux systems (I have PCs running Ubuntu 18 and Debian Buster). Running on Windows is NOT a requirement.
There seems to be lots of different libraries and many of them are really designed to output files rather than "play this tone for a fixed period of time". Starting a tone unblocked, then sleeping for the required time, then stopping the tone (like audiere - now obsolete) seems to be one simple way, given there is no single call to output for a fixed time.
Can someone suggest a library that has such simple features and point me in the right direction?
Because the development work is not done directly on a Pi, I'd prefer a solution that is not restricted to a Pi but could run on other Linux systems (I have PCs running Ubuntu 18 and Debian Buster). Running on Windows is NOT a requirement.
There seems to be lots of different libraries and many of them are really designed to output files rather than "play this tone for a fixed period of time". Starting a tone unblocked, then sleeping for the required time, then stopping the tone (like audiere - now obsolete) seems to be one simple way, given there is no single call to output for a fixed time.
Can someone suggest a library that has such simple features and point me in the right direction?