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

TTS: Speech rate in SpeechOptions and more #14851

Open
ac-lap opened this issue Apr 30, 2023 · 4 comments
Open

TTS: Speech rate in SpeechOptions and more #14851

ac-lap opened this issue Apr 30, 2023 · 4 comments
Labels
area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info proposal/open t/enhancement ☀️ New feature or request
Milestone

Comments

@ac-lap
Copy link

ac-lap commented Apr 30, 2023

Description

The current support for TTS in MAUI seems very basic. I have following requests -

  1. Control speech rate/speed
    SpeechOptions does not contain any property to control speech rate, and this should be a P0 scenario to be supported. Any app which has TTS functionality, cannot offer it without speech rate control.
    Is there any workaround for Android for this?

  2. Callback/Event to track which utterance has been completed
    Currently SpeakAsync() is fire and forget, there should be some mechanism to pass Id and get callback once the utterance is complete, so that program can track the progress. There are some ways to do it outside from the program but it could be error prone, but out of the box would me preferred and better.

  3. Support for SSML?

Public API Changes

SpeechOptions

ITextToSpeech.SpeakAsync

Intended Use-Case

I have an epub book reader app on UWP, and I am trying to port it to Android. The app offers TTS support, and most users prefer to set the speech rate as per the preference. The current lack of speech control in MAUI appears to be a blocker.

Any short-term workaround available for Android would help me unblock.

@jfversluis jfversluis added the area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info label May 1, 2023
@jfversluis jfversluis added this to the Backlog milestone May 1, 2023
@ghost
Copy link

ghost commented May 1, 2023

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

@jfversluis jfversluis added the t/enhancement ☀️ New feature or request label May 1, 2023
@jfversluis
Copy link
Member

SpeechOptions does not contain any property to control speech rate, and this should be a P0 scenario to be supported.

While this definitely is a P0 scenario for your app, this might not be true for other users and thus it's hard for us to justify working on this at this time. There is a couple of things you can do to unblock yourself:

  • Investigate the code for TTS and see if you can extend our code for your needs
  • If that's not possible you can copy the code we have into your own project and extend if from there with what you need
  • If it is possible, you could consider opening a PR with your changes so that we can all benefit from that
  • Find a third-party alternative

Good luck!

@tiaanv
Copy link

tiaanv commented Jun 8, 2023

+1 for this. I will take a look if I can implement it, and then do a PR.

@whann0205
Copy link

whann0205 commented Sep 28, 2024

I really would also like to see that kind of feature.
At the moment if short words in german are spoken
such as "zählen" it is nearly impossible to understand it.
Lowering the rate might solve that one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info proposal/open t/enhancement ☀️ New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants