sherpa-onnx-node-addon-api
    Preparing search index...

    Class OnlineStream

    OnlineStream holds an active online stream handle.

    Index
    handle: any
    • Get a string option of the underlying online stream.

      Returns an empty string if the option has not been set; use hasOption() to distinguish an unset option from an empty value.

      Parameters

      • key: string

      Returns string

    • Check whether an option has been set on the underlying online stream.

      Parameters

      • key: string

      Returns boolean

    • Notify the stream input has finished.

      Returns void

    • Set a string option on the underlying online stream.

      For example, multilingual streaming Nemotron models read the option 'language' (e.g. 'en', 'de') from each stream on every decode call; leaving it unset selects automatic language detection.

      Parameters

      • key: string
      • value: string

      Returns void