Do not skip silences if volume is 0 or video is muted

This commit is contained in:
TC
2022-11-20 21:54:23 +01:00
parent 3fb219fcd1
commit 335d515e22

View File

@ -19,8 +19,16 @@ module.exports = () => {
isSilent = false;
});
speechEvents.on("stopped_speaking", function () {
if (!(video.paused || video.seeking || video.ended)) {
speechEvents.on("stopped_speaking", function () {
if (
!(
video.paused ||
video.seeking ||
video.ended ||
video.muted ||
video.volume === 0
)
) {
isSilent = true;
skipSilence();
}