用c语言在Windows10环境下安装voskapi



我阅读了文档https://github.com/alphacep/vosk-api但是安装vosk api的先决条件是在Linux环境和python中,如下所示

cd csharp && KALDI_ROOT=<KALDI_ROOT> make
wget https://alphacephei.com/kaldi/models/vosk-model-small-en-us-0.4.zip
unzip vosk-model-small-en-us-0.4.zip
mv vosk-model-small-en-us-0.4 model
mono test.exe

如果我想在Windows 10环境和C#编程语言中运行vosk api的先决条件,我不知道它是如何运行的,我的意思是我如何运行C#示例https://github.com/alphacep/vosk-api/blob/master/csharp/test.cs在Windows 10环境中。

这不是你想要的,但我只是试着在ubuntu 18.04 LTS上安装它,希望它能帮助其他

1. Make sure python is 3.x
2. Make sure pip3 is pip-20.x.x: 
-check version: pip3 -V (if it returns: pip 9.0.1)
-upgrade it like so: pip3 install --upgrade pip
(now pip version shall read pip-20.3.3 or newer)
3. Now it ready to install vosk: pip3 install vosk 
(with no problem)

Windows安装需要python 3.8和64位:

Python installation from Pypi
The easiest way to install vosk api is with pip. You do not have to compile anything.
We currently support the following platforms:
Linux on x86_64
Raspbian on Raspberry Pi
Linux on arm64
OSX
Windows
Make sure you have up-to-date pip and python3 versions, see detailed requirement below:
Python version: 3.5-3.8 (Linux), 3.6-3.7 (ARM), 3.8-3.9 (OSX), 3.8-64bit (Windows)
pip version: 19.0 and newer.

相关内容

  • 没有找到相关文章

最新更新