import type { Mouth, Refusal, Speech } from "./types.js"; export interface MouthOptions { /** The platform's voice. Without it the browser reads the reply. */ speech?: Speech; /** The browser voice, by `speechSynthesis` name. Read fresh per sentence: * the browser loads its voice list asynchronously and the user can change * the pick mid-conversation. */ voice?: () => string | undefined; /** The platform refused. Told once, with whether the browser stood in. */ refused?: (refusal: Refusal) => void; scope?: unknown; } /** * The voice that reads a reply aloud. * * The platform's voice when there is one, the browser's when there is not — * and "there is not" includes "it refused". A speech service that 401s, runs * out of credit or times out must not turn a conversation mute, so the browser * voice waits behind the platform one and takes the sentence rather than * dropping it. It also says so: standing in silently makes a dead key sound * exactly like a live one, and nobody goes looking for a bill that reads zero. * * Both answer `hush()` the same way and both resolve `say()` when the last word * has played, which is what lets the caller treat "it is talking" as one state * regardless of who is doing the talking. */ export declare function mouth(options?: MouthOptions): Mouth; //# sourceMappingURL=speak.d.ts.map