FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

BinaryJS Server Response to Indivual Client · Issue #109 · binaryjs/binaryjs · GitHub

Repository navigation

BinaryJS Server Response to Indivual Client #109

Description

This is my abbreviated code to receive audio stream from clients:
binaryServer = BinaryServer({port: 9001});

binaryServer.on('connection', function(client) {
console.log("new connection");

client.on('stream', function(stream, meta) {
console.log('new stream');
strean.on('data', function('data'){
//(code to store audio in buffers)});

stream.on('end', function() {
  //end of stream
  //(routine that calls an addon and convert speech to text)
  //****Immediate response to client******
});

});
});

Now, my objective is to send immediately a response (to client) when its generated in the routine "speech-to-text". I am trying to do this with BinaryJS but I cant understand how.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL