import { sendUserResponse } from 'diarupt'
let userTalking = false
sendResponseBtn = document.getElementById('send-response-btn')
...
sendResponseBtn.addEventListener('click', () => {
    if (userTalking) {
    // send user response
    sendResponseBtn.disabled = true
    sendUserResponse()
    }
})
...

SendUserResponse function helps to manually send user’s response to the AI when Hands-on mode is enabled

Parameters

No Parameters

Returns

void
void

The SendUserResponse function returns void