Skip to content

Android: Improve UI for downloading updated voice typing models #12145

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

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Apr 22, 2025

Summary

Previously, updated models were downloaded after starting voice typing with the old model. This change adjusts that behavior.

With this change, a dialog is shown if the downloaded voice typing model is outdated. The dialog allows users to choose to download the updated model or continue using the outdated model.

Before this change, an outdated model would show the "Download updated model" button in the voice typing banner and start voice with the old model.

Resolves #11998.

Screenshot

Dialog: New model available: A new voice typing model is available. Do you want to download it?

Testing plan

On Android 13:

  1. Change the voice typing URL in settings
  2. Open a note
  3. Start voice typing
  4. Click "Cancel" in the "Download updated model?" dialog.
  5. Say something and click "Done".
  6. Verify that the text is added to the document.
  7. Start voice typing again.
  8. Click "OK" in the "Download updated model?" dialog.
  9. Wait for the model to download.
  10. Verify that voice typing starts.
  11. Say something.
  12. Click "Done".
  13. Verify that text from step 11 is transcribed.

Previously, updated models were downloaded after starting voice typing
with the old model. This change adjusts that behavior.

With this change, a dialog is shown if the downloaded voice typing model
is outdated. The dialog allows users to choose to download the updated
model or continue using the outdated model.

Previously, an outdated model would show the "Download updated model" button
in the voice typing banner and start voice with the old model.

Testing:
1. Change the voice typing URL in settings
2. Open a note
3. Start voice typing
4. Click "Cancel" in the "Download updated model?" dialog.
5. Say something and click "Done".
6. Verify that the text is added to the document.
7. Start voice typing again.
8. Click "OK" in the "Download updated model?" dialog.
9. Wait for the model to download.
10. Verify that voice typing starts.
11. Say something.
12. Click "Done".
13. Verify that text from step 11 is transcribed.
@laurent22 laurent22 merged commit 6bb2893 into laurent22:dev Apr 24, 2025
11 checks passed
@personalizedrefrigerator personalizedrefrigerator changed the title Android: Improve UI for downloading updated models Android: Improve UI for downloading updated voice typing models Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Voice typing records speech even when downloading new model
2 participants