git clone https://github.com/domgaulton/speech.git
cd speech && npm start
- Uses create-react-app frame work
- Add your voice input trigger and repsonse suggestion to triggerKeys object
config/commandKeys.js
- Set up your command within
commandTrigger
function inApp.js
with conditional component formatting - Add your component to
components/
folder with scss file
- Is the structure of the project correct? Could / Should it be done another way?
- Currently App handles the voice input then runs through a if else to match against pretermined command / trigger keys then updates state to run another function in components list.
- App.js
commandTrigger()
function - better to use case? - In both components Question and Youtube the
componentDidUpdate()
function sometimes runs into a loop meaning I have to set an external variable and check against it. This seems illogical
- Output / Feedback as a global object
- Move Microphone UI to own function / component
- Use canvas for Microphone input level UI
- Conditional Rendering - https://reactjs.org/docs/conditional-rendering.html