Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

[Bug] TextToSpeech on Android overrides system set speech rate with value 1.0 #2092

Open
jpritchard-isl opened this issue Jun 22, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@jpritchard-isl
Copy link

Description

The user set system speech rate value is overruled by TextToSpeech on the Android platform by the following line. The system configured speech rate should be used, rather than overruled.

/TextToSpeech/TextToSpeech.android.cs:150
tts.SetSpeechRate(1.0f);

Suggest removing this line until support for specifying speech rate is implemented as per feature request #715

Steps to Reproduce

  1. On Android, Settings, Text-to-speech output, set the Speech rate to an extreme value (high or low)
  2. Call Xamarin.Essentials.TextToSpeech.SpeakAsync(...)

Expected Behavior

Spoken at the speech rate set in Android settings.

Actual Behavior

Spoken at medium speech rate.

Basic Information

  • Version with issue:
  • Last known good version:
  • IDE: VS2022
  • Platform Target Frameworks:
    • Android: 13
  • Nuget Packages: n/a
  • Affected Devices: All
@jpritchard-isl jpritchard-isl added the bug Something isn't working label Jun 22, 2023
@jpritchard-isl
Copy link
Author

For context, this is leading to unexpected results for our customers who expected the system speech settings to control the speech made by our application. By always setting this to 1.0 it breaks the users ability to control the speech rate consitently for all their applications.

@jpritchard-isl
Copy link
Author

Further, in regards to the original bug fix #786 that introduced this issue, I would expect the behaviour to remain the same for android devices that have the system speech rate set to middle value. Only those were the value has been set lower of higher will see a change in behaviour to be consistent with other applications on those devices.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant