mirror of
https://github.com/R0m1k3/EveFlow.git
synced 2026-10-11 17:29:03 +02:00
fix: update default STT model to Qwen/Qwen3-ASR-0.6B and implement auto-migration of old values
This commit is contained in:
1 parent
5c6c3a9e30
commit
3a52cf3ae0
2 files changed
+10
-3
No files matched your search
+9
-2
@@ -898,7 +898,7 @@ export const App: React.FC = () => {
|
||||
const [sttProvider, setSttProvider] = useState<'browser' | 'qwen3-asr'>('browser');
|
||||
const [sttApiUrl, setSttApiUrl] = useState<string>('http://127.0.0.1:8000/v1');
|
||||
const [sttApiKey, setSttApiKey] = useState<string>('');
|
||||
const [sttModel, setSttModel] = useState<string>('qwen3-asr');
|
||||
const [sttModel, setSttModel] = useState<string>('Qwen/Qwen3-ASR-0.6B');
|
||||
|
||||
const [ttsApiUrl, setTtsApiUrl] = useState<string>('http://127.0.0.1:8000/v1');
|
||||
const [ttsApiKey, setTtsApiKey] = useState<string>('');
|
||||
@@ -1187,7 +1187,14 @@ export const App: React.FC = () => {
|
||||
if (val) setSttApiKey(val);
|
||||
});
|
||||
persistRead('eveflow_stt_model').then(val => {
|
||||
if (val) setSttModel(val);
|
||||
if (val) {
|
||||
if (val === 'qwen3-asr') {
|
||||
setSttModel('Qwen/Qwen3-ASR-0.6B');
|
||||
persistWrite('eveflow_stt_model', 'Qwen/Qwen3-ASR-0.6B');
|
||||
} else {
|
||||
setSttModel(val);
|
||||
}
|
||||
}
|
||||
});
|
||||
persistRead('eveflow_tts_api_url').then(val => {
|
||||
if (val) setTtsApiUrl(val);
|
||||
|
||||
@@ -63,7 +63,7 @@ export class AudioService {
|
||||
private sttProvider: 'browser' | 'qwen3-asr' = 'browser';
|
||||
private sttApiUrl = 'http://127.0.0.1:8000/v1';
|
||||
private sttApiKey = '';
|
||||
private sttModel = 'qwen3-asr';
|
||||
private sttModel = 'Qwen/Qwen3-ASR-0.6B';
|
||||
private mediaRecorder: MediaRecorder | null = null;
|
||||
private audioChunks: Blob[] = [];
|
||||
|
||||
|
||||
Reference in new issue
Block a user