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

Speaking Rate #62

Open
KPrerana4 opened this issue Nov 21, 2023 · 2 comments
Open

Speaking Rate #62

KPrerana4 opened this issue Nov 21, 2023 · 2 comments
Labels
feature New feature or request

Comments

@KPrerana4
Copy link

While running voiceOver tests using guidepup - we have observed that speaking rate is very low because of which our tests are taking too long. Could you please let us know if there is a way increase speaking rate in guidepup.

@cmorten cmorten added the feature New feature or request label Nov 25, 2023
@cmorten
Copy link
Collaborator

cmorten commented Nov 29, 2023

Hi @KPrerana4 👋

Sorry for the slow reply. Afaik Guidepup currently configures VoiceOver (while it is being automated) to be set to the max speaking rate, see https://github.com/guidepup/guidepup/blob/main/src/macOS/VoiceOver/configureSettings.ts#L62 but open to suggestions!

One reason it can be quite slow is waiting for the full spoken text, if all you care about is the initial spoken text and not the "next page" of additional command information / description then you can use the capture option when using the start method to only capture initial text:

voiceOver.start({ capture: "initial" });

This is typically a fair bit faster.

In the meantime will have a look to see if there are any other options that could be used to speed it up - PRs welcome if have any ideas!

@jlp-craigmorten
Copy link
Contributor

jlp-craigmorten commented Dec 1, 2023

Ok, I've found that we can eliminate the delay between the main announcement and the subsequent hint speech which saves 400ms per interaction. See #65 raincheck on that as introduces some stability issues on capturing all the output, more work needed.

I've had a play whether different voices are faster etc. and if can abuse the speach rate to be over 100%, but there doesn't seem to be much can do here. There might be some extra ms savings if reduce verbosity, or start disabling things like punctuation verbosity, but think it is minimal unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants