PullAudioInputStream Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. audio. AudioInputStream - com.
microsoft. cognitiveservices. speech. audio. PullAudioInputStream
- com.
- com.
public final class PullAudioInputStream
extends AudioInputStream
Represents audio input stream used for custom audio input configurations. Note: close() must be called in order to release underlying resources held by the object.
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
close()
Explicitly frees any external resource attached to the object Note: close() must be called in order to release underlying resources held by the object. |
static
Pull |
create(PullAudioInputStreamCallback callback)
Creates a Pull |
static
Pull |
create(PullAudioInputStreamCallback callback, AudioStreamFormat format)
Creates a Pull |
Methods inherited from AudioInputStream
Methods inherited from java.lang.Object
Method Details
close
public void close()
Explicitly frees any external resource attached to the object Note: close() must be called in order to release underlying resources held by the object.
Overrides:
PullAudioInputStream.close()create
public static PullAudioInputStream create(PullAudioInputStreamCallback callback)
Creates a PullAudioInputStream that delegates to the specified callback interface for read() and close() methods, using the default format (16 kHz, 16 bit, mono PCM).
Parameters:
Returns:
create
public static PullAudioInputStream create(PullAudioInputStreamCallback callback, AudioStreamFormat format)
Creates a PullAudioInputStream that delegates to the specified callback interface for read() and close() methods.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for