AudioConfig Class

Definition

Information about your speech audio source and speech audio target. Audio from a microphone, file, or input stream can be specified. Audio can be directed to a default speaker, specific speaker, audio file in WAV format, or output stream.

public sealed class AudioConfig : IDisposable
type AudioConfig = class
    interface IDisposable
Public NotInheritable Class AudioConfig
Implements IDisposable
Inheritance
AudioConfig
Implements

Remarks

See also: Get started with speech-to-text

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 that receives speech from the default microphone on the computer.

FromDefaultSpeakerOutput()

Creates an AudioConfig object that produces speech on the computer's default speaker. Added in version 1.4.0

FromMicrophoneInput(String)

Creates an AudioConfig object that receives speech from a specific microphone on the computer. Added in version 1.3.0

FromSpeakerOutput(String)

Creates an AudioConfig object that produces speech to to the specified speaker. Added in version 1.14.0

FromStreamInput(AudioInputStream)

Creates an AudioConfig object that receives speech from a stream.

FromStreamInput(PullAudioInputStreamCallback)

Creates an AudioConfig object that receives speech from a stream using an audio input stream callback.

FromStreamInput(PullAudioInputStreamCallback, AudioStreamFormat)

Creates an AudioConfig object that receives speech from a stream in a specified format using an audio input stream callback.

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 that receives speech from an audio file in WAV format.

FromWavFileOutput(String)

Creates an AudioConfig object that produces speech to the specified WAV file. Added in version 1.4.0

GetProperty(PropertyId)

Searches for the property named with the given PropertyId value. Added in version 1.10.0

GetProperty(String)

Searches for the property that has the given string name. Added in version 1.10.0

SetProperty(PropertyId, String)

Sets a property using a PropertyId value. Added in version 1.10.0

SetProperty(String, String)

Sets a property using a string name. Added in version 1.10.0

Applies to