I used python3.5.3 on windows and the code work like a charm. The code above work on python2.7 and python3 but in case, what's your python version? Print("The system is not able to beep the speaker") ![]() You can catch error that python raise to you to figure it out what's wrong try: ![]() You can insert self music list, self bell sound, etc. ![]() Aplikasi bel sekolah otomatis ini bernama Bedug Versi 1. Username: admin Password: admin Bel Sekolah Otomatis adl aplikasi yang berfungsi sebagai pengganti. Update Well according to the doc you did the right thing. Aplikasi Bel Sekolah ini dapat diatur dan disesuaikan baik waktu alarm berbunyi dan juga bunyi bel yang dapat diseting sesuai kehendak kita. On Ubuntu/Debian: sudo apt-get install beep You have to install beep (it's an "advanced" pc-speaker beeper), the installation depend on your system Mac/OSX, Linux(Ubuntu/Debian, Fedora, Archlinux), BSD? ![]() Os.system('play -no-show-progress -null -channels 1 synth %s sine Seconds: What to you mean by "make a sound" if you just want a "beep" you can use beep and call it with os.system from os module (or subprocess) like this: import os On Windows, so if you're a LINUX or UNIX you have to find another way. First: What is your OS? According to the documentation winsound "access to the basic sound-playing machinery provided by Windows platforms".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |