-
Start golang server
go run cmd/server/main.go
-
Start stream using ffmpeg
go run cmd/source/main.go -file music.mp3 -url http://localhost:8001/source -user sourceuser -pass sourcepass
export CGO_CFLAGS="-I/opt/homebrew/include"
export CGO_LDFLAGS="-L/opt/homebrew/lib"`
- Start stream from microphone
go run cmd/source/main.go -url http://localhost:8001/source -user sourceuser -pass sourcepass
- Install
brew install pkg-config portaudio lame
- Open browser and go to
http://localhost:8001/stream
to listen to the stream