Compare commits

..

2 Commits

Author SHA1 Message Date
Xin Wang
260ff621bf Merge branch 'master' of https://gitea.xiaowang.eu.org/wx44wx/AI-VideoAssistant 2026-02-12 18:01:19 +08:00
Xin Wang
0f9543d8a4 Voice add interface change 2026-02-12 18:01:05 +08:00

View File

@@ -5,11 +5,6 @@ import { Voice } from '../types';
import { createVoice, deleteVoice, fetchVoices, previewVoice, updateVoice } from '../services/backendApi'; import { createVoice, deleteVoice, fetchVoices, previewVoice, updateVoice } from '../services/backendApi';
const SILICONFLOW_DEFAULT_MODEL = 'FunAudioLLM/CosyVoice2-0.5B'; const SILICONFLOW_DEFAULT_MODEL = 'FunAudioLLM/CosyVoice2-0.5B';
const SILICONFLOW_MODEL_SUGGESTIONS = [
'FunAudioLLM/CosyVoice2-0.5B',
'fishaudio/fish-speech-1.5',
'fishaudio/fish-speech-1.4',
];
const buildSiliconflowVoiceKey = (rawId: string, model: string): string => { const buildSiliconflowVoiceKey = (rawId: string, model: string): string => {
const id = (rawId || '').trim(); const id = (rawId || '').trim();
@@ -414,17 +409,11 @@ const AddVoiceModal: React.FC<{
<div className="space-y-1.5"> <div className="space-y-1.5">
<label className="text-[10px] font-black text-muted-foreground uppercase tracking-widest block"> (Model)</label> <label className="text-[10px] font-black text-muted-foreground uppercase tracking-widest block"> (Model)</label>
<Input <Input
className="h-9 bg-white/5 font-mono text-xs" className="font-mono text-xs"
value={sfModel} value={sfModel}
onChange={(e) => setSfModel(e.target.value)} onChange={(e) => setSfModel(e.target.value)}
placeholder="例如: FunAudioLLM/CosyVoice2-0.5B" placeholder="例如: FunAudioLLM/CosyVoice2-0.5B"
list="siliconflow-model-options"
/> />
<datalist id="siliconflow-model-options">
{SILICONFLOW_MODEL_SUGGESTIONS.map((m) => (
<option key={m} value={m} />
))}
</datalist>
</div> </div>
<div className="space-y-1.5"> <div className="space-y-1.5">
<label className="text-[10px] font-black text-muted-foreground uppercase tracking-widest block"> ID (Voice)</label> <label className="text-[10px] font-black text-muted-foreground uppercase tracking-widest block"> ID (Voice)</label>