Simple beeping program written in python for all cross-platforms
- Simple and Clear
- Cross platform
For cross-platforms
pip install beepy
pip install simpleaudio
For Mac
pip install -U PyObjC
With Pygame
pip install pygame
For Windows
#comes In-built
Winsound
import winsound
winsound.Beep(440, 500)
Pygame
from pygame import mixer
mixer.init()
sound=mixer.Sound("bell.wav")
sound.play()
Simpleaudio
import simpleaudio
wave_obj = simpleaudio.WaveObject.from_wave_file("bell.wav")
play_obj = wave_obj.play()
play_obj.wait_done()
Beepy
import beepy
beep(sound="ping")
AppKit
import AppKit
AppKit.NSBeep()