Declared in STMediaParams_doc.h

Overview

This struct describes the parameters that control and stop audio recording .

A STAudioRecordControlParams object can be created as follows:

let stAudioRecordControlParams = STAudioRecordControlParams()

Tasks

  •   maxAudioDurationMs

    The max audio recording duration to record in milliseconds. Audio recording will automatically stop when this duration is reached. Default: 0 for no max duration limit.

      property
  •   maxSilencePreSpeechDurationMs

    The max silence pre speech duration in milliseconds before speech energy is detected in audio. Audio recording will automatically stop if this duration is reached before speech energy is detected. Default: STAudioTimeoutsDisableParams:ADT_MaxSilencePreSpeechDurationDisabled.

      property
  •   maxSilencePostSpeechDurationMs

    The max silence post speech duration in milliseconds before speech energy is detected again in audio. Audio recording will automatically stop if this duration is reached before speech energy is detected again. Default: STAudioTimeoutsDisableParams:ADT_MaxSilencePostSpeechDurationDisabled.

      property
  •   maxSpeechDurationMs

    The max speech duration in milliseconds. Audio recording will automatically stop if this duration is reached. Default: STAudioTimeoutsDisableParams:ADT_MaxSpeechDurationDisabled.

      property

Properties

maxAudioDurationMs

var maxAudioDurationMs: Int32 = STAudioTimeoutsDisableParams.ADT_MaxAudioDurationDisabled

Discussion

The max audio recording duration to record in milliseconds. Audio recording will automatically stop when this duration is reached. Default: 0 for no max duration limit.

Declared In

STMediaParams_doc.h

maxSilencePostSpeechDurationMs

var maxSilencePostSpeechDurationMs: Int32 = STAudioTimeoutsDisableParams.ADT_MaxSilencePostSpeechDurationDisabled

Discussion

The max silence post speech duration in milliseconds before speech energy is detected again in audio. Audio recording will automatically stop if this duration is reached before speech energy is detected again. Default: STAudioTimeoutsDisableParams:ADT_MaxSilencePostSpeechDurationDisabled.

Declared In

STMediaParams_doc.h

maxSilencePreSpeechDurationMs

var maxSilencePreSpeechDurationMs: Int32 = STAudioTimeoutsDisableParams.ADT_MaxSilencePreSpeechDurationDisabled

Discussion

The max silence pre speech duration in milliseconds before speech energy is detected in audio. Audio recording will automatically stop if this duration is reached before speech energy is detected. Default: STAudioTimeoutsDisableParams:ADT_MaxSilencePreSpeechDurationDisabled.

Declared In

STMediaParams_doc.h

maxSpeechDurationMs

var maxSpeechDurationMs: Int32 = STAudioTimeoutsDisableParams.ADT_MaxSpeechDurationDisabled

Discussion

The max speech duration in milliseconds. Audio recording will automatically stop if this duration is reached. Default: STAudioTimeoutsDisableParams:ADT_MaxSpeechDurationDisabled.

Declared In

STMediaParams_doc.h