How to control voice input using the mic button on the chatbot
Sometimes the chatbot mic input gets turned off before the chatbot user can finish the utterance and the partial utterance is sent for processing. This can be really annoying to slow speakers. To overcome this problem, we have introduced a new feature that will allow the admin users to give the chatbot user control over when to send the voice input for processing.
Settings
As an admin user, you can enable this setting in two places:
Bot Provider V2
Go to Experience Designer > Bot Manager flow > Bot Provider V2 node > Bot Out Parser
Place the below code.
msg.payload.autoPost = false;
Ā
Chatbot settings
You can also enable this feature from Chatbot settings
Navigate to the Experience Manager > select a project > Project side navigation menu > Develop > Chatbot Settings > Settings.
The default setting is
"autoPost": true
Change the setting to
"autoPost": false
as shown in the screenshot below.
Ā
Chatbot Experience
When the āautoPostā is set to false i.e; "autoPost": false
The chatbot user should manually click on the āSendā button to send the processed Speech To Text input to the server.
Ā
The user can use the mic input button to start/pause the recording. The converted Speech To Text value after the pause will be appended to the existing text in the user input box.
Related articles
Ā