From 6d25ac17b27b92257b3628a27dac98829b1a67e7 Mon Sep 17 00:00:00 2001 From: tsukumi Date: Tue, 3 Dec 2024 14:10:40 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20AivisSpeech=20Engine=20=E4=BB=A5?= =?UTF-8?q?=E5=A4=96=E3=81=AE=E9=9F=B3=E5=A3=B0=E5=90=88=E6=88=90=E3=82=A8?= =?UTF-8?q?=E3=83=B3=E3=82=B8=E3=83=B3=E3=81=A7=E3=81=AE=E3=81=BF=E3=80=8C?= =?UTF-8?q?=E6=96=87=E5=86=85=E7=84=A1=E9=9F=B3=E5=80=8D=E7=8E=87=E3=80=8D?= =?UTF-8?q?=E3=82=92=E8=A1=A8=E7=A4=BA=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 本来はエンジンマニフェストの値を見た方が良いが、本家自体がそう実装してないので当面これで行く --- src/components/Talk/AudioInfo.vue | 43 +++++++++++++++++-------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/src/components/Talk/AudioInfo.vue b/src/components/Talk/AudioInfo.vue index 0d62aee1..b2e67172 100644 --- a/src/components/Talk/AudioInfo.vue +++ b/src/components/Talk/AudioInfo.vue @@ -516,25 +516,30 @@ const parameterConfigs = computed(() => [ }), key: "volumeScale", }, - { - label: "文内無音倍率", - tooltip: "文内無音時間の長さを調整できます", - sliderProps: { - modelValue: () => query.value?.pauseLengthScale ?? null, - disable: () => uiLocked.value, - max: SLIDER_PARAMETERS.PAUSE_LENGTH_SCALE.max, - min: SLIDER_PARAMETERS.PAUSE_LENGTH_SCALE.min, - step: SLIDER_PARAMETERS.PAUSE_LENGTH_SCALE.step, - scrollStep: SLIDER_PARAMETERS.PAUSE_LENGTH_SCALE.scrollStep, - scrollMinStep: SLIDER_PARAMETERS.PAUSE_LENGTH_SCALE.scrollMinStep, - }, - onChange: (pauseLengthScale: number) => - store.actions.COMMAND_MULTI_SET_AUDIO_PAUSE_LENGTH_SCALE({ - audioKeys: selectedAudioKeys.value, - pauseLengthScale, - }), - key: "pauseLengthScale", - }, + // AivisSpeech Engine 以外の音声合成エンジンでのみ「文内無音倍率」を表示する + ...(audioItem.value.voice.engineId !== store.getters.DEFAULT_ENGINE_ID + ? ([ + { + label: "文内無音倍率", + tooltip: "文内無音時間の長さを調整できます", + sliderProps: { + modelValue: () => query.value?.pauseLengthScale ?? null, + disable: () => uiLocked.value, + max: SLIDER_PARAMETERS.PAUSE_LENGTH_SCALE.max, + min: SLIDER_PARAMETERS.PAUSE_LENGTH_SCALE.min, + step: SLIDER_PARAMETERS.PAUSE_LENGTH_SCALE.step, + scrollStep: SLIDER_PARAMETERS.PAUSE_LENGTH_SCALE.scrollStep, + scrollMinStep: SLIDER_PARAMETERS.PAUSE_LENGTH_SCALE.scrollMinStep, + }, + onChange: (pauseLengthScale: number) => + store.actions.COMMAND_MULTI_SET_AUDIO_PAUSE_LENGTH_SCALE({ + audioKeys: selectedAudioKeys.value, + pauseLengthScale, + }), + key: "pauseLengthScale", + }, + ] as ParameterConfig[]) + : []), { label: "開始無音(秒)", tooltip: "音声先頭の無音時間の長さを調整できます",