Forum Discussion

MaxMaxer's avatar
MaxMaxer
Community Member
8 years ago

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

  • 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.

    • MaxMaxer's avatar
      MaxMaxer
      Community 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 :(

  • noela's avatar
    noela
    Community 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ô's avatar
    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

  • 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

    • DavidTait's avatar
      DavidTait
      Super 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.

  • JakeHolmberg's avatar
    JakeHolmberg
    Community 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.