TypeScript types for speech‑to‑text providers and configuration objects.
// Source: https://github.com/iOfficeAI/AionUi | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
* @license
* Copyright 2025 AionUi (aionui.com)
* SPDX-License-Identifier: Apache-2.0
*/
export type SpeechToTextProvider = 'openai' | 'deepgram';
export type OpenAISpeechToTextConfig = {
api_key: string;
base_url?: string;
language?: string;
model: string;
prompt?: string;
temperature?: number;
};
export type DeepgramSpeechToTextConfig = {
api_key: string;
base_url?: string;
detectLanguage?: boolean;
language?: string;
model: string;
punctuate?: boolean;
smartFormat?: boolean;
};
export type SpeechToTextConfig = {
autoSend?: boolean;
enabled: bo
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key