PushAudioOutputStreamCallback Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. audio. PushAudioOutputStreamCallback
- com.
public abstract class PushAudioOutputStreamCallback
An abstract base class that defines callback methods (write() and close()) for custom audio output streams). Added in version 1.7.0
Constructor Summary
Constructor | Description | |
---|---|---|
PushAudioOutputStreamCallback() |
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract void |
close()
Closes the audio output stream. |
abstract int |
write(byte[] dataBuffer)
Writes data to audio output stream from the data buffer. |
Methods inherited from java.lang.Object
java.lang.Object.clone
java.lang.Object.equals
java.lang.Object.finalize
java.lang.Object.getClass
java.lang.Object.hashCode
java.lang.Object.notify
java.lang.Object.notifyAll
java.lang.Object.toString
java.lang.Object.wait
java.lang.Object.wait
java.lang.Object.wait
Constructor Details
PushAudioOutputStreamCallback
public PushAudioOutputStreamCallback()
Method Details
close
public abstract void close()
Closes the audio output stream.
write
public abstract int write(byte[] dataBuffer)
Writes data to audio output stream from the data buffer.
Parameters:
dataBuffer
- The byte array to store the data to be written.
Returns:
The number of written bytes.
Applies to
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.
Azure SDK for Java