-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Added speed control option for Text-to-Speech module #1317
base: main
Are you sure you want to change the base?
Conversation
06e0d55
to
6688ec8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@heropj Thank you again very much for this PR. To me it works fine, but could you please save in the preferences (beside the chosen voice) the speed, so the user does not have always to change back the TTS speed to his prefered speed?
@@ -54,6 +58,16 @@ void TextToSpeechBar::setLocale(const QLocale& locale) | |||
} | |||
} | |||
|
|||
void TextToSpeechBar::setupSpeedOptionsComboBox() | |||
{ | |||
ui->speedLabel->setText(gt("speed")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you forgot to include the change to resources/i18n/en.json
. Please also don't forget to update resources/i18n/qqq.json
too.
ui->speedComboBox->setMaxVisibleItems(10); | ||
ui->speedComboBox->setLineEdit(new ComboBoxLineEdit(ui->speedComboBox)); | ||
|
||
QStringList speedOptions = {"0.25x","0.50x","0.75x","1.00x","1.25x","1.50x","1.75x","2.00x"}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we include x in the speed rate value? Won't internationalization be slightly affected? In youtube there is no x.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍👍i'll remove it.
hello @kelson42 , @veloman-yunkan do we need a shortcut for choosing speed also?? if yes then what should be the key-combination.. |
fix #1299