@moonshine-ai/moonshine-js
    Preparing search index...

    Class IntentClassifier

    Implements voice control using intent classification.

    Intent classification matches user commands to actions using semantic similarity. This is most useful when we want to match commands with similar meaning (but not identical wordings) to desired actions, e.g., matching the commands to "start up", "initialize", and "boot it up" to an intent named "turn on".

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    commandHandlers: CommandHandlers
    onError: (error: any) => any
    onFrame: (probs: any, frame: any, ema: any) => any
    onModelLoaded: () => any
    onModelLoadStarted: () => any
    onPermissionsRequested: () => any
    onSpeechEnd: () => any
    onSpeechStart: () => any
    onTranscribeStarted: () => any
    onTranscribeStopped: () => any
    onTranscriptionCommitted: (text: string) => any

    Methods

    • Parameters

      • intents: string[]

      Returns Promise<any[]>

    • Parameters

      • embeddings: any
      • allEmbeddings: any

      Returns any[]

    • Parameters

      • text: string

      Returns Promise<any>

    • Parameters

      • text: string

      Returns Promise<string>

    • Parameters

      • text: string
      • candidates: string[]

      Returns Promise<string>

    • Parameters

      • text: string

      Returns void