Skip to content

Commit

Permalink
chore: fix synthesis (#12)
Browse files Browse the repository at this point in the history
* wait 10 secs on `entersState`

* truncate more than 200 characters
  • Loading branch information
yuimarudev authored Feb 14, 2024
1 parent 5b41e37 commit ce51242
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/common/cleanContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ export default function cleanContent(
.replaceAll(
timestampPattern,
generateReplacer((_) => null, "タイムスタンプ"),
);
)
.slice(0, 200);
}

function generateReplacer(
Expand Down
2 changes: 1 addition & 1 deletion src/voice/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class Room {

this.audioPlayer.play(resource);

await entersState(this.audioPlayer, AudioPlayerStatus.Idle, 5_000).catch(
await entersState(this.audioPlayer, AudioPlayerStatus.Idle, 10_000).catch(
() => this.audioPlayer.stop(),
);
} finally {
Expand Down

0 comments on commit ce51242

Please sign in to comment.