Giter Site home page Giter Site logo

java-speech-recognizer-tutorial--calculator's Introduction

AlexKent Support me joining PI Network app with invitation code AlexKent AlexKent


Java Google Speech Api ( Library )

🎤

Java + Sphinx 5 Tutorials


HitCount Patreon donate button PayPal donate button

Before you start with anything watch these videos , hey i see you don't cheat :)

About CMU Sphinx5 Full NetBeans Tutorial
First Second

Also visit this repository -> https://github.com/goxr3plus/sphinx-5-Maven-Example


PS Java 1.8.0_64 ++ Required ! Download Java 8 here : ( https://www.java.com/en/ )

Announcement , Now i more focused on Google Speech Recognition : github repository here

In case you want to parse Sphinx4-5 Grammar Files check this Library : JSFG-Grammar-Rules-Parser-Library-for-Sphinx4-5

Java-Speech-Recognizer-Tutorial--Calculator

Follow this awesome tutorials to learn how to implement a speech recognizer in Java step by step using Sphinx4-5.

------------------------ FOLDERS EXPLANATION ------------------------

------> All the libraries you need in order to run your programs are in the folder

  • for tutorials 3 and 4 some extra libraries here

------>Calculator Program Tutorials

  • Folder Name : Tutorial1

This folder contains the first basic tutorial which contains a general class on how to use Sphinx4 . As simple as it .

Java Speech Recognition

Update for Tutorial 1 September 2017 with Github Packages Java Speech Recognition

  • Folder Name : Tutorial2

This folder contains the first code for making the Speech Calculator vary basic.

  • Folder Name : Tutorial3

Continuation of the calculator program.

  • Folder Name : Tutorial4

Final part of the calculator program.

------>Using different Languages (Hindi , German , Italian etc)

--Example below--

  • Folder Name : Tutorial 1.1 Hindi LanguageTutorial

Contains Tutorial1 folder code , and packages for Hindi Language Speech Recognition

  • The same with the other folders starting with Tutorial 1.1 ....blah

Java Speech Recognition

------>Speech Recognition + JavaFX

  • Folder Name : !!New Specific Tutorial For JavaFX!!

This folder contains the same code as Tutorial1 + it is a JavaFX Application with User Interface .

Youtube Tutorial for JavaFX Speech Recognition Program + Sphinx4-5

Java Speech Recognition


Finally

Java Speech Recognition Java Speech Recognition

java-speech-recognizer-tutorial--calculator's People

Contributors

goxr3plus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

java-speech-recognizer-tutorial--calculator's Issues

Can't find pronunciation

Thanks for your sharings and beautiful code. But I hada issue when I tried to run my project. It says "Can't find pronunciation for X"
My grammar file is like:
`#JSGF V1.0;

grammar hello;

public = (zero | one | two | three | four | five | six | seven | eight | nine | ten );
`
I would be very happy if someoneone could help me with that.

please house I need help creating a playfair Cipher of 17 x 17

Encryption Process for 8bit Characters
Step1: Obtain the plaintext PT and ordered by the password PW from the user.
Step2:Convert the password PW into hexadecimal
Step3: Create a 16x16 matrix using the converted password PW after suppressing repeatable byte: This is accomplished by filling the matrix in a row-wise manner from top to bottom until the password PW is exhausted then continuing with the remaining alphabets of the extended ASCII in ascending order and shuffle the entire matrix once. Increase the size of the matrix to 17x17 with the first row and column keys (A-F and 0-9).
Step4: Divide the plaintext PT into pairs if the length is odd add a null character at the end
Step5: Convert the pair into their hexadecimal equivalent
Step6 a: Get the current pair of the plaintext P
b. swap the high-order nibble of the first character with the low-order nibble of the second character and vice versa
c. Is there anymore pair? If yes go to (a) else go to (d)
d. This gives a modified plaintext P1
Step7 a. Apply substitution encryption algorithm on the current pair of character of the modified plaintext P1
b. Shift the character of the key row to the left once
c. are the row keys in their initial position? If yes go to (c) else go to (d)
d. shift the column character key upward once
e. Is there anymore pair of character? If yes go to (a) else stop this gives a hexadecimal ciphertext
f. Convert the current 2 byte of hexadecimal into its Unicode equivalent
g. Is there anymore 2 byte? If yes go to (e) else stop this gives a ciphertext C

Decryption Process 8bit Characters
Decryption process is carried out by following the steps below:
Step1: Obtain the password PW and ciphertext C from the user
Step2:Convert the password PW into hexadecimal
Step3:Create a 16x16 matrix using the converted password PW after suppressing repeatable byte: This is accomplished by filling the matrix in a row-wise manner from top to bottom until the password PW is exhausted then continuing with the remaining alphabets of the extended ASCII in ascending order and shuffle the entire matrix once. Increase the size of the matrix to 17x17 with the first row and column to be the keys(A-F and 09).
Step4a: Get the ciphertext C and convert it into its hexadecimal equivalent.
Step5. Getthe current pair and locate it in the 17x17 matrix and obtain the row and column key alphabet/number respectively that intercept the pair.
b. Is there anymore pair? If yes go to (a) else go to (c)
c. This gives a modified hexadecimal plaintext P1
Step4 a: Get the current pair of the hexadecimal plaintext P1
b. Swap the high-order nibble of the first character with the low-order nibble of the second character and vice versa.
c. Is there anymore pair? If yes go to (a) else go to (d)
d. This gives a modified hexadecimal plaintext P2
Step5 a: Convert the current pair of the modified hexadecimal plaintext P2 to give a character equivalent.
b. Is there anymore pair? If yes go to (a) else go to (c)
c. Stop this gives back the original plaintext characters.

Eclipse marks Code error

Hello,

I've tried your first Tutorial Step and i can't run the Code because an Semikolon, Komma,... is not correct set. What can i do?

Here a Screenshot:
bildschirmfoto 2018-01-09 20 58 49

Configuration class not found error in Eclipse

Hi Alex i followed the tutorial 1 exactly as guided in the youtube video. the build is successful without errors. But when i run the Main java file it gives me the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: edu/cmu/sphinx/api/Configuration
at model.SpeechRecognizerMain.main(SpeechRecognizerMain.java:15)
Caused by: java.lang.ClassNotFoundException: edu.cmu.sphinx.api.Configuration
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 1 more

Please guide.

Thanks in advance.

increase accuracy speech

sometimes when i say "three", it returns "eight", how do i increase the accuracy speech? i think its because of sampling rate, having a bad microphone or something…

error

please help
i use windows 10
screenshot 147
screenshot 148
screenshot 149

help

Java.lang.Error in mkaing object Message and Time

Dear All,
I wrote the following code and ended up with below mentioned error:**
Please suggest some solution.

import java.io.*;
import java.util.Collections;
import java.util.List;
import java.util.ArrayList;
import java.util.Scanner;
import java.util.Timer;

public class Bin_search
{
public static void main(String args[])
{
Bin_search b=new Bin_search();

	System.out.println("Enter the String");
	Scanner input=new Scanner(System.in);
	String msg=input.nextLine();
	System.out.println(msg);
	
	Message messageObject=new Message();
	Time timeObject=new Time();
	
	messageObject.simpleMessage(message);
    timeObject.getTime();
    
    System.out.println(msg + time);
}      

}

Error:
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Message cannot be resolved to a type
Message cannot be resolved to a type
Time cannot be resolved to a type
Time cannot be resolved to a type
message cannot be resolved to a variable
time cannot be resolved to a variable

Error while running the code.Please resolve asap.

I am getting an error when compiling the code SpeechRecogonizerMain.java
Can you please resolve this for me
Sep 17, 2017 10:25:58 AM model.SpeechRecognizerMain
INFO: Loading Speech Recognizer...

10:26:02.393 INFO unitManager CI Unit: *+NSN+
10:26:02.414 INFO unitManager CI Unit: *+SPN+
10:26:02.414 INFO unitManager CI Unit: AA
10:26:02.414 INFO unitManager CI Unit: AE
10:26:02.414 INFO unitManager CI Unit: AH
10:26:02.414 INFO unitManager CI Unit: AO
10:26:02.414 INFO unitManager CI Unit: AW
10:26:02.414 INFO unitManager CI Unit: AY
10:26:02.414 INFO unitManager CI Unit: B
10:26:02.414 INFO unitManager CI Unit: CH
10:26:02.414 INFO unitManager CI Unit: D
10:26:02.414 INFO unitManager CI Unit: DH
10:26:02.418 INFO unitManager CI Unit: EH
10:26:02.418 INFO unitManager CI Unit: ER
10:26:02.418 INFO unitManager CI Unit: EY
10:26:02.418 INFO unitManager CI Unit: F
10:26:02.418 INFO unitManager CI Unit: G
10:26:02.418 INFO unitManager CI Unit: HH
10:26:02.418 INFO unitManager CI Unit: IH
10:26:02.418 INFO unitManager CI Unit: IY
10:26:02.418 INFO unitManager CI Unit: JH
10:26:02.418 INFO unitManager CI Unit: K
10:26:02.418 INFO unitManager CI Unit: L
10:26:02.418 INFO unitManager CI Unit: M
10:26:02.422 INFO unitManager CI Unit: N
10:26:02.422 INFO unitManager CI Unit: NG
10:26:02.422 INFO unitManager CI Unit: OW
10:26:02.422 INFO unitManager CI Unit: OY
10:26:02.422 INFO unitManager CI Unit: P
10:26:02.422 INFO unitManager CI Unit: R
10:26:02.422 INFO unitManager CI Unit: S
10:26:02.422 INFO unitManager CI Unit: SH
10:26:02.422 INFO unitManager CI Unit: T
10:26:02.422 INFO unitManager CI Unit: TH
10:26:02.422 INFO unitManager CI Unit: UH
10:26:02.422 INFO unitManager CI Unit: UW
10:26:02.422 INFO unitManager CI Unit: V
10:26:02.422 INFO unitManager CI Unit: W
10:26:02.426 INFO unitManager CI Unit: Y
10:26:02.426 INFO unitManager CI Unit: Z
10:26:02.426 INFO unitManager CI Unit: ZH
10:26:04.391 INFO autoCepstrum Cepstrum component auto-configured as follows: autoCepstrum {MelFrequencyFilterBank, Denoise, DiscreteCosineTransform2, Lifter}
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Syntax error on tokens, delete these tokens
Syntax error on token(s), misplaced construct(s)
Syntax error on token ")", delete this token

at model.SpeechRecognizerMain.startResourcesThread(SpeechRecognizerMain.java:202)
at model.SpeechRecognizerMain.<init>(SpeechRecognizerMain.java:103)
at model.SpeechRecognizerMain.main(SpeechRecognizerMain.java:251)

Following error is occurring.. how to resolve

Jan 18, 2017 5:24:41 PM model.Main
INFO: Loading..

Exception in thread "main" Property exception component:'jsgfGrammar' property:'grammarLocation' - Can't locate resource:/grammars
edu.cmu.sphinx.util.props.InternalConfigurationException: Can't locate resource:/grammars
at edu.cmu.sphinx.util.props.ConfigurationManagerUtils.getResource(ConfigurationManagerUtils.java:468)
at edu.cmu.sphinx.jsgf.JSGFGrammar.newProperties(JSGFGrammar.java:228)
at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:518)
at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:296)
at edu.cmu.sphinx.linguist.flat.FlatLinguist.newProperties(FlatLinguist.java:222)
at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:518)
at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:296)
at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.newProperties(SimpleBreadthFirstSearchManager.java:177)
at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:518)
at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:296)
at edu.cmu.sphinx.decoder.AbstractDecoder.newProperties(AbstractDecoder.java:81)
at edu.cmu.sphinx.decoder.Decoder.newProperties(Decoder.java:36)
at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:518)
at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:296)
at edu.cmu.sphinx.recognizer.Recognizer.newProperties(Recognizer.java:86)
at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:518)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:163)
at edu.cmu.sphinx.api.Context.(Context.java:73)
at edu.cmu.sphinx.api.Context.(Context.java:45)
at edu.cmu.sphinx.api.AbstractSpeechRecognizer.(AbstractSpeechRecognizer.java:44)
at edu.cmu.sphinx.api.LiveSpeechRecognizer.(LiveSpeechRecognizer.java:34)
at model.Main.(Main.java:55)
at model.Main.main(Main.java:165)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.