Skip to content
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

fix(ios)!: linear rate adjustment #136

Merged

Conversation

dwassmer
Copy link
Contributor

@dwassmer dwassmer commented Sep 24, 2024

Closes: #134

Changes iOS rate mapping from
rateAdjustment-before
to a more predictable mapping
rateAdjustment-after
(x-axis = plugin speech rate, y-axis = native speech rate, assuming AVSpeechUtteranceDefaultSpeechRate is 0.5)

Note: Speech rate heavily depends on the selected tts-engine and voice. There will not be a perfect cross-platform speech rate match. From experimenting with android and iOS tts-engines and voices this adjustment seems to be a good compromise.
We should also consider removing the rate adjustment completely though. See a similar discussion on react-native-tts here. But that is another discussion.

Pull request checklist

Please check if your PR fulfills the following requirements:

  • The changes have been tested successfully.

@robingenz robingenz added breaking change Breaking change bug/fix Something isn't working labels Sep 24, 2024
Copy link
Member

@robingenz robingenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@robingenz robingenz changed the title fix(ios): linear rate adjustment fix(ios)!: linear rate adjustment Sep 24, 2024
@robingenz robingenz merged commit e573114 into capacitor-community:master Sep 25, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Breaking change bug/fix Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: speech rate behavior on iOS
2 participants