Fix go API examples with portaudio on Windows. (#746)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
This examples shows how to use the golang package of [sherpa-onnx][sherpa-onnx]
|
||||
for real-time speech recognition from microphone.
|
||||
|
||||
It uses <https://github.com/gordonklaus/portaudio>
|
||||
It uses <https://github.com/csukuangfj/portaudio-go>
|
||||
to read the microphone and you have to install `portaudio` first.
|
||||
|
||||
On macOS, you can use
|
||||
|
||||
@@ -2,7 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/gordonklaus/portaudio"
|
||||
portaudio "github.com/csukuangfj/portaudio-go"
|
||||
sherpa "github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx"
|
||||
flag "github.com/spf13/pflag"
|
||||
"log"
|
||||
|
||||
@@ -2,7 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/gordonklaus/portaudio"
|
||||
portaudio "github.com/csukuangfj/portaudio-go"
|
||||
sherpa "github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx"
|
||||
"log"
|
||||
"strings"
|
||||
|
||||
@@ -2,7 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/gordonklaus/portaudio"
|
||||
portaudio "github.com/csukuangfj/portaudio-go"
|
||||
sherpa "github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx"
|
||||
"log"
|
||||
"strings"
|
||||
|
||||
@@ -2,7 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/gordonklaus/portaudio"
|
||||
portaudio "github.com/csukuangfj/portaudio-go"
|
||||
sherpa "github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx"
|
||||
"log"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
iso639 "github.com/barbashov/iso639-3"
|
||||
"github.com/gordonklaus/portaudio"
|
||||
portaudio "github.com/csukuangfj/portaudio-go"
|
||||
sherpa "github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx"
|
||||
"log"
|
||||
)
|
||||
|
||||
@@ -2,7 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/gordonklaus/portaudio"
|
||||
portaudio "github.com/csukuangfj/portaudio-go"
|
||||
sherpa "github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx"
|
||||
"log"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user