Skip to content

speexdsp pcm audio resampler binding for Golang

Notifications You must be signed in to change notification settings

aam335/speexdsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

speexdsp lib PCM audio Resampler

speexdsp is a Golang bindings for libspeexdsp, provides PCM sample rate converter for PCM coding

Installation

sudo apt-get install libspeexdsp-dev
go get -v github.com/aam335/speexdsp

Examples

...
	r, err := speexdsp.ResamplerInit(2, 48000, 44100, 4)
	if err != nil {
		t.Error(err)
	}
    for _,pcm := range pcms { // pcms=[][]int16  
        // pcm =[]int16 
		if readed, outpcm, err := r.PocessIntInterleaved(pcm); err != nil {
            t.Error(err)
            break
		}
    }
    r.Destroy()
...

for more info see tests

About

speexdsp pcm audio resampler binding for Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages