read-aloud icon indicating copy to clipboard operation
read-aloud copied to clipboard

[Feature request] Playback speed buttons in the main windows

Open iamashwin99 opened this issue 3 years ago • 3 comments

Hi Thank you so much for this very useful extension. I just wanted to request if it would be possible to add the playback speed buttons on the home screen itself. And possibly add a keyboard shortcut for the same. Thanks in advance. Home page where the playback speed button would be useful: Home page where the playback speed button would be usefull chrome://extensions/shortcuts page where we can add keyboard shortcuts: chrome://extensions/shortcuts page where we can add keyboard shortcuts

iamashwin99 avatar Jan 06 '22 03:01 iamashwin99

While the popup is in the playing state, the settings icon is disabled. I would prefer if the settings icon remains there even while playback is going on so that I can change the speed and the voice etc. dynamically as the playback is going on (this gives easier feedback while changing speed for instance)

If this is not something the author is willing to update, could you please let me know how one would go about doing this, as I would very much like to fork it with this feature for my personal use. I tried a bit of debugging and found out that popup.js toggles the settings button visibility continuously, https://github.com/ken107/read-aloud/blob/master/js/popup.js#L111 , I'm just not sure what modifications are required. Any help would be greatly appreciated.

iamashwin99 avatar Jun 04 '22 15:06 iamashwin99

You can replace that line with

$("#btnSettings").toggle(true);

That should keep it visible always.

However, the ability to change reading speed mid-speech depends on which voice the user are using. Native TTS voices require the speech to be stopped and restarted with different parameters. Cloud voices generate audio files, the speed of their playback can be modified mid-speech. So you might need to do some extra work to make it work smoothly

ken107 avatar Jun 04 '22 20:06 ken107

I'd vote for this to be pulled in to the main branch if possible as well. I find myself changing the speed each time I view a different page, and it is a bit inconvenient to restart playback at the midpoint of a page once I have updated the settings.

kellub avatar Aug 03 '22 13:08 kellub