Inherits from NSObject
Declared in BZMediaParams.h

Overview

This interface describes the parameters for a speech recognition task.

A BZSRTask object can be created as follows:

BZSRTask* bzSRTask = [[BZSRTask alloc] init];

Swift
let bzSRTask = BZSRTask()

Tasks

  •   m_strTaskID

    The ID of the speech recognition task. This ID is provided by the client. Client will receive this ID with all event notifications and callbacks associated with speech recognition using this task. Default: nil.

      property
  •   m_strTaskData

    Pocket Sphinx SR only. This parameter contains the file pathname URL for the speech recognition task types SRTT_JSGF and SRTT_FSG. This parameter can also contain the actual speech recognition task data for some speeh recognition task type (SRTT_JSGF_STRING, SRTT_KEYPHRASE and SRTT_KWS), which also allows application to pass dynamic task data generated by client during runtime. Default: nil.

      property
  •   m_eTaskType

    Pocket Sphinx SR only. This parameter contains type of the speech recognition task as defined in BZSRTaskType. Default: BZSRTaskType:SRTT_UNKNOWN.

      property
  •   m_strTaskRule

    Pocket Sphinx SR only. This parameter contains the speech recognition task rule to load and execute. Default: nil.

      property
  •   m_eTaskHint

    Apple SR only. This parameter contains the speech recognition hint as defined in BZTaskHint. Default: BZTaskHint:SRHINT_UNSPECIFIED.

      property
  •   m_bReportPartialResults

    Enables or disables reporting partial results to the client. Default: FALSE.

      property
  •   m_CustomWordList

    Pocket Sphinx SR only. This parameter contains the custom word list and associated phonemes to use for speech recognition of the word list. Default: nil. Example of custom word list entries: “ababa AH B AA B AH”,“ababa(2) AA B AH B AH”,etc.

      property
  •   m_ContextualPhraseList

    Apple SR only. This parameter contains the contextual phrase list to enable for speech recognition. Contextual phare list usually contains phrases that contain unknown words. Default: nil. Example of contextual phrase list: “meemzee”,“wake up dahna”,etc.

      property
  •   m_bAutoResolveWordsNotFound

    Pocket Sphinx SR only. This parameter enables speech recognizer to recognize unknown words present in the speech recognition task data without providing the associated phonemes using the m_CustomWordList parameter. Default: TRUE.

      property
  •   m_bReloadTask

    Pocket Sphinx SR only. This parameter enables reloading a speech recognition task every time the task is used for speech recognition. This flag must be set to true for the task to be reloaded if any of the parameters are different from those of a previously loaded SR task with the same task ID. Default: FALSE.

      property

Properties

m_ContextualPhraseList

@property NSArray *m_ContextualPhraseList

Discussion

Apple SR only. This parameter contains the contextual phrase list to enable for speech recognition. Contextual phare list usually contains phrases that contain unknown words. Default: nil. Example of contextual phrase list: “meemzee”,“wake up dahna”,etc.

Declared In

BZMediaParams.h

m_CustomWordList

@property NSArray *m_CustomWordList

Discussion

Pocket Sphinx SR only. This parameter contains the custom word list and associated phonemes to use for speech recognition of the word list. Default: nil. Example of custom word list entries: “ababa AH B AA B AH”,“ababa(2) AA B AH B AH”,etc.

Declared In

BZMediaParams.h

m_bAutoResolveWordsNotFound

@property BOOL m_bAutoResolveWordsNotFound

Discussion

Pocket Sphinx SR only. This parameter enables speech recognizer to recognize unknown words present in the speech recognition task data without providing the associated phonemes using the m_CustomWordList parameter. Default: TRUE.

Declared In

BZMediaParams.h

m_bReloadTask

@property BOOL m_bReloadTask

Discussion

Pocket Sphinx SR only. This parameter enables reloading a speech recognition task every time the task is used for speech recognition. This flag must be set to true for the task to be reloaded if any of the parameters are different from those of a previously loaded SR task with the same task ID. Default: FALSE.

Declared In

BZMediaParams.h

m_bReportPartialResults

@property BOOL m_bReportPartialResults

Discussion

Enables or disables reporting partial results to the client. Default: FALSE.

Declared In

BZMediaParams.h

m_eTaskHint

@property BZTaskHint m_eTaskHint

Discussion

Apple SR only. This parameter contains the speech recognition hint as defined in BZTaskHint. Default: BZTaskHint:SRHINT_UNSPECIFIED.

Declared In

BZMediaParams.h

m_eTaskType

@property BZSRTaskType m_eTaskType

Discussion

Pocket Sphinx SR only. This parameter contains type of the speech recognition task as defined in BZSRTaskType. Default: BZSRTaskType:SRTT_UNKNOWN.

Declared In

BZMediaParams.h

m_strTaskData

@property NSString *m_strTaskData

Discussion

Pocket Sphinx SR only. This parameter contains the file pathname URL for the speech recognition task types SRTT_JSGF and SRTT_FSG. This parameter can also contain the actual speech recognition task data for some speeh recognition task type (SRTT_JSGF_STRING, SRTT_KEYPHRASE and SRTT_KWS), which also allows application to pass dynamic task data generated by client during runtime. Default: nil.

Declared In

BZMediaParams.h

m_strTaskID

@property NSString *m_strTaskID

Discussion

The ID of the speech recognition task. This ID is provided by the client. Client will receive this ID with all event notifications and callbacks associated with speech recognition using this task. Default: nil.

Declared In

BZMediaParams.h

m_strTaskRule

@property NSString *m_strTaskRule

Discussion

Pocket Sphinx SR only. This parameter contains the speech recognition task rule to load and execute. Default: nil.

Declared In

BZMediaParams.h