import type { Ear, Heard, Side, Speech } from "./types.js"; export interface ListenOptions { heard: Heard; /** The platform's transcriber. Without it the browser's recogniser is the * only ear there is. */ speech?: Speech; language?: string; /** Silence, in ms, that ends an utterance. */ pause?: number; /** Which ear to try first. The platform's, unless the caller says otherwise. */ prefer?: Side; scope?: unknown; } /** * Open the microphone. * * Two legs, one ear. The platform's transcriber is the one Hanzo ships and the * one that improves, so it listens wherever it is configured and the browser * can record for it — which is every browser, not only the ones missing a * recogniser. The browser's own recogniser is the standby: it listens when * there is no platform, when this browser cannot record, when the caller asks * for it by name, and from the moment the platform refuses. * * Both legs hold an echo-cancelled capture stream for as long as they are open. * That is what makes barge-in work: without it the microphone hears the reply * playing out of the speakers and interrupts itself on every turn. */ export declare function listen(options: ListenOptions): Ear; //# sourceMappingURL=listen.d.ts.map