Package ipsk.audio.dsp.speech.vad.impl
Class VoicedSpeechDetector
- java.lang.Object
-
- ipsk.audio.dsp.speech.vad.impl.VoicedSpeechDetector
-
- All Implemented Interfaces:
VoiceActivityDetector
,FloatAudioOutputStream
,InterleavedFloatOutputStream
,java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class VoicedSpeechDetector extends java.lang.Object implements VoiceActivityDetector
Implementation of a voiced speech detector. The implementation uses autocorrelation and dynamic signal to noise ratio measuring.- Author:
- klausj
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
DEBUG
-
Constructor Summary
Constructors Constructor Description VoicedSpeechDetector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
void
setAudioFormat(javax.sound.sampled.AudioFormat audioFormat)
void
setChannels(int channels)
void
setVoiceActivityDetectorListener(VoiceActivityDetectorListener voiceActivityDetectorListener)
void
write(double[][] buf, int offset, int len)
-
-
-
Field Detail
-
DEBUG
public static final boolean DEBUG
- See Also:
- Constant Field Values
-
-
Method Detail
-
setAudioFormat
public void setAudioFormat(javax.sound.sampled.AudioFormat audioFormat)
- Specified by:
setAudioFormat
in interfaceFloatAudioOutputStream
-
setChannels
public void setChannels(int channels)
- Specified by:
setChannels
in interfaceInterleavedFloatOutputStream
-
write
public void write(double[][] buf, int offset, int len) throws java.io.IOException
- Specified by:
write
in interfaceInterleavedFloatOutputStream
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException
- Specified by:
flush
in interfacejava.io.Flushable
- Throws:
java.io.IOException
-
setVoiceActivityDetectorListener
public void setVoiceActivityDetectorListener(VoiceActivityDetectorListener voiceActivityDetectorListener)
- Specified by:
setVoiceActivityDetectorListener
in interfaceVoiceActivityDetector
-
-