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,