I want to get user's dictation content and do something.
However, during dictation progress, system will continuously trigger 'input' DOM event with duplicated strings. It is impossible to know whether the dictation progress is end to get the final result.
Several solutions here:
- provide specific field, like
dictationStatus: endininputevent params. - trigger
compositionevent instead ofinputevent - trigger specific DOM event when user presses on the dictation button.
- trigger input event only with latest recognized string.
for example, I say " I like apple" will get 3 events with strings: "I" "like" "apple" ( not "I" "I like" "I like apple")