Skip to content

Commit

Permalink
Fix: 空のAccentPhraseで無音を返すように
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Feb 5, 2024
1 parent bd2dc69 commit 7e7c84c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion providers/synthesis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7e7c84c

Please sign in to comment.