From 7e7c84c6a40d555217057d8f3f366a0dcf9b7fd0 Mon Sep 17 00:00:00 2001 From: sevenc-nanashi Date: Mon, 5 Feb 2024 23:10:30 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=E7=A9=BA=E3=81=AEAccentPhrase=E3=81=A7?= =?UTF-8?q?=E7=84=A1=E9=9F=B3=E3=82=92=E8=BF=94=E3=81=99=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- providers/synthesis.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/providers/synthesis.ts b/providers/synthesis.ts index 43e6eab..0175c31 100644 --- a/providers/synthesis.ts +++ b/providers/synthesis.ts @@ -192,7 +192,10 @@ const synthesisProvider: Provider = ({ baseClient, app }) => { const body = { speakerUuid: speakerUuid, styleId: styleId, - text: "この文章が読み上げられているのはバグです。", + // TODO: 無音はここより前で返すようにしたい + text: accentPhrases.length > 0 + ? "この文章が読み上げられているのはバグです。" + : "", prosodyDetail: prosody, speedScale: audioQuery.speedScale, volumeScale: audioQuery.volumeScale,