jamsch / expo-speech-recognition

Speech Recognition for React Native Expo projects
MIT License
128 stars 11 forks source link

Retrieving cumulative transcript #31

Closed danny188 closed 1 month ago

danny188 commented 1 month ago

Hi @jamsch ,

I'm trying to create a cumulative transcript of words in continuous mode on Android. I noticed if the transcribed audio is for example "How are you", then the result event fires 3 times, with results being "How", "How are", and "How are you". Is this the expected behaviour?

Thanks.

jamsch commented 1 month ago

Hey @danny188, this is expected behavior when you enable interim results (interimResults setting when you call .start()) so that you can provide immediate feedback to the user when results come in. You can also distinguish between an interim result and a final result by checking the event.isFinal property in the "result" event.