public final class NoInput extends Object implements SpeechInput
Constructor and Description |
---|
NoInput(SpeechConfig config)
initializes a new empty SpeechInput.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
read(SpeechContext context,
ByteBuffer frame)
simulates reading an audio frame.
|
public NoInput(SpeechConfig config)
config
- speech pipeline configurationpublic void read(SpeechContext context, ByteBuffer frame)
read
in interface SpeechInput
context
- the current speech contextframe
- the frame buffer to fillpublic void close()
close
in interface AutoCloseable
Copyright © 2021. All rights reserved.