diff --git a/src/backend/electron/main.ts b/src/backend/electron/main.ts index 4e934323..67aadde4 100644 --- a/src/backend/electron/main.ts +++ b/src/backend/electron/main.ts @@ -422,7 +422,7 @@ const retryShowSaveDialogWhileSafeDir = async < type: "warning", buttons: ["保存場所を変更", "無視して保存"], defaultId: 0, - title: "警告", + title: "保存先の警告", cancelId: 0, }); return warningResult.response === 0 ? "retry" : "forceSave"; diff --git a/src/components/Dialog/DictionaryManageDialog.vue b/src/components/Dialog/DictionaryManageDialog.vue index e9ee0b39..46f623fe 100644 --- a/src/components/Dialog/DictionaryManageDialog.vue +++ b/src/components/Dialog/DictionaryManageDialog.vue @@ -316,6 +316,7 @@ const loadingDictProcess = async () => { ); } catch { const result = await store.actions.SHOW_ALERT_DIALOG({ + type: "error", title: "辞書の取得に失敗しました", message: "音声合成エンジンの再起動をお試しください。", }); @@ -328,6 +329,7 @@ const loadingDictProcess = async () => { await createUILockAction(store.actions.SYNC_ALL_USER_DICT()); } catch { await store.actions.SHOW_ALERT_DIALOG({ + type: "error", title: "辞書の同期に失敗しました", message: "音声合成エンジンの再起動をお試しください。", }); @@ -471,7 +473,8 @@ const play = async () => { window.backend.logError(e); nowGenerating.value = false; void store.actions.SHOW_ALERT_DIALOG({ - title: "生成に失敗しました", + type: "error", + title: "音声の生成に失敗しました", message: "音声合成エンジンの再起動をお試しください。", }); return; @@ -548,6 +551,7 @@ const saveWord = async () => { }); } catch { void store.actions.SHOW_ALERT_DIALOG({ + type: "error", title: "単語の更新に失敗しました", message: "音声合成エンジンの再起動をお試しください。", }); @@ -573,6 +577,7 @@ const saveWord = async () => { ); } catch { void store.actions.SHOW_ALERT_DIALOG({ + type: "error", title: "単語の登録に失敗しました", message: "音声合成エンジンの再起動をお試しください。", }); @@ -603,6 +608,7 @@ const deleteWord = async () => { ); } catch { void store.actions.SHOW_ALERT_DIALOG({ + type: "error", title: "単語の削除に失敗しました", message: "音声合成エンジンの再起動をお試しください。", }); diff --git a/src/components/Dialog/EngineManageDialog.vue b/src/components/Dialog/EngineManageDialog.vue index 0698cd54..39c21e1a 100644 --- a/src/components/Dialog/EngineManageDialog.vue +++ b/src/components/Dialog/EngineManageDialog.vue @@ -488,6 +488,7 @@ const getEngineDirValidationMessage = (result: EngineDirValidationResult) => { const addEngine = async () => { const result = await store.actions.SHOW_WARNING_DIALOG({ + type: "warning-light", title: "音声合成エンジン追加の確認", message: "この操作はコンピュータに損害を与える可能性があります。音声合成エンジンの配布元が信頼できない場合は追加しないでください。", @@ -589,6 +590,7 @@ const restartSelectedEngine = () => { const requireReload = async (message: string) => { const result = await store.actions.SHOW_WARNING_DIALOG({ + type: "warning-light", title: "再読み込みが必要です", message: message, actionName: "再読み込み", diff --git a/src/components/Dialog/ModelManageDialog.vue b/src/components/Dialog/ModelManageDialog.vue index 7ef43a2f..ebc1a467 100644 --- a/src/components/Dialog/ModelManageDialog.vue +++ b/src/components/Dialog/ModelManageDialog.vue @@ -350,6 +350,7 @@ const installModel = async () => { console.error(error); if (error instanceof ResponseError) { void store.actions.SHOW_ALERT_DIALOG({ + type: "error", title: "インストール失敗", message: `音声合成モデルのインストールに失敗しました。 (HTTP Error ${error.response.status} / ${await error.response.text()})`, @@ -363,6 +364,7 @@ const installModel = async () => { await store.actions.CREATE_ALL_DEFAULT_PRESET(); } else { void store.actions.SHOW_ALERT_DIALOG({ + type: "error", title: "インストール失敗", // eslint-disable-next-line @typescript-eslint/restrict-template-expressions message: `音声合成モデルのインストールに失敗しました。(${error})`, @@ -403,6 +405,7 @@ const unInstallAivmModel = async () => { console.error(error); if (error instanceof ResponseError) { void store.actions.SHOW_ALERT_DIALOG({ + type: "error", title: "アンインストール失敗", message: `音声合成モデル「${activeAivmInfo.value?.manifest.name}」のアンインストールに失敗しました。 (HTTP Error ${error.response.status} / ${await error.response.text()})`, @@ -416,6 +419,7 @@ const unInstallAivmModel = async () => { await store.actions.CREATE_ALL_DEFAULT_PRESET(); } else { void store.actions.SHOW_ALERT_DIALOG({ + type: "error", title: "アンインストール失敗", // eslint-disable-next-line @typescript-eslint/restrict-template-expressions message: `音声合成モデル「${activeAivmInfo.value?.manifest.name}」のアンインストールに失敗しました。(${error})`, diff --git a/src/components/Dialog/SettingDialog/SettingDialog.vue b/src/components/Dialog/SettingDialog/SettingDialog.vue index c09e7740..d5b76b65 100644 --- a/src/components/Dialog/SettingDialog/SettingDialog.vue +++ b/src/components/Dialog/SettingDialog/SettingDialog.vue @@ -731,6 +731,7 @@ const acceptRetrieveTelemetryComputed = computed({ } void store.actions.SHOW_ALERT_DIALOG({ + type: "warning-light", title: "ソフトウェア利用状況のデータ収集の無効化", message: "ソフトウェア利用状況のデータ収集を完全に無効にするには、AivisSpeech を再起動する必要があります。", diff --git a/src/components/Dialog/TextDialog/common.ts b/src/components/Dialog/TextDialog/common.ts index b7b98451..07ab57a3 100644 --- a/src/components/Dialog/TextDialog/common.ts +++ b/src/components/Dialog/TextDialog/common.ts @@ -29,8 +29,9 @@ export const getColor = (dialogType: DialogType) => { case "warning-light": return "warning-light"; case "question": - case "info": return "warning-light"; + case "info": + return "primary"; case "none": return "display"; default: diff --git a/src/components/Talk/AudioDetail.vue b/src/components/Talk/AudioDetail.vue index 1898b670..f7ff427e 100644 --- a/src/components/Talk/AudioDetail.vue +++ b/src/components/Talk/AudioDetail.vue @@ -255,6 +255,7 @@ const play = async () => { // AivisSpeech Engine から音声合成エラーが返された if (e instanceof Error && e.message === "Response returned an error code") { void store.actions.SHOW_ALERT_DIALOG({ + type: "error", title: "音声合成に失敗しました", message: msg ?? @@ -262,6 +263,7 @@ const play = async () => { }); } else { void store.actions.SHOW_ALERT_DIALOG({ + type: "error", title: "再生に失敗しました", message: msg ?? "音声合成エンジンの再起動をお試しください。", }); diff --git a/src/components/Talk/TalkEditor.vue b/src/components/Talk/TalkEditor.vue index 0650dd6a..f6ddef20 100644 --- a/src/components/Talk/TalkEditor.vue +++ b/src/components/Talk/TalkEditor.vue @@ -582,6 +582,7 @@ const loadDraggedFile = (event: { dataTransfer: DataTransfer | null }) => { break; default: void store.actions.SHOW_ALERT_DIALOG({ + type: "error", title: "対応していないファイルです", message: "テキストファイル (.txt) と AivisSpeech プロジェクトファイル (.aisp) に対応しています。", diff --git a/src/components/Talk/ToolBar.vue b/src/components/Talk/ToolBar.vue index c584926a..20e7784e 100644 --- a/src/components/Talk/ToolBar.vue +++ b/src/components/Talk/ToolBar.vue @@ -119,6 +119,7 @@ const playContinuously = async () => { } catch (e) { const msg = handlePossiblyNotMorphableError(e); void store.actions.SHOW_ALERT_DIALOG({ + type: "error", title: "再生に失敗しました", message: msg ?? "音声合成エンジンの再起動をお試しください。", }); @@ -134,6 +135,7 @@ const play = async () => { } catch (e) { const msg = handlePossiblyNotMorphableError(e); void store.actions.SHOW_ALERT_DIALOG({ + type: "error", title: "再生に失敗しました", message: msg ?? "音声合成エンジンの再起動をお試しください。", }); diff --git a/src/store/project.ts b/src/store/project.ts index c27353fc..5cf72310 100755 --- a/src/store/project.ts +++ b/src/store/project.ts @@ -274,7 +274,7 @@ export const projectStore = createPartialStore({ ) { await showAlertDialog({ type: "info", - title: "保存", + title: "プロジェクトファイルの保存先の変更", message: `編集中のプロジェクトが ${filePath} に切り替わりました。`, }); } @@ -356,7 +356,7 @@ export const projectStore = createPartialStore({ const result: number = await showQuestionDialog({ type: "warning", - title: "警告", + title: '変更の保存確認', message, buttons: ["キャンセル", "破棄", "保存"], cancel: 0, diff --git a/src/store/setting.ts b/src/store/setting.ts index 987aa185..8599d190 100644 --- a/src/store/setting.ts +++ b/src/store/setting.ts @@ -365,7 +365,7 @@ export const settingStore = createPartialStore({ title: "対応する GPU デバイスが見つかりません", message: "GPU モードの利用には対応する GPU デバイスが必要です。\n" + - "このまま GPU モードに変更すると音声合成エンジンエラーが発生する可能性があります。本当に変更しますか?", + "このまま GPU モードに変更すると、音声合成エンジンでエラーが発生する可能性があります。本当に変更しますか?", buttons: ["変更しない", "変更する"], cancel: 0, }); diff --git a/src/store/ui.ts b/src/store/ui.ts index 39753b2b..17e152be 100644 --- a/src/store/ui.ts +++ b/src/store/ui.ts @@ -492,6 +492,7 @@ export const uiStore = createPartialStore({ const activeAudioKey = getters.ACTIVE_AUDIO_KEY; if (activeAudioKey == undefined) { void actions.SHOW_ALERT_DIALOG({ + type: "warning-light", title: "テキスト欄が選択されていません", message: "音声を書き出したいテキスト欄を選択してください。", });