Declared in STMediaParams_doc.h

Overview

This struct describes the parameters for a speech recognition task.

A STSRParams object can be created as follows:

let srParams = STSRParams()

Tasks

  •   srTask

    This struct containing the parameters for the speech recognition task as defined in STSRTask. Default: nil.

      property
  •   continuousSR

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

      property
  •   onDeviceSR

    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

Properties

continuousSR

var continuousSR: Bool = false

Discussion

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

Declared In

STMediaParams_doc.h

onDeviceSR

var onDeviceSR: Bool = false

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

STMediaParams_doc.h

srTask

var srTask: STSRTask?

Discussion

This struct containing the parameters for the speech recognition task as defined in STSRTask. Default: nil.

Declared In

STMediaParams_doc.h