@adonis-agora/agent
Version:
Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.
22 lines • 921 B
TypeScript
/**
* Languages the dictation mic offers. The Web Speech API expects a
* BCP-47 tag and does NOT auto-detect — the engine forces incoming
* audio onto the phonemes of whatever `recognition.lang` is set to, so
* the host app picks the locale explicitly.
*/
export interface SpeechLanguage {
/** BCP-47 tag fed straight into `SpeechRecognition.lang`. */
tag: string;
/** Human label for a dropdown. */
label: string;
}
export declare const DEFAULT_SPEECH_LANG = "en-US";
export declare const SPEECH_LANGUAGES: ReadonlyArray<SpeechLanguage>;
/**
* Recover the last picked language from localStorage (sync — safe at
* `useState` init). Falls back to the default if nothing's stored or the
* stored tag isn't in the offered list.
*/
export declare function loadStoredSpeechLang(): string;
export declare function persistSpeechLang(tag: string): void;
//# sourceMappingURL=speech-languages.d.ts.map