apphouse
Version:
Component library for React that uses observable state management and theme-able components.
23 lines (22 loc) • 681 B
TypeScript
import { SpeechCreateParams } from 'openai/resources/audio/speech.mjs';
/**
* The props for the AiVoiceSelector component
*/
interface AiVoiceSelectorProps {
/**
* The id of the select component
*/
value: string;
/**
* A function that is called when the selected voice changes.
* @param value the value of the selected voice
* @returns
*/
onSelectionChange: (value: SpeechCreateParams['voice']) => void;
}
/**
* A select component for selecting an AI voice.
* This is to be used with the OpenAI library.
*/
export declare const AiVoiceSelector: (props: AiVoiceSelectorProps) => import("react/jsx-runtime").JSX.Element;
export {};