PullAudioOutputStream Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. audio. AudioOutputStream - com.
microsoft. cognitiveservices. speech. audio. PullAudioOutputStream
- com.
- com.
public final class PullAudioOutputStream
extends AudioOutputStream
Represents memory backed push audio output stream used for custom audio output configurations.
Constructor Summary
Constructor | Description |
---|---|
PullAudioOutputStream(IntRef stream) |
Internal constructor for Pull |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Pull |
create()
Creates a memory backed Pull |
long |
read(byte[] dataBuffer)
Reads the audio data specified by making an internal copy of the data. |
Methods inherited from AudioOutputStream
Methods inherited from java.lang.Object
Constructor Details
PullAudioOutputStream
public PullAudioOutputStream(IntRef stream)
Internal constructor for PullAudioOutputStream.
Parameters:
Method Details
create
public static PullAudioOutputStream create()
Creates a memory backed PullAudioOutputStream.
Returns:
read
public long read(byte[] dataBuffer)
Reads the audio data specified by making an internal copy of the data. The maximal number of bytes to be read is determined by the size of dataBuffer. If there is no data immediately available, read() blocks until the next data becomes available.
Parameters:
Returns:
Applies to
Azure SDK for Java