public interface SpeechInput extends AutoCloseable
This is the audio input interface to the Spokestack framework. Implementers must fill the specified audio frame buffer to capacity, based on the configured sample size and frame size.
To be used in a speech pipeline, an implementing class must also provide
a constructor that accepts a SpeechConfig
instance.
Modifier and Type | Method and Description |
---|---|
void |
read(SpeechContext context,
ByteBuffer frame)
reads a set of samples into a frame buffer.
|
close
void read(SpeechContext context, ByteBuffer frame) throws Exception
context
- the current speech contextframe
- the frame buffer to fillException
- on errorCopyright © 2020. All rights reserved.