faiface/beep
关于
为任意 Go 应用提供声音的小型软件包,适用于播放和音频处理。
设计与媒体可以做什么
- Decode and play WAV, MP3, OGG, and FLAC.
- Encode and save WAV.
- Very simple API. Limiting the support to stereo (two channel) audio made it possible to simplify the architecture and the API.
- Rich library of compositors and effects. Loop, pause/resume, change volume, mix, sequence, change playback speed, and more.
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- +1
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文*****NOTICE*****
This repo is not under active development anymore and has been archived. Continued development has been migrated to gopxl/Beep. A big thank you to faiface for creating this awesome library and for all the hard work put into it. We encourage old and new users to check out the new repo and contribute to it.
Beep

A little package that brings sound to any Go application. Suitable for playback and audio-processing.
go get -u github.com/faiface/beep
Features
Beep is built on top of its Streamer interface, which is like io.Reader, but for audio. It was one of the best design decisions I've ever made and it enabled all the rest of the features to naturally come together with not much code.
- Decode and play WAV, MP3, OGG, and FLAC.
- Encode and save WAV.
- Very simple API. Limiting the support to stereo (two channel) audio made it possible to simplify the architecture and the API.
- Rich library of compositors and effects. Loop, pause/resume, change volume, mix, sequence, change playback speed, and more.
- Easily create new effects. With the
Streamerinterface, creating new effects is very easy. - Generate completely own artificial sounds. Again, the
Streamerinterface enables easy sound generation. - Very small codebase. The core is just ~1K LOC.
Tutorial
The Wiki contains a handful of tutorials for you to get started. They teach the fundamentals and advanced topics alike. Read them especially if you call speaker.Init every time you play something.
- Hello, Beep!
- Composing and controlling
- To buffer, or not to buffer, that is the question
- Making own streamers
Examples
| Speedy Player | Doppler Stereo Room |
|---|---|
![]() |
![]() |
Dependencies
For playback, Beep uses Oto under the hood. Check its requirements to see what you need to install for building your application.
Running an already built application should work with no extra dependencies.
Licence
Projects using beep
探索相关项目
加载中…

