hack505 / Simple_beep

simple beep sound playing program for different platforms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

simple beep sound playing program for different platforms.

License:MIT License