hearingInputChannelName (src/hearing.ts)

airi · packages/stage-shared/src/hearing.ts · typescript · MIT
voice, tag:knn-classified

Exports a shared channel name and event types for streaming hearing input.

// Source: https://github.com/moeru-ai/airi | License: MIT | Copyright 2024-PRESENT Neko Ayaka
// Provided via justclaw.it.com; keep this notice with the code.
/** Shared channel name for streaming Hearing text shown in editable chat input. */
export const hearingInputChannelName = 'airi-hearing-input'

/** A streaming Hearing update sent from the microphone owner to a chat window. */
export type HearingInputChannelEvent
  = | {
    /** Removes text owned by the matching Provider utterance. */
    operation: 'clear'
    /** Correlates delayed cleanup with the matching Provider utterance. */
    sourceId: string
  }
  | {
    /** Replaces the current text owned by this Provider utterance. */
    operation: 'replace'
    /** Correlates transcript revisions with the matching Provider utteranc

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key