/go-speex

Golang binding for speex(https://github.com/winlinvip/speex)

Primary LanguageGoMIT LicenseMIT

go-speex

Golang binding for speex(https://github.com/winlinvip/speex)

Usage

First, get the source code:

go get -d github.com/winlinvip/go-speex

Then, compile the speex:

cd $GOPATH/src/github.com/winlinvip/go-speex &&
git clone https://github.com/winlinvip/speex.git speex-lib &&
cd speex-lib/ && bash autogen.sh && ./configure --prefix=`pwd`/objs --enable-static && make && make install &&
cd ..

Done, import and use the package:

To run all examples:

cd $GOPATH/src/github.com/winlinvip/go-speex && go test ./...

There are an example of SPEEX audio packets in FLV:

For more information about SPEEX codec, read:

Winlin 2016