Skip to content

Commit

Permalink
added debug messages for volume, #420, #81
Browse files Browse the repository at this point in the history
  • Loading branch information
klues committed Sep 19, 2024
1 parent 34f6f36 commit 7e9ea9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/js/service/speechService.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ speechService.speak = function (textOrOject, options) {
msg.pitch = isSelectedVoice && !options.useStandardRatePitch ? _voicePitch : 1;
msg.rate = options.rate || (isSelectedVoice && !options.useStandardRatePitch ? _voiceRate : 1);
msg.volume = userSettings.systemVolume / 100.0;
log.debug("speak volume", userSettings.systemVolume);
if (options.progressFn) {
msg.addEventListener('boundary', options.progressFn);
msg.addEventListener('end', options.progressFn);
Expand Down
1 change: 1 addition & 0 deletions src/js/service/youtubeService.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ youtubeService.setVolume = function (volume, initSet) {
if (playerVolume === 0) {
player.mute();
}
log.debug("yt volumes (system, yt, result)", userSettings.systemVolume, volume, playerVolume);
if (!initSet) {
MainVue.setTooltip(i18nService.t('youTubeVolume', volume), {
revertOnClose: true,
Expand Down

0 comments on commit 7e9ea9e

Please sign in to comment.