cmusphinx

How can we convert .wav file to text by using pocketsphinx?

此生再无相见时 提交于 2019-12-06 07:49:45
问题 I installed pocketsphinx in my Linux machine correctly, and now I want to convert an audio file (.wave) to text by using pocketsphinx,how can i do that? is there any clear command and short command to do that? somthing like this command: ./src/programs/pocketsphinx_continuous -samprate 8000 -nfft 2048 -adcdev hw:1,0 -lm 2530.lm -dict 2530.dic myvoice.wav and also how can I do that with using python? Thanks in advance. 回答1: I find my answer, pocketsphinx with version 0.8 has an option that can

How do you retrieve tags from JSGF grammars using sphinx?

风格不统一 提交于 2019-12-06 06:14:45
I have written an application in Java that utlizes the CloudGarden API to parse JSAPI grammars, return tags from the grammar rules and then process these tags accordingly. The issue with the CloudGarden API is its dependency on Windows. I need a cross-platform library that can perform the same task. I do not need speech synthesis nor do I need speech recognition. Essentially a string is passed to the program containing some transcribed speech. I need to parse this string against my grammar files to retrieve the action tags (the text between { } in a JSGF grammar rule). My program then uses the

How to use CMU Sphinx speech recognition with Ruby application?

时光总嘲笑我的痴心妄想 提交于 2019-12-06 01:35:43
问题 I'm searching for how to use CMU Sphinx with Ruby (Rails) application. I need very simple task - I have an mp3 file and I want get it transcribed into text. How can I implement this easiest way? I dont' know C/C++ and my task isn't so big to learn C/C++ for it :) Thanks for help! 回答1: CMUSphinx provides several interfaces you can use to leverage speech recognition features. Some of them might be more suitable for you, some less: Use command-line tools and execute them as an external binaries

Integration of Pocketsphinx Android with Phonegap app

随声附和 提交于 2019-12-05 19:36:21
I'm trying to integrate the Sphinx with my Phonegap app, and following the pocketsphinx-android-demo, but getting the RuntimeException when startup, here is the details: E/OADemo (15835): java.lang.RuntimeException: Decoder_setSearch returned -1 E/OADemo (15835): at edu.cmu.pocketsphinx.PocketSphinxJNI.Decoder_setSearch(Native Method) E/OADemo (15835): at edu.cmu.pocketsphinx.Decoder.setSearch(Unknown Source) E/OADemo (15835): at edu.cmu.pocketsphinx.SpeechRecognizer.startListening(Unknown Source) E/OADemo (15835): at cn.fsll.oademo.OADemo.switchSearch(OADemo.java:103) E/OADemo (15835): at cn

CMUSphinx live speech recognition too slow?

淺唱寂寞╮ 提交于 2019-12-05 18:56:07
CMU Sphinix is toooo Slow for recognizing live speech.I don't know if you have any idea for boost it? This is my configuration: configuration.setAcousticModelPath("WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz"); configuration.setDictionaryPath("cmudict.0.6d"); configuration.setLanguageModelPath("en-us.lm.dmp"); We are currently working on speedup, but for now sphinx4 is not realtime for large vocabulary. It's actually not a trivial task. If you want a fast and not very accurate transcription you can edit default.config.xml in sphinx4 sources and recompile: <property name="absoluteBeamWidth" value=

can i use google speech recognition api in my desktop application

与世无争的帅哥 提交于 2019-12-05 04:02:40
问题 I want to know whether i can use speech recognition api of google for my desktop application. I have seen some example in which i have to convert the speech to a file and send to a url. But it will be little cumbersome task because in my application the user have to continuously submit his voice. So is there any other alternative to use google speech api. I am least interested to go with sphinx because its accuracy is very less and i dont know how to add new words in the dictionary and

How do I turn off E_INFO in pocketsphinx?

烈酒焚心 提交于 2019-12-04 17:56:15
问题 E_INFO is printing a bunch of logs. I don't know how I can turn that off. I searched E_INFO from all source files in pocket/base sphinx but I was not able to find where it set up the flag. 回答1: Configuration option -logfn /dev/null Windows -logfn nul turns off logging. If you are using API you can also use err_set_logfile(char *filename) 回答2: If you are using the API, this is what I did: // turn off pocketsphinx output err_set_logfp(NULL); err_set_debug_level(0); The API given by the accepted

Speech to text for single word

假如想象 提交于 2019-12-04 16:51:47
I want to create a automatic speech recognition system that will identify a correct word from a list of words in the database. I have seen CMUSphinx can be used for this problem. I have tried the hello world sphinx demo app, but it gives not expected results. I don't know how to choose the correct acoustic model, dictionary file, language model. For a single word is the language model necessary? Is there any prebuilt acoustic model for Indian English? I have tried the hello world sphinx demo app, but it gives not expected results. You need to provide more details on what have your tried.

How to Reduce Noise in Sphinx4 application

╄→尐↘猪︶ㄣ 提交于 2019-12-04 06:00:50
问题 I am new to sphinx4 and speech recognition thing. I am creating a speech application by using sphinx4. The issue is noise, which results in recognition by program even without speech input by user ie it is converting speech to text even when there is no speech input by user, thus affecting accuracy. Main issue is how to implement noise reduction. This is because the system detects input even when I dont speak anything into the microphone. So I guess its because of noise. I checked online for

How to use CMU Sphinx speech recognition with Ruby application?

拟墨画扇 提交于 2019-12-04 04:51:12
I'm searching for how to use CMU Sphinx with Ruby (Rails) application. I need very simple task - I have an mp3 file and I want get it transcribed into text. How can I implement this easiest way? I dont' know C/C++ and my task isn't so big to learn C/C++ for it :) Thanks for help! Nikolay Shmyrev CMUSphinx provides several interfaces you can use to leverage speech recognition features. Some of them might be more suitable for you, some less: Use command-line tools and execute them as an external binaries from Rails application to obtain the required results. The tool to execute is pocketsphinx