KeenASR React Native Plugin (v2.2)
    Preparing search index...

    Function prepareForListening

    • Prepare the recognizer to listen using a decoding graph.

      This loads the decoding graph and configures the recognizer. After this call, the recognizer state transitions to RecognizerState.ReadyToListen.

      Parameters

      • dgName: string

        Name of the decoding graph (created via createDecodingGraphFromPhrases).

      • computeGoP: boolean = false

        If true, compute Goodness of Pronunciation (GoP) scores for each phone. GoP scores are available in ASRWord.phones on the final response. Adds some processing overhead. Defaults to false.

      Returns Promise<boolean>

      true if preparation succeeded.