ડાઉનલોડ કરો આ ઓપન સોર્સ બોટ કાવ્ય કોમ્યુનિટી આવૃત્તિ અને સ્થાપિત બોટ કાવ્ય તમારા પોતાના સર્વર પર
SDK and Web API

Speak recognition with Javascript SDK

દ્વારા joergst પોસ્ટ 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,

SDK.startSpeechRecognition();

To start speech recognition, and,

SDK.stopSpeechRecognition();

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.

See,
https://www.botlibre.com/forum-post?id=11672958

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 3016, today: 0, week: 4, month: 12

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: 2775, today: 0, week: 4, month: 12

ને: 14898952
પોસ્ટ: Dec 12 2016, 8:31
જવાબો: 2
જોવાઈ: 3392, આજે: 1, સપ્તાહ: 3, મહિને: 14
0 0 0.0/5