您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.
AudioConfig Class
Definition
Represents audio input configuration used for specifying what type of input to use (microphone, file, stream).
public sealed class AudioConfig : IDisposable
type AudioConfig = class
interface IDisposable
Public NotInheritable Class AudioConfig
Implements IDisposable
- Inheritance
-
AudioConfig
- Implements
Methods
Dispose() |
Dispose of associated resources. We may or may not dispose the audio stream, depending if we are told we own the stream give to us. |
FromDefaultMicrophoneInput() |
Creates an AudioConfig object representing the default microphone on the system. |
FromDefaultSpeakerOutput() |
Creates an AudioConfig object representing the default speaker on the system. Added in version 1.4.0 |
FromMicrophoneInput(String) |
Creates an AudioConfig object representing the designated input device. NOTE: This method was added in version 1.3.0. |
FromSpeakerOutput(String) |
Creates an AudioConfig object representing the designated output device. NOTE: This method was added in version 1.14.0. |
FromStreamInput(AudioInputStream) |
Creates an AudioConfig object representing the specified stream. |
FromStreamInput(PullAudioInputStreamCallback) |
Creates an AudioConfig object representing the specified stream. |
FromStreamInput(PullAudioInputStreamCallback, AudioStreamFormat) |
Creates an AudioConfig object representing the specified stream. |
FromStreamOutput(AudioOutputStream) |
Creates an AudioConfig object representing the specified stream. Added in version 1.4.0 |
FromStreamOutput(PushAudioOutputStreamCallback) |
Creates an AudioConfig object representing the specified stream. Added in version 1.4.0 |
FromWavFileInput(String) |
Creates an AudioConfig object representing the specified file. |
FromWavFileOutput(String) |
Creates an AudioConfig object representing the specified file. Added in version 1.4.0 |
GetProperty(PropertyId) |
Gets the property by propertyId Added in version 1.10.0. |
GetProperty(String) |
Gets the property by name. Added in version 1.10.0. |
SetProperty(PropertyId, String) |
Sets the property by propertyId Added in version 1.10.0. |
SetProperty(String, String) |
Sets the property by name. Added in version 1.10.0. |