Add rnnoise_ladspa as a git submodule and build automatically

pull/3/head
lawl 4 years ago
parent ac4e37f5fd
commit 37ae375fca

3
.gitmodules vendored

@ -0,0 +1,3 @@
[submodule "librnnoise_ladspa"]
path = librnnoise_ladspa
url = https://github.com/werman/noise-suppression-for-voice

@ -1,9 +1,13 @@
dev:
dev: rnnoise
go generate
go build
release:
release: rnnoise
go generate
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-s -w -extldflags "-static"' .
upx noisetorch
tar cvzf NoiseTorch_x64.tgz noisetorch
rm noisetorch
rnnoise:
cd librnnoise_ladspa/; \
cmake . -DBUILD_VST_PLUGIN=OFF -DBUILD_LV2_PLUGIN=OFF -DBUILD_LADSPA_PLUGIN=ON; \
make

@ -0,0 +1 @@
Subproject commit 453a8af82a31a5361f6a13bf95c97686f0a2acd1

@ -1,10 +0,0 @@
Put a compiled librnnoise_ladspa.so in this folder, it will be required for compilation.
You can find the code for this here: https://github.com/werman/noise-suppression-for-voice
Run:
git clone
cd noise-supression-for-voice
cmake .
make

@ -8,12 +8,9 @@ import (
)
func main() {
b, err := ioutil.ReadFile("librnnoise_ladspa/librnnoise_ladspa.so")
b, err := ioutil.ReadFile("librnnoise_ladspa/bin/ladspa/librnnoise_ladspa.so")
if err != nil {
fmt.Printf("Couldn't read librnnoise_ladspa.so: %v\n", err)
fmt.Println("Drop a compiled librnnoise_ladspa.so in at librnnoise_ladspa/librnnoise_ladspa.so,\n" +
"it will is required for compilation so we can embed it.\n\n" +
"You can find out more information in the README in that folder\n\n")
os.Exit(1)
}
out, _ := os.Create("librnnoise.go")

Loading…
Cancel
Save