AudioConfig.FromStreamInput Method

Definition

Overloads

FromStreamInput(PullAudioInputStreamCallback, AudioStreamFormat, AudioProcessingOptions)

Creates an AudioConfig object that receives speech from a stream in a specified format 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.

FromStreamInput(PullAudioInputStreamCallback, AudioProcessingOptions)

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

FromStreamInput(PullAudioInputStreamCallback)

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

FromStreamInput(AudioInputStream)

Creates an AudioConfig object that receives speech from a stream.

FromStreamInput(AudioInputStream, AudioProcessingOptions)

Creates an AudioConfig object that receives speech from a stream.

FromStreamInput(PullAudioInputStreamCallback, AudioStreamFormat, AudioProcessingOptions)

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

public static Microsoft.CognitiveServices.Speech.Audio.AudioConfig FromStreamInput (Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStreamCallback callback, Microsoft.CognitiveServices.Speech.Audio.AudioStreamFormat format, Microsoft.CognitiveServices.Speech.Audio.AudioProcessingOptions audioProcessingOptions);
static member FromStreamInput : Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStreamCallback * Microsoft.CognitiveServices.Speech.Audio.AudioStreamFormat * Microsoft.CognitiveServices.Speech.Audio.AudioProcessingOptions -> Microsoft.CognitiveServices.Speech.Audio.AudioConfig
Public Shared Function FromStreamInput (callback As PullAudioInputStreamCallback, format As AudioStreamFormat, audioProcessingOptions As AudioProcessingOptions) As AudioConfig

Parameters

callback
PullAudioInputStreamCallback

Specifies the pull audio input stream callback.

format
AudioStreamFormat

Data format of audio provided to the stream.

audioProcessingOptions
AudioProcessingOptions

Specifies the audio processing options.

Returns

An audio input configuration object set to provide speech from a stream using a callback.

Remarks

See also: About the Speech SDK audio input stream API

Applies to

FromStreamInput(PullAudioInputStreamCallback, AudioStreamFormat)

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

public static Microsoft.CognitiveServices.Speech.Audio.AudioConfig FromStreamInput (Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStreamCallback callback, Microsoft.CognitiveServices.Speech.Audio.AudioStreamFormat format);
static member FromStreamInput : Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStreamCallback * Microsoft.CognitiveServices.Speech.Audio.AudioStreamFormat -> Microsoft.CognitiveServices.Speech.Audio.AudioConfig
Public Shared Function FromStreamInput (callback As PullAudioInputStreamCallback, format As AudioStreamFormat) As AudioConfig

Parameters

callback
PullAudioInputStreamCallback

Specifies the pull audio input stream callback.

format
AudioStreamFormat

Data format of audio provided to the stream.

Returns

An audio input configuration object set to provide speech from a stream using a callback.

Remarks

See also: About the Speech SDK audio input stream API

Applies to

FromStreamInput(PullAudioInputStreamCallback, AudioProcessingOptions)

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

public static Microsoft.CognitiveServices.Speech.Audio.AudioConfig FromStreamInput (Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStreamCallback callback, Microsoft.CognitiveServices.Speech.Audio.AudioProcessingOptions audioProcessingOptions);
static member FromStreamInput : Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStreamCallback * Microsoft.CognitiveServices.Speech.Audio.AudioProcessingOptions -> Microsoft.CognitiveServices.Speech.Audio.AudioConfig
Public Shared Function FromStreamInput (callback As PullAudioInputStreamCallback, audioProcessingOptions As AudioProcessingOptions) As AudioConfig

Parameters

callback
PullAudioInputStreamCallback

Specifies the pull audio input stream callback.

audioProcessingOptions
AudioProcessingOptions

Specifies the audio processing options.

Returns

An audio input configuration object set to provide speech from a stream using a callback.

Remarks

See also: About the Speech SDK audio input stream API

Applies to

FromStreamInput(PullAudioInputStreamCallback)

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

public static Microsoft.CognitiveServices.Speech.Audio.AudioConfig FromStreamInput (Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStreamCallback callback);
static member FromStreamInput : Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStreamCallback -> Microsoft.CognitiveServices.Speech.Audio.AudioConfig
Public Shared Function FromStreamInput (callback As PullAudioInputStreamCallback) As AudioConfig

Parameters

callback
PullAudioInputStreamCallback

Specifies the pull audio input stream callback.

Returns

An audio input configuration object set to provide speech from a stream using a callback.

Remarks

See also: About the Speech SDK audio input stream API

Applies to

FromStreamInput(AudioInputStream)

Creates an AudioConfig object that receives speech from a stream.

public static Microsoft.CognitiveServices.Speech.Audio.AudioConfig FromStreamInput (Microsoft.CognitiveServices.Speech.Audio.AudioInputStream audioStream);
static member FromStreamInput : Microsoft.CognitiveServices.Speech.Audio.AudioInputStream -> Microsoft.CognitiveServices.Speech.Audio.AudioConfig
Public Shared Function FromStreamInput (audioStream As AudioInputStream) As AudioConfig

Parameters

audioStream
AudioInputStream

Specifies the custom audio input stream.

Returns

An audio input configuration object set to provide speech from a stream.

Remarks

See also: About the Speech SDK audio input stream API

Applies to

FromStreamInput(AudioInputStream, AudioProcessingOptions)

Creates an AudioConfig object that receives speech from a stream.

public static Microsoft.CognitiveServices.Speech.Audio.AudioConfig FromStreamInput (Microsoft.CognitiveServices.Speech.Audio.AudioInputStream audioStream, Microsoft.CognitiveServices.Speech.Audio.AudioProcessingOptions audioProcessingOptions);
static member FromStreamInput : Microsoft.CognitiveServices.Speech.Audio.AudioInputStream * Microsoft.CognitiveServices.Speech.Audio.AudioProcessingOptions -> Microsoft.CognitiveServices.Speech.Audio.AudioConfig
Public Shared Function FromStreamInput (audioStream As AudioInputStream, audioProcessingOptions As AudioProcessingOptions) As AudioConfig

Parameters

audioStream
AudioInputStream

Specifies the custom audio input stream.

audioProcessingOptions
AudioProcessingOptions

Specifies the audio processing options.

Returns

An audio input configuration object set to provide speech from a stream.

Remarks

See also: About the Speech SDK audio input stream API

Applies to