Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save current value of Trained Word but how i can setup initial value of speechRec.recordingBufferArray #8

Open
alpertandogan opened this issue Mar 10, 2018 · 1 comment

Comments

@alpertandogan
Copy link

-----------------save to host--------------------

var recordingId = speechRec.stopRecording();
$.ajax({
   method: "POST",
   url: "/sound.ins",
   dataType: "script",
    data: {
          PSES:U9_SESSION_ID,         
          PLNG:'en',
          PSCR_C:speechRec.recordingBufferArray[finalPlaybackId]
         }
   })
   .fail(function() {
    })
   .done(function( msg ) {
     null;
   });  

---------------- get from host--------------

get array value from host but how i can setup up to listen my keyword to library****

var r='/sound.getjson?PSES=12&PLNG=en&PTS='+p_pts;
$.getJSON(r, function(jsdata) {
    $.each(jsdata.ROWSET, function(i, l) { 
       speechRec.recordingBufferArray.push(l.SCR_C);
      console.log(l.SCR_C);
    });
});
@i12maroa
Copy link

Hey. Did you get that run? I'm developing a Web Speech App based on server side processing, but I need a keyword spotting to start recording my speech.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants