I have used github.com/jfreymuth/oggvorbis to read the ogg file (and convert to PCM) and github.com/ebitengine/oto/v3 to play the PCM. I don't know of a full ogg player in Go
On Wed, Nov 22, 2023 at 2:02 PM 'Mark' via golang-nuts < golang-nuts@googlegroups.com> wrote: > Is there a simple vorbis/oga audio player package for Go that works on > Linux. > The only API I need is something like this: > > player.SetFilename(string) error // string is say tune.ogg; stops playing > previous if any > player.Play(float32) error // plays current filename from given second > e.g. 0.0 for the beginning > player.Pause() (float32, error) // pauses current playing and returns > position > player.Resume() error // resumes playing > player.Secs() float32 // returns current position > > The ones I've seen on awsome go either don't seem to play ogg format or > are far more sophisticated than I need. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/a38e3a9b-a357-4c85-aa4d-a7a4322ec216n%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/a38e3a9b-a357-4c85-aa4d-a7a4322ec216n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CANKfucYOa0VRf%3DqX1-wvggqLxRGTvN2k40yhAHsAHTFx668bxQ%40mail.gmail.com.