Contents

insert(term:)

Add a custom term to the vocabulary.

Declaration

func insert(term: SFCustomLanguageModelData.CustomPronunciation)

Parameters

  • term:

    A token, paired with an X-SAMPA representation of the token’s pronunciation

Discussion

This class accumulates vocabulary data (in the form of tokens paired with X-SAMPA representations of the spoken forms of those tokens) which will later be processed and then provided to an SFSpeechRecognizer, to enable it to recognize words that are typically out-of-vocabulary.

See Also

Adding terms