Arabic fields can't play audios with 'Replay Audio' on AnkiDroid, not automatically nor manually

I have a card on which’s backside has multiple fields that contain different languages with audios generated by AwesomeTTS.

On the desktop every language works fine but on AnkiDroid all the languages replay audio except Arabic and gives an error message: “Text to speech error (APP_MISSING_VOICES)”

And on my device every required language is installed with Google TTS.

Are these pre-generated audio files attached to your notes – [sound:...mp3], “batch,” “collection”? Or are they TTS tags on your card templates that need to be read by a TTS service when you review your cards – {{tts lang:...}}, “on-the-fly,” “realtime”?

Audio files aren’t attached to the notes.

AnkiDroid uses your phone’s installed TTS services and voices to play those TTS fields. Those may or may not be the same as what you have available to you through AwesomeTTS. If you use a Samsung device, you may want to at least install Google’s TTS (“Speech Recognition and Synthesis”) on your device, to get a wider variety of voices. But there may be other services that offer better support for Arabic.

Once you have the service and language that you want installed – AnkiDroid User Manual – you can use the same syntax as on Anki Desktop – Field Replacements - Anki Manual – to select and set up the voice.

Speech Recognition and Synthesis and the voice data are installed on my device and still Arabic text-to-speech doesn’t work and shows this error message: Text to speech error (APP_MISSING_VOICES)

But I have other languages too in different fields, those just work fine without any issue.

In the older versions of the app, if AnkiDroid couldn’t detect the language automatically there was an option to manually assign the language for tts, even then Arabic was missing in that list.

What voices do you see when you list all available voices on your template (see the link for the syntax)?

What is the exact text of your TTS tag in your template?

That’s still available, but it generally isn’t necessary since TTS has been updated to use the same syntax as Anki Desktop, so it might not be showing up by default. Go to Settings > Appearance > App bar buttons, find that option and make sure it will show.

Back Template

{{FrontSide}}

<br>

<div style='

font-family: "Sakkal Majalla";

font-size: 34px;'>

{{العربية}}

<div class="word-audio">

{{tts ar_AR voices=AwesomeTTS:العربية}}</div>

<hr>

{{التفاصيل}}

<div class="word-audio">

{{tts ar_AR voices=AwesomeTTS:التفاصيل}}</div>

</div>

<hr>

<div style='

font-family: "Noto Serif JP Black";

font-size: 27px;

color: silver;'>

{{日本語}}

<div class="word-audio">

{{tts ja_JP voices=AwesomeTTS:日本語}}</div>

</div>

Okay, I see – you’re only choosing an AwesomeTTS voice, which AnkiDroid cannot provide. See the link to the AnkiDroid manual above, which explains how to add a tag for Android.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.