This lib (or demo) does the following things to simulate a chat between a browser and a server:
- Browser detects any voice activity, records and sends speech s1 to Server;
- Server receives speech s1;
- Server constructs and sends speech s2 to Browser;
- Browser receives and plays speech s2.
Notice Browser won't record and play at the same time, thus there is a queue.
Notice Server should save all speeches with userId
and timestamp
.
$ npm install
$ npm start
Open 127.0.0.1:3883
.
Great work from: