File tree Expand file tree Collapse file tree
src/com/darkprograms/speech Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,5 +18,6 @@ The following people/organizations have helped provide functionality for the API
1818* Princeton University
1919 * The implemented FFT algorithm is derived from one on the university's website.
2020 * Homepage: http://www.princeton.edu
21+
2122We would like to thank the above so much for your work, this wrapper/API could not have been
2223created without it.
Original file line number Diff line number Diff line change 11#J.A.R.V.I.S. (Java-Speech-API)
22
3- J.A.R.V.I.S. Speech API: Just A Reliable Vocal Interpreter & Synthesizer.
3+ J.A.R.V.I.S. Java Speech API: Just A Reliable Vocal Interpreter & Synthesizer.
44This is a project for the Java Speech API. The program interprets vocal inputs into text and synthesizes voices from text input.
55The program supports dozens of languages and even has the ability to auto-detect languages!
66
Original file line number Diff line number Diff line change 44
55import java .io .File ;
66
7- /**
7+ /***************************************************************************
88 * Microphone class that contains methods to capture audio from microphone
99 *
1010 * @author Luke Kuza, Aaron Gokaslan
11- */
11+ *************************************************************************** /
1212public class Microphone {
1313
1414 /**
Original file line number Diff line number Diff line change 33import javax .sound .sampled .AudioFileFormat ;
44import com .darkprograms .speech .utility .*;
55
6- /**
6+ /********************************************************************************************
77 * Microphone Analyzer class, detects pitch and volume while extending the microphone class.
88 * Implemented as a precursor to a Voice Activity Detection (VAD) algorithm.
99 * Currently can be used for audio data analysis.
1010 * Dependencies: FFT.java & Complex.java. Both found in the utility package.
11- */
11+ * @author Aaron Gokaslan
12+ ********************************************************************************************/
1213
1314public class MicrophoneAnalyzer extends Microphone {
1415
@@ -111,7 +112,7 @@ private byte[] getBytes(int numOfBytes){
111112 */
112113 public int getFrequency (){
113114 try {
114- return getFrequency (1024 );
115+ return getFrequency (2048 );
115116 } catch (Exception e ) {
116117 //This will never happen. Ever...
117118 return -666 ;
Original file line number Diff line number Diff line change 1111import java .nio .ByteBuffer ;
1212import java .nio .ByteOrder ;
1313
14- /**
14+ /*************************************************************************************************************
1515 * Class that contains methods to encode Wave files to FLAC files
1616 * THIS IS THANKS TO THE javaFlacEncoder Project created here: http://sourceforge.net/projects/javaflacencoder/
17- */
17+ ************************************************************************************************************ /
1818public class FlacEncoder {
1919
2020 /**
Original file line number Diff line number Diff line change 33import java .util .ArrayList ;
44import java .util .List ;
55
6- /**
6+ /******************************************************************************
77 * Class that holds the response and confidence of a Google recognizer request
88 *
99 * @author Luke Kuza, Duncan Jauncey, Aaron Gokaslan
10- */
10+ ****************************************************************************** /
1111public class GoogleResponse {
1212
1313 /**
Original file line number Diff line number Diff line change 44import java .net .URL ;
55import java .net .URLConnection ;
66
7- /**
7+ /***************************************************************
88 * Class that submits FLAC audio and retrieves recognized text
99 *
1010 * @author Luke Kuza, Duncan Jauncey, Aaron Gokaslan
11- */
11+ ************************************************************** /
1212public class Recognizer {
1313
1414 public enum Languages {
Original file line number Diff line number Diff line change 99import java .util .List ;
1010
1111
12- /**
12+
13+ /*******************************************************************************
1314 * Synthesiser class that connects to Google's unoffical API to retrieve data
1415 *
1516 * @author Luke Kuza, Aaron Gokaslan (Skylion)
16- */
17+ ******************************************************************************* /
1718public class Synthesiser {
1819
1920 /**
You can’t perform that action at this time.
0 commit comments