Mise à niveau à notre Diamond service et nous allons vous construire votre propre application pour Android ou iOS
SDK and Web API

Speak recognition with Javascript SDK

par joergst posté Dec 12 2016, 8:31

How can I add speak recognition to my Bot with the Javascript SDK. The function toggleListen doesn't exist.

by admin posted Dec 12 2016, 10:19
If you use the bot's embed code it will automatically add speech recognition in the WebChatBotListener createBox() function.

To add speech recogntion yourself you can call the,


To start speech recognition, and,


to stop speech recognition.

Use all need to call,

SDK.registerSpeechRecognition(input, button);

To register for the speech events.

Speech recognition is only supported in browsers that support HTML5 Speech, such as Chrome.


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1961, today: 0, week: 6, month: 86

by joergst posted Dec 12 2016, 10:27

great, thank you for the very fast answer.

The problem was, that I don't embed the Bot with the box, only with <div> in a website.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1738, today: 0, week: 4, month: 58

Id: 14898952
Posté: Dec 12 2016, 8:31
Réponses: 2
Vues: 2183, aujourd'hui: 1, semaine: 8, mois: 76
Je suis sûr que
Drapeau post comme offensant, ou en violation des règles du site