Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shenjinti/go-rnnoise

rnnoise golang bindings
https://github.com/shenjinti/go-rnnoise

Last synced: 2 days ago
JSON representation

rnnoise golang bindings

Awesome Lists containing this project

README

        

# rnnoise golang bindings

- [rnnoise](https://github.com/xiph/rnnoise.git)

The RNNoise project is a noise suppression library based on a recurrent neural network.

This project is a golang bindings for the RNNoise project.

## requirements

- gcc (for cgo)

## get cmd gornnoise

``` bash
$ go install github.com/shenjinti/go-rnnoise/cmd/gornnoise

#Usage: gornnoise
```

## Example

```go

func TestProcess(t *testing.T) {
r := NewRNNoise()

frameSize := GetFrameSize()
assert.Equal(t, frameSize, 480)
o := r.Process([]byte{1, 2, 3, 4, 5, 6})
assert.Equal(t, []byte{0, 0, 0, 0, 0, 0}, o)
}

```