public interface SpeechProcessor extends AutoCloseable
This is the interface between the speech pipeline and frame handler components. The pipeline calls each registered processor stage on every frame, passing in the current speech context and audio frame buffer.
To be used in a speech pipeline, an implementing class must provide
a constructor that accepts a SpeechConfig
instance.
Modifier and Type | Method and Description |
---|---|
void |
process(SpeechContext context,
ByteBuffer frame)
processes the current speech frame.
|
close
void process(SpeechContext context, ByteBuffer frame) throws Exception
context
- the current speech contextframe
- the received audio frameException
- on errorCopyright © 2020. All rights reserved.