Skip to content

Commit

Permalink
Passed the continuous props to DictateComposed and updated the condit…
Browse files Browse the repository at this point in the history
…ion of the started props to support the continuos listening
  • Loading branch information
Rushikesh Gavali committed Jan 22, 2025
1 parent 758577b commit bfa53e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/component/src/Dictation.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,17 @@ const Dictation = ({ onError }) => {

return (
<DictateComposer
extra={{ continuous: continuousListening }}
lang={speechLanguage}
onDictate={handleDictate}
onError={handleError}
onProgress={handleDictating}
speechGrammarList={SpeechGrammarList}
speechRecognition={SpeechRecognition}
started={
uiState !== 'disabled' && (dictateState === STARTING || dictateState === DICTATING) && !numSpeakingActivities
uiState !== 'disabled' &&
(dictateState === STARTING || dictateState === DICTATING) &&
(continuousListening || !numSpeakingActivities)
}
/>
);
Expand Down

0 comments on commit bfa53e4

Please sign in to comment.