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

This commit is contained in:
Fangjun Kuang
2024-04-10 09:56:35 +08:00
committed by GitHub
parent db1b3ab1f3
commit c9ae7595d5
7 changed files with 7 additions and 7 deletions

View File

@@ -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

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"
)

View File

@@ -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"
)

View File

@@ -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"
)