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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin