https://github.com/processone/mpg123
Go wrapper for mpg123 command
https://github.com/processone/mpg123
sound-player
Last synced: 4 months ago
JSON representation
Go wrapper for mpg123 command
- Host: GitHub
- URL: https://github.com/processone/mpg123
- Owner: processone
- License: apache-2.0
- Created: 2016-02-12T17:59:19.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-01-23T08:12:34.000Z (about 7 years ago)
- Last Synced: 2025-06-15T10:09:19.599Z (8 months ago)
- Topics: sound-player
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mpg123
Go wrapper for mpg123 command.
The library is simple as it just rely on having the mpg123
command-line tool available. It is less flexible than relying on a
binding to libmpg123, but it is pure go and easier to manage, deploy,
maintain.
## Usage
For now, it can be used to stream content from an URL.
Here is a simple basic example:
p, err := mpg123.NewPlayer()
if err != nil {
log.Fatal(err)
}
p.Play("https://archive.org/download/testmp3testfile/mpthreetest.mp3")