Numerical Pronunciation For Language Learners (just an idea)

A: set Integer min to user prompt.

A: set Integer max to user prompt.

A: set Boolean insession to True.

A: change system language to preset (Main question: is this feasible as an action or plugin?)

REPEAT WHILE CONDITION INSESSION=TRUE
C: check constraint, letzhearit is False
A: set Integer learnthisnumber to random, > lv=min AND < lv=max.

A: set Boolean letzhearit to True.

A: set Boolean letzhearit to user prompt. (Prompt to include lv=learnthisnumber as magic text for user to read. Idea is the user can attempt to speak the number correctly in the language chosen before tapping OK.)

IF LETZHEARIT=TRUE
A: speak text "lv=learnthisnumber." (The TTS speaks the number in the foreign language so user can compare own pronunciation with the Android voice's.)

ELSE
A: set Boolean insession to user prompt (where True text offers to generate new number and False text offers to end the session).

END IF

END REPEAT

A: change system language back to English.
 
Last edited:

Andydroid

Member
A: set Integer min to user prompt.

A: set Integer max to user prompt.

A: set Boolean insession to True.

A: change system language to preset (Main question: is this feasible as an action or plugin?)

REPEAT WHILE CONDITION INSESSION=TRUE
C: check constraint, letzhearit is False
A: set Integer learnthisnumber to random, > lv=min AND < lv=max.

A: set Boolean letzhearit to True.

A: set Boolean letzhearit to user prompt. (Prompt to include lv=learnthisnumber as magic text for user to read. Idea is the user can attempt to speak the number correctly in the language chosen before tapping OK.)

IF LETZHEARIT=TRUE
A: speak text "lv=learnthisnumber." (The TTS speaks the number in the foreign language so user can compare own pronunciation with the Android voice's.)

ELSE
A: set Boolean insession to user prompt (where True text offers to generate new number and False text offers to end the session).

END IF

END REPEAT

A: change system language back to English.
In the Macrodroid Settings action, there's an option to change the Language To Speak but, even easier than that. the Speak Text action already has a Language To Speak option, so you don't even have to worry about changing the Language To Speak and then resetting it afterwards.
 
Top