RecognizedPhrase Class Reference

Inherits from NSObject
Declared in RecognizedPhrase.m
SpeechRecognitionService.h

Overview

A confidence value for the recognized text and the recognized text with a set of processing types applied to it. This is one element of an N-best set.

  LexicalForm

The recognized phrase, without any post-processing.

@property (nonatomic, strong) NSString *LexicalForm

Discussion

The recognized phrase, without any post-processing.

This form is optimal for use by applications that need the raw, unprocessed speech recognition results.

Declared In

SpeechRecognitionService.h

  DisplayText

The recognized phrase with inverse text normalization, capitalization, punctuation and profanity masking applied.

@property (nonatomic, strong) NSString *DisplayText

Discussion

The recognized phrase with inverse text normalization, capitalization, punctuation and profanity masking applied.

This form is optimal for use by applications that display the speech recognition results to a user.

Profanity is masked with asterisks after the initial character, e.g. "d***". Inverse text normalization (ITN) has also been applied. An example of ITN is converting result text from "go to fourth street" to "go to 4th st".

Declared In

SpeechRecognitionService.h

  InverseTextNormalizationResult

The recognized phrase with inverse text normalization applied.

@property (nonatomic, strong) NSString *InverseTextNormalizationResult

Discussion

The recognized phrase with inverse text normalization applied.

This form is optimal for use by applications that interpret the speech recognition results as commands or which perform queries based on the recognized text.

Inverse text normalization (ITN) converts phrases like "one two three four" to a normalized form such as "1234". Another example is converting result text from "go to fourth street" to "go to 4th st".

Declared In

SpeechRecognitionService.h

  MaskedInverseTextNormalizationResult

The recognized phrase with inverse text normalization and profanity masking applied, but not capitalization or punctuation.

@property (nonatomic, strong) NSString *MaskedInverseTextNormalizationResult

Discussion

The recognized phrase with inverse text normalization and profanity masking applied, but not capitalization or punctuation.

This form is optimal for use by applications that use the unmasked ITN results but also need to display the command or query to the user.

Profanity is masked with asterisks after the initial character, e.g. "d***". Inverse text bormalization (ITN) is also been applied. An example of ITN is converting result text from "go to fourth street" to "go to 4th st".

Declared In

SpeechRecognitionService.h

  Confidence

A value representing high, medium or low confidence.

@property (nonatomic, assign) Confidence

Discussion

A value representing high, medium or low confidence.

Declared In

SpeechRecognitionService.h