老卫同学
发布于 2024-04-01 / 10 阅读
0
0

go开发语音转文字

在运行语音检测项目https://github.com/k2-fsa/sherpa-onnx/blob/master/go-api-examples/vad-asr-paraformer/main.go

问题1:

github.com/gordonklaus/portaudio: exec: "pkg-config": executable file not found in $PATH

解决办法

brew install pkg-config

问题2:

# github.com/gordonklaus/portaudio
# [pkg-config --cflags  -- portaudio-2.0]
Package portaudio-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `portaudio-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'portaudio-2.0' found

解决办法

brew install portaudio


评论