public static final class PullTransport.Noise extends PullTransport.AbstractPullTransport
PullTransport.AbstractPullTransport, PullTransport.Default, PullTransport.Noise, PullTransport.OnAudioChunkPulledListener
Constructor and Description |
---|
Noise(AudioSource audioRecordSource) |
Noise(AudioSource audioRecordSource,
PullTransport.OnAudioChunkPulledListener onAudioChunkPulledListener,
Recorder.OnSilenceListener silenceListener,
long silenceTimeThreshold) |
Noise(AudioSource audioRecordSource,
PullTransport.OnAudioChunkPulledListener onAudioChunkPulledListener,
WriteAction writeAction,
Recorder.OnSilenceListener silenceListener,
long silenceTimeThreshold) |
Noise(AudioSource audioRecordSource,
Recorder.OnSilenceListener silenceListener) |
Noise(AudioSource audioRecordSource,
Recorder.OnSilenceListener silenceListener,
long silenceTimeThreshold) |
Noise(AudioSource audioRecordSource,
WriteAction writeAction,
Recorder.OnSilenceListener silenceListener,
long silenceTimeThreshold) |
Modifier and Type | Method and Description |
---|---|
void |
start(java.io.OutputStream outputStream)
It starts to pull the
AudioSource and transport it to
OutputStream |
source, stop
public Noise(AudioSource audioRecordSource, PullTransport.OnAudioChunkPulledListener onAudioChunkPulledListener, WriteAction writeAction, Recorder.OnSilenceListener silenceListener, long silenceTimeThreshold)
public Noise(AudioSource audioRecordSource, PullTransport.OnAudioChunkPulledListener onAudioChunkPulledListener, Recorder.OnSilenceListener silenceListener, long silenceTimeThreshold)
public Noise(AudioSource audioRecordSource, WriteAction writeAction, Recorder.OnSilenceListener silenceListener, long silenceTimeThreshold)
public Noise(AudioSource audioRecordSource, Recorder.OnSilenceListener silenceListener, long silenceTimeThreshold)
public Noise(AudioSource audioRecordSource, Recorder.OnSilenceListener silenceListener)
public Noise(AudioSource audioRecordSource)
public void start(java.io.OutputStream outputStream) throws java.io.IOException
PullTransport
AudioSource
and transport it to
OutputStreamstart
in interface PullTransport
start
in class PullTransport.AbstractPullTransport
outputStream
- the OutputStream where we want to transport the pulled audio data.java.io.IOException
- if there is any problem arise in pulling and transporting