Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
currEmotion={currEmotion} sentimentScore={sentimentScore} />
break
}
console.log('emotions in Room are', currEmotion)
return (
<div id="sceneComponent">
{sceneComponent}
</div>
)
}
}
Room.propTypes = propTypes
const EnhancedRoom = SpeechRecognition(Room)
const mapState = ({language, sentiment, scene, roster}) => ({language, sentiment, scene, roster})
export default connect(mapState, null)(EnhancedRoom)
sendMessage: PropTypes.func.isRequired,
disabled: PropTypes.bool.isRequired,
interimTranscript: PropTypes.string.isRequired,
transcript: PropTypes.string.isRequired,
startListening: PropTypes.func.isRequired,
stopListening: PropTypes.func.isRequired,
listening: PropTypes.bool.isRequired,
browserSupportsSpeechRecognition: PropTypes.bool.isRequired,
};
const options = {
autoStart: false,
continuous: false,
};
export default SpeechRecognition(options)(Form);
})
}
/>
);
}
}
App.propTypes = propTypes
export default SpeechRecognition(options)(App);