KeeperCake
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.
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: