Inherits from NSObject
Declared in BZMediaParams.h

Overview

This interface describes the parameters for a speech recognition engine.

A BZSREngineParams object can be created as follows:

BZSREngineParams* bzSREngineParams = [[BZSREngineParams alloc] init];

Swift
let bzSREngineParams = BZSREngineParams()

Tasks

  •   m_SRTask

    This interface containing the parameters for the speech recognition task as defined in BZSRTask. Default: nil.

      property
  •   m_bContinuousSR

    This parameter enable or disables speech recognition to be continuous. Default: FALSE.

      property
  •   m_bOnDeviceSR

    This parameter requests speech recognition to execute on the device where client is running. Pocket Sphinx SR always executes on device. For Apple SR, this paramater can be set to TRUE, but that does not guarantee that Apple SR will be on device especially when languages other than english are requested. Default: FALSE.

      property
  •   m_nNBestCount

    This parameter specifies the number of speech recognition candidates or hypotheses to return to client. Default: 1.

      property
  •   m_nMaxAudioDurationMs

    This parameter specifies the maximum audio duration for speech recognizer to process before speech recognoition stops and generates a SR hypothesis. Default: BZAudioTimeoutsDisableParams:ADT_MaxAudioDurationDisabled (maximum audio duration is disabled).

      property
  •   m_nMaxSilencePreSpeechDurationMs

    This parameter specifies the maximum pre-speech silence duration before speech recognition stops and declares that the SR Hypothesis is “silence”. Default: BZAudioTimeoutsDisableParams:ADT_MaxSilencePreSpeechDurationDisabled (pre-speech maximum silence duration is disabled).

      property
  •   m_nMaxSilencePostSpeechDurationMs

    This parameter specifies the maximum post-speech silence duration before speech recognition stops and generates a SR Hypothesis. Default: BZAudioTimeoutsDisableParams:ADT_MaxSilencePostSpeechDurationDisabled (post-speech maximum silence duration is disabled).

      property
  •   m_nMaxSpeechDurationMs

    This parameter specifies the maximum speech duration before speech recognition stops and generates a SR Hypothesis. Default: BZAudioTimeoutsDisableParams:ADT_MaxSpeechDurationDisabled (post-speech maximum silence duration is disabled).

      property

Properties

m_SRTask

@property BZSRTask *m_SRTask

Discussion

This interface containing the parameters for the speech recognition task as defined in BZSRTask. Default: nil.

Declared In

BZMediaParams.h

m_bContinuousSR

@property BOOL m_bContinuousSR

Discussion

This parameter enable or disables speech recognition to be continuous. Default: FALSE.

Declared In

BZMediaParams.h

m_bOnDeviceSR

@property BOOL m_bOnDeviceSR

Discussion

This parameter requests speech recognition to execute on the device where client is running. Pocket Sphinx SR always executes on device. For Apple SR, this paramater can be set to TRUE, but that does not guarantee that Apple SR will be on device especially when languages other than english are requested. Default: FALSE.

Declared In

BZMediaParams.h

m_nMaxAudioDurationMs

@property int m_nMaxAudioDurationMs

Discussion

This parameter specifies the maximum audio duration for speech recognizer to process before speech recognoition stops and generates a SR hypothesis. Default: BZAudioTimeoutsDisableParams:ADT_MaxAudioDurationDisabled (maximum audio duration is disabled).

Declared In

BZMediaParams.h

m_nMaxSilencePostSpeechDurationMs

@property int m_nMaxSilencePostSpeechDurationMs

Discussion

This parameter specifies the maximum post-speech silence duration before speech recognition stops and generates a SR Hypothesis. Default: BZAudioTimeoutsDisableParams:ADT_MaxSilencePostSpeechDurationDisabled (post-speech maximum silence duration is disabled).

Declared In

BZMediaParams.h

m_nMaxSilencePreSpeechDurationMs

@property int m_nMaxSilencePreSpeechDurationMs

Discussion

This parameter specifies the maximum pre-speech silence duration before speech recognition stops and declares that the SR Hypothesis is “silence”. Default: BZAudioTimeoutsDisableParams:ADT_MaxSilencePreSpeechDurationDisabled (pre-speech maximum silence duration is disabled).

Declared In

BZMediaParams.h

m_nMaxSpeechDurationMs

@property int m_nMaxSpeechDurationMs

Discussion

This parameter specifies the maximum speech duration before speech recognition stops and generates a SR Hypothesis. Default: BZAudioTimeoutsDisableParams:ADT_MaxSpeechDurationDisabled (post-speech maximum silence duration is disabled).

Declared In

BZMediaParams.h

m_nNBestCount

@property int m_nNBestCount

Discussion

This parameter specifies the number of speech recognition candidates or hypotheses to return to client. Default: 1.

Declared In

BZMediaParams.h