diff --git a/apps/app/src/plugins/speech-engines/say/NvSettings.vue b/apps/app/src/plugins/speech-engines/say/NvSettings.vue index 0dab9a99..e1ac69fa 100644 --- a/apps/app/src/plugins/speech-engines/say/NvSettings.vue +++ b/apps/app/src/plugins/speech-engines/say/NvSettings.vue @@ -1,32 +1,38 @@ diff --git a/apps/app/src/plugins/speech-engines/say/register.ts b/apps/app/src/plugins/speech-engines/say/register.ts index 8dfc0cd1..0962503c 100644 --- a/apps/app/src/plugins/speech-engines/say/register.ts +++ b/apps/app/src/plugins/speech-engines/say/register.ts @@ -8,35 +8,35 @@ import { getProperty, setProperty } from './store' const getSelectedVoice = () => getProperty('selectedVoice') registerEngine({ - id: ENGINE_ID, - name: ENGINE_NAME, - category: 'local', - getSelectedVoice, - getVoiceName, - getCredentials() { - return {} - }, - getPayload({ text, translatedText, voice }) { - return { - text: translatedText || text, - voice: voice || getSelectedVoice(), - speed: getProperty('speed') / 100, - } - }, - getLanguageCode() { - return DEFAULT_LANGUAGE_CODE - }, - synthesizeSpeech({ credentials, payload }) { - return api('local').post( - '/tts/say/synthesize-speech', - { - credentials, - payload, - }, - { responseType: 'blob' }, - ) - }, - voiceSelectComponent: NvVoiceSelect, - settingsComponent: NvSettings, - store: { setProperty, getProperty }, + id: ENGINE_ID, + name: ENGINE_NAME, + category: 'local', + getSelectedVoice, + getVoiceName, + getCredentials() { + return {} + }, + getPayload({ text, translatedText, voice }) { + return { + text: translatedText || text, + voice: voice || getSelectedVoice(), + speed: getProperty('speed') / 100, + } + }, + getLanguageCode() { + return DEFAULT_LANGUAGE_CODE + }, + synthesizeSpeech({ credentials, payload }) { + return api('local').post( + '/tts/say/synthesize-speech', + { + credentials, + payload, + }, + { responseType: 'blob' }, + ) + }, + voiceSelectComponent: NvVoiceSelect, + settingsComponent: NvSettings, + store: { setProperty, getProperty }, }) diff --git a/apps/app/src/plugins/speech-engines/say/store.ts b/apps/app/src/plugins/speech-engines/say/store.ts index 6ebffdf1..e9fc393a 100644 --- a/apps/app/src/plugins/speech-engines/say/store.ts +++ b/apps/app/src/plugins/speech-engines/say/store.ts @@ -2,7 +2,7 @@ import { definePluginStore } from '@/store' import { ENGINE_ID } from './shared' export const { setProperty, getProperty } = definePluginStore(ENGINE_ID, { - selectedVoice: null, - favoriteVoiceIds: [], - speed: 100, + selectedVoice: null, + favoriteVoiceIds: [], + speed: 100, })