cmusphinx | CMU Sphinx - Speech Recognition Toolkit | Speech library
kandi X-RAY | cmusphinx Summary
kandi X-RAY | cmusphinx Summary
CMU Sphinx - Speech Recognition Toolkit
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of cmusphinx
cmusphinx Key Features
cmusphinx Examples and Code Snippets
Community Discussions
Trending Discussions on cmusphinx
QUESTION
I am trying to run the following python program but i am getting some errors. The program is intended to convert livespeech to text and it is using an acoustic model which I have trained using CMUSphinx.
The code:
...ANSWER
Answered 2021-Mar-09 at 20:58Your error message indicates that it is using a pyaudio installed in python2.7, but your error message at the bottom is referencing a pyaudio in python3. Try using python3 explicitly to call the program. You can ensure that by doing the following:
- Change the shebang line at the top of the file to tell the shell what to use to execute the script:
QUESTION
I am trying to use LiveSpeech with my model and dictionary which I have trained:
...ANSWER
Answered 2021-Mar-09 at 08:16I had an old version of pocketsphinx. Make sure to have the latest installed.
QUESTION
I am trying to train an acoustic model for CMUSphinx following the tutorial here.
So when i am training with the command sphinxtrain run
, I am getting the following problems:
ANSWER
Answered 2021-Feb-19 at 14:47I solved this problem by specifying the full path of sphinx_train.cfg
.
This is the line I edit in slave_feat.pl at line 50.
QUESTION
I need to use a C library and I got it to work on the emulator easily, but on an arm64 device only with some strange trickery. The issue is that C functions with … (variadic functions) do not pass values correctly from C# to the library.
This is the C function, with ...
...ANSWER
Answered 2020-Dec-18 at 07:52It seems to be expected behavior for arm64 architecture, because of the way arm64 functions are invoked.
Invoking functions in a arm64 library that use ...) at the end, you have to take into account that the first 8 argument spots are for 'normal' arguments, then optionally the variable/params can start.
So, in my example I used 5 NULL values to fill the first 8 argument spots, then start the values for the ...)
See full answer: https://github.com/xamarin/xamarin-macios/issues/10285
QUESTION
I'm am trying to build my own voice assistant, but the only problem I have run into so far is installing pocketsphinx. I need to use it on python3, but
...ANSWER
Answered 2020-Dec-06 at 18:25I found some commands that worked for installation:
QUESTION
I want develop application that whenever it recognizes a keyword it does something. it needs to be in listening mode all the time, in backgeound too. I was exposed to this and this. I treid run it but it is not work when I am speaking. actually I read it still doesn't support my native language. is that the reason? I want to know how it works? does it is doing speach to text and saved it in assets files? does it is run in background? does it is used AI models? how it behaves when two apps need mic resource in parallel? noises? does it is work with Neural Networks API? how can I start developing such a thing?
thanks!
...ANSWER
Answered 2020-Sep-13 at 10:04It is great you tried Vosk offline speech recognition on Android, here are some answers to your questions:
actually I read it still doesn't support my native language.
If you are about Hebrew, we might support it in the future, and you can build it yourself.
is that the reason?
You didn't provide enough information to answer this, please explain a bit more what is "it is not work"
I want to know how it works?
Extensive documentation on speech recognition is available on lectures, courses and books. You can find some introduction here for example: https://www.youtube.com/watch?v=q67z7PTGRi8
does it is doing speech to text and saved it in assets files?
It does speech to text, but it doesn't save results into assets, it just displays them. You can not modify assets, they are static.
does it is run in background?
Yes
does it is used AI models?
Sure
how it behaves when two apps need mic resource in parallel?
In android it is not possible to record audio from two apps in parallel, second one will be blocked.
noises?
It is robust to noises.
does it is work with Neural Networks API?
No, it is portable
how can I start developing such a thing?
Get some basic understanding and start writing the code. If you have further questions you can ask them in the Telegram chat
QUESTION
I wanted to test out Pocketsphinx in Node.JS. It says I need to install Swig version 3.0.7 or above.
I think I installed all the other dependencies correctly. I can even type Swig commands in the Terminal now, but I keep getting this error whenever I run npm install pocketsphinx
:
ANSWER
Answered 2018-Jan-23 at 09:21Check the source code for the FindSwig.cmake
.
Unfortunately, if a find script does not work as expected and you do not see right away why that is the case, you usually have to dig into its source. In your case, it looks like CMake was able to find and run the SWIG executable, but then failed to obtain the swig directory.
Try manually running swig -swiglib
and check that the printed directory indeed contains a swig.swg
file. Also, be sure that the swig executable found by CMake is actually the correct one (you can verify this by inspecting the value of SWIG_EXECUTABLE
in either the cmake-gui
, the ccmake
curses interface, or in the CMakeCache.txt
file directly).
Note that CMake will not update the executable path once it has been found! So if you make changes to your system that influence the executable location, you will have to clear the cache (eg. by deleting the CMakeCache.txt
) and re-run CMake for the changes to take effect.
QUESTION
I'm using sphinx to build my own model for vocal recognition , i've followed the tutorial step by step and all works fine until that point when i should run the python script of sphinixtrain (whose role is to execute a set of perl files throw terminal in normal case) but for me, the program only opens the files one by one with a chosen editor without executing them !(watching other tutorials videos, the code bellow works normal)
The code of trainer :
...ANSWER
Answered 2020-May-13 at 07:49Solved by associating perl files ( with pl extension) to perl.exe
QUESTION
I'm trying to train a new accoustic model for speechrecognition, with custom features. Is it possible to feed the feature matrix instead of wav file into CMUSphinx for training? I have tried searching on google and the tutorial page and can't find any information about it. Am i missing something?
...ANSWER
Answered 2020-Apr-22 at 10:07Is it possible to feed the feature matrix instead of wav file into CMUSphinx for training?
It is better to train with more modern toolkit like Kaldi.
I have tried searching on google and the tutorial page and can't find any information about it. Am i missing something?
You just prepare mfc files yourself and skip first feature_extraction step. You have to write code for that like described here:
https://cmusphinx.github.io/wiki/mfcformat/
In kaldi you just prepare ark files yourself:
QUESTION
I am trying to install pocketsphinx on Windows 10. I have downloaded pocketsphinx and sphinxbase, built them both, and put sphinxbase.dll into the pocketsphinx bin. However when I copy and paste the command
bin\Debug\Win32\pocketsphinx_continuous.exe -inmic yes -hmm model\en-us\en-us -lm model\en-us\en-us.lm.bin -dict model\en-us\cmudict-en-us.dict
into the command prompt (following the CMU Sphinx directions per https://cmusphinx.github.io/wiki/tutorialpocketsphinx/#windows) the last few lines of output look like this:
...ANSWER
Answered 2020-Mar-31 at 21:30If anyone else runs into this problem, check the Visual Studio Runtime Library property is set to Multi-threaded DLL (/MD), especially if you are running a newer version of Visual Studio. To check this, in Visual Studio go to:
Project -> Properties -> C/C++ -> Code Generation -> Runtime Library
to verify/change this setting. You may have to redownload sphinxbase and pocketsphinx before doing this. Build the .sln only after changing this setting.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cmusphinx
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page