ImperialSquid / zotero-zotts

A Zotero plugin adding text to speech (TTS) functionality to various screens
GNU Affero General Public License v3.0
86 stars 1 forks source link

[FR]: Shortcut for Switching between (favourite?) Voices / Languages #102

Closed LordDerMoff closed 1 week ago

LordDerMoff commented 2 months ago

Checklist

Feature or improvement you want

A Shortcut to switch between different Voices/Languages. Pressing Ctrl + L (or anything, really) could switch to another installed Voice. Preferably only between Voices which have been starred in the setting (but this would be another feature request I guess)

Why should this be added?

I guess most people read papers minimum in their native language and english. (My Library for example contains 3 different languages) But as the Voices are tailored to a specific Language, they sound horribly distorted if used in another.

Granted, it is possible to go through the list in the settings and choose the right voice/language. Doable for each specific pdf, but this is cumbersome when you only want to hear the abstracts in the library. But to function properly, one would have to select favourite voices first - not to sort through the whole list each time with the shortcut. So maybe more complicated than it might seem.

Anyhow, thanks for this plugin! Cheers

Screenshots / Drawings / Technical details

No response

ImperialSquid commented 2 months ago

Hmm, I definitely think it's a good idea to allow multiple voice favourites/switching between them/etc. However, I'm a bit reluctant to add it as the default behaviour since I'm keen for ZoTTS to remain as simple to use as possible for most people.

I think I'd be ok with adding it as an advanced feature (down at the bottom of the preferences with substitutions), there you could see a list of current favourites, add or remove them, and specify a shortcut key.

Something like this: Screenshot_20240916_174833_Joplin.jpg

Would that work for you?

Edit: the ctrl + shift + X is a placeholder, I'm also not sure about whether it belongs here or with the other shortcuts, all TBD

LordDerMoff commented 2 months ago

I didn't think about the complexity it would add. Still i think it would be a very useful feature if its placed as an advanced setting.

Your sketch looks good, its simple but effective! That's exactly what i had in mind, I cant think about something to add 👍

ImperialSquid commented 1 week ago

Hi @LordDerMoff, apologies for the delay (lots of stuff going on, no rest for the wicked lol)

Favourites should now be in the latest version of ZoTTS! (your plugin will update automatically so you shouldn't need to do anything)

Let me know everything works well for you or if you run into any issues.