dictate will continuously trigger 'input' DOM event

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:

  1. provide specific field, like dictationStatus: end in input event params.
  2. trigger composition event instead of input event
  3. trigger specific DOM event when user presses on the dictation button.
  4. 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")