File tree 8 files changed +17
-14
lines changed
src/com/darkprograms/speech
8 files changed +17
-14
lines changed 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
18
18
* Princeton University
19
19
* The implemented FFT algorithm is derived from one on the university's website.
20
20
* Homepage: http://www.princeton.edu
21
+
21
22
We would like to thank the above so much for your work, this wrapper/API could not have been
22
23
created without it.
Original file line number Diff line number Diff line change 1
1
#J.A.R.V.I.S. (Java-Speech-API)
2
2
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.
4
4
This is a project for the Java Speech API. The program interprets vocal inputs into text and synthesizes voices from text input.
5
5
The program supports dozens of languages and even has the ability to auto-detect languages!
6
6
Original file line number Diff line number Diff line change 4
4
5
5
import java .io .File ;
6
6
7
- /**
7
+ /***************************************************************************
8
8
* Microphone class that contains methods to capture audio from microphone
9
9
*
10
10
* @author Luke Kuza, Aaron Gokaslan
11
- */
11
+ *************************************************************************** /
12
12
public class Microphone {
13
13
14
14
/**
Original file line number Diff line number Diff line change 3
3
import javax .sound .sampled .AudioFileFormat ;
4
4
import com .darkprograms .speech .utility .*;
5
5
6
- /**
6
+ /********************************************************************************************
7
7
* Microphone Analyzer class, detects pitch and volume while extending the microphone class.
8
8
* Implemented as a precursor to a Voice Activity Detection (VAD) algorithm.
9
9
* Currently can be used for audio data analysis.
10
10
* Dependencies: FFT.java & Complex.java. Both found in the utility package.
11
- */
11
+ * @author Aaron Gokaslan
12
+ ********************************************************************************************/
12
13
13
14
public class MicrophoneAnalyzer extends Microphone {
14
15
@@ -111,7 +112,7 @@ private byte[] getBytes(int numOfBytes){
111
112
*/
112
113
public int getFrequency (){
113
114
try {
114
- return getFrequency (1024 );
115
+ return getFrequency (2048 );
115
116
} catch (Exception e ) {
116
117
//This will never happen. Ever...
117
118
return -666 ;
Original file line number Diff line number Diff line change 11
11
import java .nio .ByteBuffer ;
12
12
import java .nio .ByteOrder ;
13
13
14
- /**
14
+ /*************************************************************************************************************
15
15
* Class that contains methods to encode Wave files to FLAC files
16
16
* THIS IS THANKS TO THE javaFlacEncoder Project created here: http://sourceforge.net/projects/javaflacencoder/
17
- */
17
+ ************************************************************************************************************ /
18
18
public class FlacEncoder {
19
19
20
20
/**
Original file line number Diff line number Diff line change 3
3
import java .util .ArrayList ;
4
4
import java .util .List ;
5
5
6
- /**
6
+ /******************************************************************************
7
7
* Class that holds the response and confidence of a Google recognizer request
8
8
*
9
9
* @author Luke Kuza, Duncan Jauncey, Aaron Gokaslan
10
- */
10
+ ****************************************************************************** /
11
11
public class GoogleResponse {
12
12
13
13
/**
Original file line number Diff line number Diff line change 4
4
import java .net .URL ;
5
5
import java .net .URLConnection ;
6
6
7
- /**
7
+ /***************************************************************
8
8
* Class that submits FLAC audio and retrieves recognized text
9
9
*
10
10
* @author Luke Kuza, Duncan Jauncey, Aaron Gokaslan
11
- */
11
+ ************************************************************** /
12
12
public class Recognizer {
13
13
14
14
public enum Languages {
Original file line number Diff line number Diff line change 9
9
import java .util .List ;
10
10
11
11
12
- /**
12
+
13
+ /*******************************************************************************
13
14
* Synthesiser class that connects to Google's unoffical API to retrieve data
14
15
*
15
16
* @author Luke Kuza, Aaron Gokaslan (Skylion)
16
- */
17
+ ******************************************************************************* /
17
18
public class Synthesiser {
18
19
19
20
/**
You can’t perform that action at this time.
0 commit comments