как создать эту речь в текстовую способность? - PullRequest
0 голосов
/ 14 апреля 2020

Я хотел бы создать способность речи к тексту, чтобы удовлетворить следующий пример

Изобразите этот пример:

I write two sentences, one in Spanish and the other in English. I split up the Spanish sentence word by word like so….

L1: Hola ·  mi · nombre ·  es ·  Miguel
L2: Hi my name is Miguel


Then when I select this group of sentences to translate, it will hide the Spanish line (L1) and display gaps for me to fill in. It will also activate the voice to text. 

L1: _ · _ · _ · _ · ___       
L2: Hi my name is Miguel


I’ll then say the correct words in the correct order, one by one. If I say the first word correctly, it’ll show in the first position. 

L1: Hola · _ · _ · _ · _       
L2: Hi my name is Miguel



Then if I say the second word correctly, then that will appear. And so on, and so on. 

L1: Hola · mi · _ · _ · ___       
L2: Hi my name is Miguel



if I don’t say the correct word, nothing happens. If I get stuck, I can just tap the blank space and the corresponding word will appear

любые идеи о том, как это сделать, и воплотите их в жизнь страница? использовать JS / PHP / или API? Я хочу знать, как лучше подойти к этому, пожалуйста?

enter image description here

...