Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/java-speech-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/darkprograms/speech/microphone/MicrophoneAnalyzer.java')
-rw-r--r--src/com/darkprograms/speech/microphone/MicrophoneAnalyzer.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/darkprograms/speech/microphone/MicrophoneAnalyzer.java b/src/com/darkprograms/speech/microphone/MicrophoneAnalyzer.java
index a9130b8..c4887c7 100644
--- a/src/com/darkprograms/speech/microphone/MicrophoneAnalyzer.java
+++ b/src/com/darkprograms/speech/microphone/MicrophoneAnalyzer.java
@@ -3,12 +3,13 @@ package com.darkprograms.speech.microphone;
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 {
@@ -111,7 +112,7 @@ public class MicrophoneAnalyzer extends Microphone {
*/
public int getFrequency(){
try {
- return getFrequency(1024);
+ return getFrequency(2048);
} catch (Exception e) {
//This will never happen. Ever...
return -666;