Frequently Asked Question (FAQs)
This page contains frequently asked questions for sherpa-onnx.
在线、离线、流式、非流式的区别
此项目中,在线
等同于流式,离线
等同于非流式。
在线
即流式,是边说边识别;响应速度快、延迟小。
离线
即非流式,是把所有待识别的数据,一次性送给模型;特点是需要
等待所有的数据都到齐, 然后才能开始识别。
不管是 离线
还是 在线
, 我们这个项目,都不需要访问网络,都可以在本地
处理;即使断网,也能正常工作。
TTS 中文模型没有声音
Please see How to enable UTF-8 on Windows.
You need to use UTF-8
encoding for your system.
./gitcompile: line 89: libtoolize: command not found
If you are using Linux and get the following error:
./gitcompile: line 89: libtoolize: command not found
Please run:
sudo apt-get install libtool
OSError: PortAudio library not found
If you have the following error on Linux (Ubuntu),
Traceback (most recent call last):
File "/mnt/sdb/shared/sherpa-onnx/./python-api-examples/vad-microphone.py", line 8, in <module>
import sounddevice as sd
File "/mnt/sdb/shared/py311/lib/python3.11/site-packages/sounddevice.py", line 71, in <module>
raise OSError('PortAudio library not found')
OSError: PortAudio library not found
Then please run:
sudo apt-get install libportaudio2
and then re-try.