Add stop action when Voicesearch is in "listening" mode to manually stop listening

Hi, I am implementing React voicesearch on our website. I noticed that the browser stops listening to input automatically after the user finished the sentences. I am wondering if Algolia supports manually stopping the voice input, via a button that can be triggered by users themselves, just to avoid any search mistake. I am using the out of the box voicesearch component with customed buttonText as follows:

const VoiceSearchButtonText = ({
    status,
    transcript,
    isSpeechFinal,
    errorCode,
    isListening,
    isBrowserSupported,
}) => (isBrowserSupported ?
  (isListening ? 
     <div className="icon-style" >⏹ </div> : 
     <SearchButtonMic onClickFn ={displaySearchResults} refine = {refine}></SearchButtonMic>)
   : null);

and in the parent component:

 <VoiceSearch searchAsYouSpeak buttonTextComponent={VoiceSearchButtonText} />

You can use toggleListening: https://www.algolia.com/doc/api-reference/widgets/voice-search/react/#connector