I want to produce sounds/beeps from my sound card using Python. Is it possible? If so, how? (Using Linux)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Python does not have a cross-platform way to play sounds.
When speaking about Linux, there is this interesting library
ossauiodev. The code in this question may be considered as example code, but the question shows that the library is not perfect.You could use some external library, such as pygame (example) or Qt‘s Phonon.