sphinx4

Keyword or keyphrase spotting with Sphinx4

夙愿已清 提交于 2020-01-11 03:41:07
问题 I am currently trying to make my java code (using eclipse) perform some function if a certain thing is said. I am using the Sphinx4 libraries and this is what I currently have: What I would like it to do is at the line where it says: IF (TRUE) someFunction(); is to run the function if my speech is Hello Computer, Hello Jarvis, Good Morning Computer, or Good Morning Jarvis. Or in other words, run the function if the speech matches the "public < greet >" line of code in the .gram file. Even

Disable console mess in CMUSphinx4

帅比萌擦擦* 提交于 2019-12-31 02:32:08
问题 I'm trying CMUSphinx but I'm having a hard time. I have included core and data jars to the project in Eclipse which I have downloaded from here I tried to do Live speech recognition as mentioned in the tutorial but when I try to run it, the console is filled with some kind of errors like The dictionary is missing a phonetic transcription for the word '....' and many. Code: import edu.cmu.sphinx.api.Configuration; import edu.cmu.sphinx.api.LiveSpeechRecognizer; import edu.cmu.sphinx.api

Not detecting alphanumeric input well - CMU Sphinx Java

淺唱寂寞╮ 提交于 2019-12-25 02:34:27
问题 I'm trying Sphinx to recognize alphanumeric input with the dialog (DialogDemo) as a start. I have a .gram file with: #JSGF V1.0; grammar dialog; <digit> = oh | zero | one | two | three | four | five | six | seven | eight | nine | a | b | c | d | e | f | g | h | i | j | k | j | l | m | n | o | p | q | r | s | t | u | v | w | x | y | z ; <number> = <digit>+ [point <digit>+]; <menu_command> = digits | [go to [the]] bank account | weather forecast | exit [[the] program] ; <bank_command> = [show |

Use multiple dictionaries for cmu sphinx

不羁岁月 提交于 2019-12-24 21:33:20
问题 For my project the default dictionary provided by the Sphinx is not sufficient. I need to use another custom dictionary along with the provided dictionary. Now my question is that is there any way of specifying multiple dictionary files to Sphinx or do I need to combine both the dictionaries into a single big dictionary file? Thanks in advance :) 回答1: You have to combine dictionaries into single one. 回答2: If you want multiple dictionaries with Sphinx, what I did was to make my program delete

Run sphinx4 recognizer in background with UI

元气小坏坏 提交于 2019-12-24 15:33:46
问题 I am trying to make my existing console based Java program which is a speech recognition project using sphinx, into a GUI based program. I tried altering the code, but the existing program does not run if I alter it. My existing code for recognition (full code) and it works perfectly without GUI: public class HelloWorld { /** * Main method for running the HelloWorld demo. */ static int i=1; static String resultText;public static void main(String[] args) { try { URL url; if (args.length > 0) {

CMU Sphinx4 - Custom Language Model

和自甴很熟 提交于 2019-12-24 11:27:30
问题 I have a very specific requirement. I am working on an application which will allow users to speak their employee number which is of the format HN56C12345 (any alphanumeric characters sequence) into the app. I have gone through the link: http://cmusphinx.sourceforge.net/wiki/tutoriallm but I am not sure if that would work for my usecase. So my question is three-folds : Can Sphinx4 actually recognize an alphanumeric sequence with high accuracy like an emp number in my case? If yes, can anyone

Speech recognition response is poor in sphinx4

怎甘沉沦 提交于 2019-12-18 12:42:02
问题 Currently we are investigating into using sphinx4 for speech recognition. We are trying to achieve a good response for a dictation type application. The input is a wav file and we wish to transcribe it. I have looked into the LatticeDemo and Transcriber demo provided by Sphinx4. When i utilize the same configuration , the response is pretty poor. I have tried to tweak in the configuration files but it simply does not recognize the words. the transcriber demo provided is for digits, i have

I want to use my own gram file or hello world demo updated gram file in Sphinx4

和自甴很熟 提交于 2019-12-13 08:08:15
问题 Actually hello world demo example has a few words but I want to add more words in it. Its seems possible to do either two ways. 1. Update the hello.gram file 2. create my own gram file. But the issue is that I'm unable to do either way. Can you please help me in it. Thanks for your time. Sorry for bad english. Here is my hello.gram file which I updated. I updated no other file. Please help me in this sort. hello.gram file #JSGF V1.0; /** * JSGF Grammar for Hello World example */ grammar hello

sphinx-4 aligner skips plain words like `you`, `in` and words with dashes - why?

安稳与你 提交于 2019-12-13 00:52:42
问题 I'm trying to align simple text. Here are the links to text and audio files: http://s000.tinyupload.com/?file_id=48044768133759453374 http://s000.tinyupload.com/?file_id=99891199139563396901 Here is the configuration settings: private static final String ACOUSTIC_MODEL_PATH = "resource:/edu/cmu/sphinx/models/en-us/en-us"; private static final String DICTIONARY_PATH = "resource:/edu/cmu/sphinx/models/en-us/cmudict-en-us.dict"; The output I get is the following (ellipsis are added by me): - ï -