Fangjun Kuang
Committed by GitHub

Fix go API examples with portaudio on Windows. (#746)

@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 This examples shows how to use the golang package of [sherpa-onnx][sherpa-onnx] 3 This examples shows how to use the golang package of [sherpa-onnx][sherpa-onnx]
4 for real-time speech recognition from microphone. 4 for real-time speech recognition from microphone.
5 5
6 -It uses <https://github.com/gordonklaus/portaudio> 6 +It uses <https://github.com/csukuangfj/portaudio-go>
7 to read the microphone and you have to install `portaudio` first. 7 to read the microphone and you have to install `portaudio` first.
8 8
9 On macOS, you can use 9 On macOS, you can use
@@ -2,7 +2,7 @@ package main @@ -2,7 +2,7 @@ package main
2 2
3 import ( 3 import (
4 "fmt" 4 "fmt"
5 - "github.com/gordonklaus/portaudio" 5 + portaudio "github.com/csukuangfj/portaudio-go"
6 sherpa "github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx" 6 sherpa "github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx"
7 flag "github.com/spf13/pflag" 7 flag "github.com/spf13/pflag"
8 "log" 8 "log"
@@ -2,7 +2,7 @@ package main @@ -2,7 +2,7 @@ package main
2 2
3 import ( 3 import (
4 "fmt" 4 "fmt"
5 - "github.com/gordonklaus/portaudio" 5 + portaudio "github.com/csukuangfj/portaudio-go"
6 sherpa "github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx" 6 sherpa "github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx"
7 "log" 7 "log"
8 "strings" 8 "strings"
@@ -2,7 +2,7 @@ package main @@ -2,7 +2,7 @@ package main
2 2
3 import ( 3 import (
4 "fmt" 4 "fmt"
5 - "github.com/gordonklaus/portaudio" 5 + portaudio "github.com/csukuangfj/portaudio-go"
6 sherpa "github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx" 6 sherpa "github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx"
7 "log" 7 "log"
8 "strings" 8 "strings"
@@ -2,7 +2,7 @@ package main @@ -2,7 +2,7 @@ package main
2 2
3 import ( 3 import (
4 "fmt" 4 "fmt"
5 - "github.com/gordonklaus/portaudio" 5 + portaudio "github.com/csukuangfj/portaudio-go"
6 sherpa "github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx" 6 sherpa "github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx"
7 "log" 7 "log"
8 ) 8 )
@@ -3,7 +3,7 @@ package main @@ -3,7 +3,7 @@ package main
3 import ( 3 import (
4 "fmt" 4 "fmt"
5 iso639 "github.com/barbashov/iso639-3" 5 iso639 "github.com/barbashov/iso639-3"
6 - "github.com/gordonklaus/portaudio" 6 + portaudio "github.com/csukuangfj/portaudio-go"
7 sherpa "github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx" 7 sherpa "github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx"
8 "log" 8 "log"
9 ) 9 )
@@ -2,7 +2,7 @@ package main @@ -2,7 +2,7 @@ package main
2 2
3 import ( 3 import (
4 "fmt" 4 "fmt"
5 - "github.com/gordonklaus/portaudio" 5 + portaudio "github.com/csukuangfj/portaudio-go"
6 sherpa "github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx" 6 sherpa "github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx"
7 "log" 7 "log"
8 ) 8 )