/beeper

beeper - play sound via PC speaker

Primary LanguageGoBSD 2-Clause "Simplified" LicenseBSD-2-Clause

beeper

beeper - play sound via PC speaker

GoDoc GoDev Go Walker GolangCI GoReport Codacy Badge License Build status Build Status Dependencies Free Gluten Free DepShield Badge Stars

Installation

go get github.com/biter777/beeper

Usage

func main() {
	b, _ := beeper.NewBeeper()
	b.Beep(5000, 100*time.Millisecond)   // beep sound via PC speaker, 5000 hz, 100 ms
	b.BeepItems(beeper.StarWars(), 1)    // play StarWars melody via PC speaker with melody speed = 1 :)
	b.Close()
}

Contributing

Welcome pull requests, bug fixes and issue reports.
Before proposing a change, please discuss it first by raising an issue.
Star us. Give us a star, please, if it's not against your religion :)