Forum Discussion
How to start Speech Recognition with a trigger in this Storyline Speech Recognition Example ?
Thanks to Matthew Terentjev's great post here, it's possible for storyline users to create online Speech Recognition Interactions in their projects, now my question is how to initiate startButton function in HTML file named vars.html with Storyline triggers? ( in the vars.html file there is a code that when the user clicks on the microphone button, it triggers startButton function )
That way I can start the Speech Recognition using a trigger in storyline timeline whenever I want.
I attached the zip file here :
Any comment or idea is extemly appreciated.
14 Replies
- MatthewTeren198Community Member
Hi Max,
Thank you. It is actually not necessary, to include vars.html file at all... as all javascript for WebSpeech API can sit in Storyline trigger and can be triggered with a button within Storyline.
- MaxMaxerCommunity Member
Hi dear Matthew, I tried to put all javascript to Storyline and execute it with a simple button but that doesn't work at all...
Then I tried to execute javascript at timeline start and trigger startButton function with a button but this is not working too...
How Can I do that?
please help, I'm new to Storyline and java :(
- JayneSadler-38bCommunity Member
I have published a blog post with a detailed explanation on how to bring Web Speech API into Storyline with an example.
Here it is https://elearningdifferently.com/speech-recognition-and-storyline
Hope it helps!
- MaxMaxerCommunity Member
Wow Thank you a bunch, I'll check that...
- MatthewTeren198Community Member
Let me know if it is helpful!
- noelaCommunity Member
Hi.
I am trying to figure out how to build a course where the learner would speak into the microphone to learn malay. I am hoping i can trigger the javascript from within storyline itself without having to host the var.html file. The links to the blogpost does not work and I am unable to follow. Any advice on what is the javascript to use within storyline for speech to text?
- hoang-ducNgôCommunity Member
Hi. Matthew Terentjev
First, thank your very useful article.
Can you give detailed instructions on how to perform in the Storyline?
Please. Help me - NancyArsenaultCommunity Member
I've been trying this but I keep getting stuck. Currently trying to review in Review 360 but I'm getting an error as follows in the console log:
"Error occurred in recognition: not-allowed"In other pages I notice that a microphone permission pop-up appears, but I'm not seeing that happen, so I wonder if anything has changed since this solution was posted that would prevent Review 360 from properly executing the JavaScript
- DavidTaitSuper Hero
Just a thought, but are you using any assets that are hosted on another server, i.e. web objects? If so, does the server have an SSL certificate, i.e. https?
Last time I played with speech recognition it would only work if I was hosting on a secure server.
- JakeHolmbergCommunity Member
Hello Max,
Curious what you mean in your detailed directions for insert text variable on a slide. The first isChrome javazcript trigger works. But the recording button is not working when executing the second javascript trigger. Hi Jake!
Max might not be subscribed to this discussion, but you're welcome to contact them directly through their profile by clicking on their name and selecting Contact Me.
- kondurudurgaCommunity Member
Really it's Working..Thank you so much
Related Content
- 7 months ago
- 8 months ago
- 4 months ago
- 6 months ago