pip3 install git+https://github.com/alphacep/vosk-api.git
If you see some missing modules, you can install them by hand
pip3 install <missing_module>
and try again.pip3 install git+https://github.com/alphacep/vosk-api.git
pip3 install <missing_module>
and try again.The source from Seeed isn't helpful?joerg wrote: ↑Sat Jan 09, 2021 2:24 amI have received the ReSpeaker 4-Mic Array now. But when I try to compile the driver I see that on kernel 3.10.107 it will not build. Need to install Armbian with mainline kernel on C1. But I have doubts about the stability and it won't work on eMMC, also usb is not working well.
It should run on the C1 I have in the living room that do all the nrf24 traffic for my alarm sensors. I would need to do long time stability tests with mainline kernel, that I have done already a year or two ago and I installed old kernel again.
Old kernel runs stable: wlan, usb, emmc...
But don't have snd_soc_dapm and not gpiod for AC108 driver.
Code: Select all
$ sudo apt-get update
$ sudo apt-get upgrade
$ git clone https://github.com/respeaker/seeed-voicecard.git
$ cd seeed-voicecard
$ sudo ./install.sh
$ reboot
IMO, for R&D the C1+ would be the best choice, followed by XU4, here's my reasoning:
Code: Select all
sudo pip3 install vosk-0.3.17-cp38-cp38-linux_armv7l.whl
Processing ./vosk-0.3.17-cp38-cp38-linux_armv7l.whl
Installing collected packages: vosk
Successfully installed vosk-0.3.17
Code: Select all
python3 --version
Python 3.8.5
Code: Select all
Welcome to Ubuntu 20.04 LTS (GNU/Linux 3.10.107-20 armv7l)
C4 is ARMv8, a minority, the C1 you currently have is a better choice imo.
Oh wow you got the PlayStation camera, it just plugs in and audio just works right?
vosk-model-small-de-zamia-0.3
.vosk-model-small-de-0.15.
it took only 20s and the words recognition was better but not perfect.Great, thats something. At least it works. If you share the sample audio I can take a look. In general ASR should be more accurate if you speak closer to the microphone.joerg wrote: ↑Mon Jan 11, 2021 3:08 amI have tried the test_simple.py of vosk and of some spoken words and counting from one to ten it has recognized the counting correct but the words not correct.
I have recorded in German a sample with the microphone of a webcam. Then I reduced the noise with audacity, the recognition was the same. I usedvosk-model-small-de-zamia-0.3
.
It took 32s for a sample of 22s.
[edit]
Withvosk-model-small-de-0.15.
it took only 20s and the words recognition was better but not perfect.
I think armv8 will be a majority very soon, and even more will have GPU onboard like Jetson nano/BananaPi. Which is best for AI applications.
I'm not so sure about that, the N2+ just came out, the XU4 is kind of the flagship SBC for Odroid, and for the others Hardkernal seems to keep stuff well beyond it's freshness date as long as the demand is there so it could be a while before the v7 is the Odroid minority.
I do not understand why it doesn't work for me.joerg wrote: ↑Mon Jan 11, 2021 12:39 amInstalled vosk-api without problems:Code: Select all
sudo pip3 install vosk-0.3.17-cp38-cp38-linux_armv7l.whl Processing ./vosk-0.3.17-cp38-cp38-linux_armv7l.whl Installing collected packages: vosk Successfully installed vosk-0.3.17
Code: Select all
python3 --version Python 3.8.5
Code: Select all
Welcome to Ubuntu 20.04 LTS (GNU/Linux 3.10.107-20 armv7l)
Code: Select all
root@odroid:~# pip3 install vosk-0.3.17-cp38-cp38-linux_armv7l.whl
WARNING: Requirement 'vosk-0.3.17-cp38-cp38-linux_armv7l.whl' looks like a filename, but the file dot
Processing ./vosk-0.3.17-cp38-cp38-linux_armv7l.whl
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: ''
Code: Select all
root@odroid:~# pip3 install https://github.com/alphacep/vosk-api/releases/download/0.3.7/vosk-0.3.7-cp37-cp37m-linux_aarch64.whl
ERROR: vosk-0.3.7-cp37-cp37m-linux_aarch64.whl is not a supported wheel on this platform.
root@odroid:~# python3 --version
Python 3.8.5
Code: Select all
pip3 install https://github.com/alphacep/vosk-api/releases/download/0.3.17/vosk-0.3.17-cp38-cp38-linux_armv7l.whl
Code: Select all
root@odroid:/vosk-api/python/example# python3 ./test_microphone.py
Traceback (most recent call last):
File "./test_microphone.py", line 6, in <module>
import sounddevice as sd
ModuleNotFoundError: No module named 'sounddevice'
pip3 install sounddevice
Thank you, I'll try that tomorrow.
Hey, you tried too big model, it doesn't fit your memory. Try smaller one:
nshmyrev wrote: ↑Mon Jan 11, 2021 5:27 pmHey, you tried too big model, it doesn't fit your memory. Try smaller one:
http://alphacephei.com/vosk/models/vosk ... s-0.15.zip
Yes, we use just 1 core because we want to keep space for other tasks. In the future we might implement multicore system, not implemented yet.
It should work more or less, the question is accuracy and features for practical applications. Like keyword spotting for activation.
That wasn't on my radar because my Candice AI does it's own keywords, but I'll study how to test it.
For c++ you have to compile it yourself. We will probably release precompiled version soon, but no deadlines. You need to try python, its really flexible for ai applications.
I figured there was a C++ header file somewhere?
Yes, you can include that header.L67GS wrote: ↑Tue Jan 12, 2021 5:23 amEdit: yeah there's a header file, so I thought all I had to do was start vosk and then #include it to use it, darn.
https://github.com/alphacep/vosk-api/bl ... vosk_api.h
Users browsing this forum: No registered users and 2 guests