Skip to content

simple beep sound playing program for different platforms.

License

Notifications You must be signed in to change notification settings

hack505/Simple_beep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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