-2

i am making a speech to text application using sphinx But the location of the grammar file in the config.xml is not correct or i am not getting the right path.

<!-- ******************************************************** -->
    <!-- The Grammar  configuration                               -->
    <!-- ******************************************************** -->

    <component name="jsgfGrammar" type="edu.cmu.sphinx.jsapi.JSGFGrammar">
        <property name="dictionary" value="dictionary"/>
        <property name="grammarLocation" 
             value="resource:/com/stt/project/" />
        <property name="grammarName" value="Grammer"/>
    <property name="logMath" value="logMath"/>
    </component>

The structure of the files are in the image here : File Hiererchy of the project

This problem has been resolved by using the cmusphinx api

Sujan Gainju
  • 4,273
  • 2
  • 14
  • 34

2 Answers2

1

You might want to pick one of the implementations?

Update based on discussion: You can look at Sphinks4 for Speech-to-text as it seems all the implementations at the moment are for the other way around.

István Rábel
  • 462
  • 4
  • 13
  • That means javax.speech is no longer available? – Sujan Gainju Feb 09 '17 at 08:38
  • 1
    Nope, it means it is an API. That is just a specification, and various teams made various implementations for that. See the linked page for "The Java Speech API (JSAPI) is not part of the JDK and Sun does not ship an implementation of JSAPI." – István Rábel Feb 09 '17 at 08:43
  • i have checked the site but i think all of the implementations are for the TEXT-TO-SPEECH but i need speech to text – Sujan Gainju Feb 09 '17 at 08:52
  • Hmm, thats quite possible. Since the JSAPI looks pretty abandoned anyway, maybe you can look at http://cmusphinx.sourceforge.net/wiki/tutorialsphinx4 for a more recent and maintained library. Never tried myself, it just looks newer. – István Rábel Feb 09 '17 at 11:14
0

You can look at CMUSphinks api for Speech-to-text as it seems all the implementations at the moment are for the other way around.

Suraj Libi
  • 515
  • 2
  • 9