Skip to content

Commit 7e7c84c

Browse files
Fix: 空のAccentPhraseで無音を返すように
1 parent bd2dc69 commit 7e7c84c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

providers/synthesis.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,10 @@ const synthesisProvider: Provider = ({ baseClient, app }) => {
192192
const body = {
193193
speakerUuid: speakerUuid,
194194
styleId: styleId,
195-
text: "この文章が読み上げられているのはバグです。",
195+
// TODO: 無音はここより前で返すようにしたい
196+
text: accentPhrases.length > 0
197+
? "この文章が読み上げられているのはバグです。"
198+
: "",
196199
prosodyDetail: prosody,
197200
speedScale: audioQuery.speedScale,
198201
volumeScale: audioQuery.volumeScale,

0 commit comments

Comments
 (0)