Closed david-allison closed 1 day ago
@david-allison I went through the code and found that there is already a place holder for future decisions.
Hence, We can just change the message type from the developer string to a valuable message such as :
--> {lan}
is not supported by the built-in TTS engine. Please install an external TTS engine or choose a supported language.
Letme know if thats okay I would start working on this issue.
I don't think we want a longer message here, we want a "help" link
Users don't have much time to read snackbars
If we are updating the message, listing the language & voice may be possible, but this could be a large string
Okay I successfully regenerated the issue. Basically the issue is not when you make a card and enable the tts support from ankidroid app. It shows a nice snackbar with help link for that to move to the article. But problem arises when we make card in Anki Desktop and sync it to the mobile and that language of tts is not supported in Ankidroid app due to tts engine incompatibility.
Solution is simple then, we can just show short and crisp snack bar message just to let user know what has happened and then give a Help
link section after the message. As we are doing for the normal in app
tts support error message.
Message can be : TTS Error : Missing language support. HELP
Same article section can help the user to resolve this error as well.
That looks like a great first step
It feels like an 'end goal' would be a dialog with:
{{tts-voices:}}
dialog fragment, so a user can see what's availableI'd be open to either:
Perfect, I start working on the second option i.e dialog implementation. It might take some time, Please assign me this issue.
Lovely! Please feel free to come to Discord and ask for advice if you need it
As a few hints:
Open this dialog to show a user the available TTS Voices: https://github.com/ankidroid/Anki-Android/blob/8e1c71a54c06816887b3213d66c8e424d32cfc4f/AnkiDroid/src/main/java/com/ichi2/anki/dialogs/TtsVoicesDialogFragment.kt
https://www.reddit.com/r/Anki/comments/1ekpa9h/comment/lgm4w2c/
{{tts ja_JP :vocab}}
in Anki Desktopja_JP
is not available (likely due to the user using a nonstandard TTS Engine)Text to speech error (APP_MISSING_VOICE)
Good first issue:
{{tts-voices:}}
dialog to the userReferences: