Skip to content

Commit ecc2ac6

Browse files
committed
General Code Cleanup and bin size fix for getPitch() method.
1 parent 2fcd62c commit ecc2ac6

File tree

8 files changed

+17
-14
lines changed

8 files changed

+17
-14
lines changed

CREDITS.markdown

+1
Original file line numberDiff line numberDiff 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+
2122
We would like to thank the above so much for your work, this wrapper/API could not have been
2223
created without it.

README.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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.
44
This is a project for the Java Speech API. The program interprets vocal inputs into text and synthesizes voices from text input.
55
The program supports dozens of languages and even has the ability to auto-detect languages!
66

src/com/darkprograms/speech/microphone/Microphone.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
import 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+
***************************************************************************/
1212
public class Microphone {
1313

1414
/**

src/com/darkprograms/speech/microphone/MicrophoneAnalyzer.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
import javax.sound.sampled.AudioFileFormat;
44
import 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

1314
public 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;

src/com/darkprograms/speech/recognizer/FlacEncoder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
import java.nio.ByteBuffer;
1212
import 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+
************************************************************************************************************/
1818
public class FlacEncoder {
1919

2020
/**

src/com/darkprograms/speech/recognizer/GoogleResponse.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
import java.util.ArrayList;
44
import 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+
******************************************************************************/
1111
public class GoogleResponse {
1212

1313
/**

src/com/darkprograms/speech/recognizer/Recognizer.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
import java.net.URL;
55
import 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+
**************************************************************/
1212
public class Recognizer {
1313

1414
public enum Languages{

src/com/darkprograms/speech/synthesiser/Synthesiser.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
import 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+
*******************************************************************************/
1718
public class Synthesiser {
1819

1920
/**

0 commit comments

Comments
 (0)