diff --git a/apps/web/src/pages/voices/components/tts-modal/types.ts b/apps/web/src/pages/voices/components/tts-modal/types.ts index 0d288c20b..266be0db3 100755 --- a/apps/web/src/pages/voices/components/tts-modal/types.ts +++ b/apps/web/src/pages/voices/components/tts-modal/types.ts @@ -1,5 +1,6 @@ import { type PresetVoiceDisplay } from "@/pages/voices/types" import type { TtsClonedVoiceOption } from "./VoiceSelector" +import type { TtsEmotion, TtsLanguage } from "./constants" export type TtsStatus = "idle" | "synthesizing" | "done" | "error" @@ -8,6 +9,8 @@ export interface TtsModalProps { ttsText: string ttsVoiceId: string ttsSpeed: number + ttsEmotion: TtsEmotion + ttsLanguage: TtsLanguage ttsStatus: TtsStatus ttsAudioUrl: string | null ttsError: string | null @@ -18,6 +21,8 @@ export interface TtsModalProps { onTextChange: (text: string) => void onVoiceChange: (voiceId: string) => void onSpeedChange: (speed: number) => void + onEmotionChange: (emotion: TtsEmotion) => void + onLanguageChange: (language: TtsLanguage) => void onSynthesize: () => void onSave: () => void }