Voice add interface change
This commit is contained in:
@@ -5,11 +5,6 @@ import { Voice } from '../types';
|
||||
import { createVoice, deleteVoice, fetchVoices, previewVoice, updateVoice } from '../services/backendApi';
|
||||
|
||||
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 id = (rawId || '').trim();
|
||||
@@ -414,17 +409,11 @@ const AddVoiceModal: React.FC<{
|
||||
<div className="space-y-1.5">
|
||||
<label className="text-[10px] font-black text-muted-foreground uppercase tracking-widest block">模型 (Model)</label>
|
||||
<Input
|
||||
className="h-9 bg-white/5 font-mono text-xs"
|
||||
className="font-mono text-xs"
|
||||
value={sfModel}
|
||||
onChange={(e) => setSfModel(e.target.value)}
|
||||
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 className="space-y-1.5">
|
||||
<label className="text-[10px] font-black text-muted-foreground uppercase tracking-widest block">声音 ID (Voice)</label>
|
||||
|
||||
Reference in New Issue
Block a user