|
@@ -150,12 +150,13 @@ const getTTS = () => {
|
|
|
if (state == "1") {
|
|
|
localStorage.setItem('ttsState', "0");
|
|
|
ttsState.value = false;
|
|
|
- let speech = new Speech();
|
|
|
- if (!speech.hasBrowserSupport()) {
|
|
|
- proxy?.$modal.msgWarning(`不支持系统TTS,建议切换百度TTS`);
|
|
|
- } else {
|
|
|
- proxy?.$modal.msgSuccess('已设为系统TTS');
|
|
|
- }
|
|
|
+ proxy?.$modal.msgSuccess('已设为系统TTS');
|
|
|
+ // let speech = new Speech();
|
|
|
+ // if (!speech.hasBrowserSupport()) {
|
|
|
+ // proxy?.$modal.msgWarning(`不支持系统TTS,建议切换百度TTS`);
|
|
|
+ // } else {
|
|
|
+ // proxy?.$modal.msgSuccess('已设为系统TTS');
|
|
|
+ // }
|
|
|
} else {
|
|
|
localStorage.setItem('ttsState', "1");
|
|
|
ttsState.value = true;
|