Skip to content

Latest commit

 

History

History
99 lines (61 loc) · 1.21 KB

README.md

File metadata and controls

99 lines (61 loc) · 1.21 KB

SIMPLE BEEP!

Simple beeping program written in python for all cross-platforms

Features

  • Simple and Clear
  • Cross platform

Installation

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

Code

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()

Acknowledgements

License

MIT

Authors