How to play a fixed frequency sound using Python
Posted
by
user98415
on Ask Ubuntu
See other posts from Ask Ubuntu
or by user98415
Published on 2012-10-18T04:37:30Z
Indexed on
2012/10/18
5:22 UTC
Read the original article
Hit count: 208
python
I have tried a number of ways of playing a fixed frequency sound (e.g. 1000Hz) and nothing works.
I have downloaded "beep" and that makes no noise.
I tried interfacing to pyao, and that had no effect.
I tried interfacing to audiere, and get a runtime error indicating the library could not be found, despite installing it from the software centre.
Any guidance for installation of appropriate libraries and relevant code would be most appreciated.
I cannot generate .mp3/ .wav files for this, but need to generate the tones at run time.
Many thanks for you
© Ask Ubuntu or respective owner