Skip to content

Commit

Permalink
General Code Cleanup and bin size fix for getPitch() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Skylion007 committed Sep 15, 2013
1 parent 2fcd62c commit ecc2ac6
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 14 deletions.
1 change: 1 addition & 0 deletions CREDITS.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ The following people/organizations have helped provide functionality for the API
* Princeton University
* The implemented FFT algorithm is derived from one on the university's website.
* Homepage: http://www.princeton.edu

We would like to thank the above so much for your work, this wrapper/API could not have been
created without it.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#J.A.R.V.I.S. (Java-Speech-API)

J.A.R.V.I.S. Speech API: Just A Reliable Vocal Interpreter & Synthesizer.
J.A.R.V.I.S. Java Speech API: Just A Reliable Vocal Interpreter & Synthesizer.
This is a project for the Java Speech API. The program interprets vocal inputs into text and synthesizes voices from text input.
The program supports dozens of languages and even has the ability to auto-detect languages!

Expand Down
4 changes: 2 additions & 2 deletions src/com/darkprograms/speech/microphone/Microphone.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

import java.io.File;

/**
/***************************************************************************
* Microphone class that contains methods to capture audio from microphone
*
* @author Luke Kuza, Aaron Gokaslan
*/
***************************************************************************/
public class Microphone {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
import javax.sound.sampled.AudioFileFormat;
import com.darkprograms.speech.utility.*;

/**
/********************************************************************************************
* Microphone Analyzer class, detects pitch and volume while extending the microphone class.
* Implemented as a precursor to a Voice Activity Detection (VAD) algorithm.
* Currently can be used for audio data analysis.
* Dependencies: FFT.java & Complex.java. Both found in the utility package.
*/
* @author Aaron Gokaslan
********************************************************************************************/

public class MicrophoneAnalyzer extends Microphone {

Expand Down Expand Up @@ -111,7 +112,7 @@ private byte[] getBytes(int numOfBytes){
*/
public int getFrequency(){
try {
return getFrequency(1024);
return getFrequency(2048);
} catch (Exception e) {
//This will never happen. Ever...
return -666;
Expand Down
4 changes: 2 additions & 2 deletions src/com/darkprograms/speech/recognizer/FlacEncoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
import java.nio.ByteBuffer;
import java.nio.ByteOrder;

/**
/*************************************************************************************************************
* Class that contains methods to encode Wave files to FLAC files
* THIS IS THANKS TO THE javaFlacEncoder Project created here: http://sourceforge.net/projects/javaflacencoder/
*/
************************************************************************************************************/
public class FlacEncoder {

/**
Expand Down
4 changes: 2 additions & 2 deletions src/com/darkprograms/speech/recognizer/GoogleResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import java.util.ArrayList;
import java.util.List;

/**
/******************************************************************************
* Class that holds the response and confidence of a Google recognizer request
*
* @author Luke Kuza, Duncan Jauncey, Aaron Gokaslan
*/
******************************************************************************/
public class GoogleResponse {

/**
Expand Down
4 changes: 2 additions & 2 deletions src/com/darkprograms/speech/recognizer/Recognizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
import java.net.URL;
import java.net.URLConnection;

/**
/***************************************************************
* Class that submits FLAC audio and retrieves recognized text
*
* @author Luke Kuza, Duncan Jauncey, Aaron Gokaslan
*/
**************************************************************/
public class Recognizer {

public enum Languages{
Expand Down
5 changes: 3 additions & 2 deletions src/com/darkprograms/speech/synthesiser/Synthesiser.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
import java.util.List;


/**

/*******************************************************************************
* Synthesiser class that connects to Google's unoffical API to retrieve data
*
* @author Luke Kuza, Aaron Gokaslan (Skylion)
*/
*******************************************************************************/
public class Synthesiser {

/**
Expand Down

0 comments on commit ecc2ac6

Please sign in to comment.