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