#Speech recognition Library

18 messages · Page 1 of 1 (latest)

vale stirrup
#

I want to make a program in which the program accepts users voice and performs tasks accordingly and I just don't know which library to use I guess sphinx will work out but I need some assistance.

chilly orchidBOT
#

⌛ This post has been reserved for your question.

Hey @vale stirrup! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

wild eagle
#

what exactly do you need assistance with?

#

even has a code demo:

public class TranscriberDemo {       

    public static void main(String[] args) throws Exception {

        Configuration configuration = new Configuration();

        configuration.setAcousticModelPath("resource:/edu/cmu/sphinx/models/en-us/en-us");
        configuration.setDictionaryPath("resource:/edu/cmu/sphinx/models/en-us/cmudict-en-us.dict");
        configuration.setLanguageModelPath("resource:/edu/cmu/sphinx/models/en-us/en-us.lm.bin");

    StreamSpeechRecognizer recognizer = new StreamSpeechRecognizer(configuration);
    InputStream stream = new FileInputStream(new File("test.wav"));

        recognizer.startRecognition(stream);
    SpeechResult result;
        while ((result = recognizer.getResult()) != null) {
        System.out.format("Hypothesis: %s\n", result.getHypothesis());
    }
    recognizer.stopRecognition();
    }
}```
chilly orchidBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.

chilly orchidBOT
# vale stirrup Ohkie thanks

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.

vale stirrup
#

My bad

#

Should I use gradle or maven or it's jar?

wild eagle
#

I'd always use a package manager

#

But choosing between maven / gradle is preference

#

I'd personally always use maven when possible

chilly orchidBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.

vale stirrup
chilly orchidBOT
# vale stirrup Ohk thanks alot

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.