![]() 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: Update Well according to the doc you did the right thing. 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 ![]() Memiliki beberapa Fitur yang menarik menurut saya. Simple Bel ini dikembangkan oleh ichasoft. ![]() ![]() Dilengkapi dengan pilihan nada yang bisa kita atur. On Windows, so if you're a LINUX or UNIX you have to find another way. Simple Bel adalah Program Komputer yang di kembangkan khusus untuk membunyikan suara atau sebagai alarm ketika pergantian jam pelajaran di sekolah. 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 |