Using rasa-webchat with react-speech-recognition
See original GitHub issueHi, Is there currently any way to create a wrapper component around the rasa-webchat widget with react-speech-recognition that can send a payload to the widget on button press?
This is my WebChat component:
class WebChat extends Component
{
constructor(props){
super();
}
render(){
return (
<Widget
initPayload={""}
socketUrl={"http://localhost:5005"}
socketPath={"/socket.io/"}
inputTextFieldHint={"Enter a valid command"}
customData={{"language": "en"}} // arbitrary custom data. Stay minimal as this will be added to the socket
title={"Virtual Assistant"}
showFullScreenButton={"true"}
embedded={"true"}
hideWhenNotConnected = {"false"}
params={{"storage": "session"}}
/>
);
}
}
export default WebChat;
And here is my wrapper:
const ChatboxSpeech = () => {
const { transcript, resetTranscript } = useSpeechRecognition()
return (
<div className = "chatroom">
<WebChat/>
<button onClick={SpeechRecognition.startListening}>Start</button>
<button onClick={SpeechRecognition.stopListening}>Stop</button>
<button onClick={resetTranscript}>Reset</button>
<p>{transcript}</p>
</div>
)
}
export default ChatboxSpeech;
Just not sure on how to send the transcript to the Widget. Any help appreciated.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Rasa Webchat Integration - YouTube
Hi all,Today I will show you how to connect your Rasa bot to a webchat.first I will show how to connect using a...
Read more >RASA - Giving voice to web chatbot - DEV Community
In this article, we will add text-to-speech to the web chat application created in the previous post. There won't be anything new specific ......
Read more >How to enable voice platform to webchat? - Rasa Open Source
I have a Microsoft speech service API. I want to integrate with the rasa-webchat for voice integration. how can i include that in...
Read more >Using the React Speech Recognition Hook for voice assistance
React Speech Recognition is a React Hook that works with the Web Speech API to translate speech from your device's mic into text....
Read more >Smart Chatbot Implementation using RASA | TO THE NEW Blog
Rasa Conversational AI assistant normally consists of two components and they are Rasa NLU and Rasa Core. Rasa NLU can be just treated...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here is a full example if you are interested
Thanks so much for sharing Is it possible to share the css file related to the chatroom class?