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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應