https://github.com/lq782655835/websocket-audio
transform audio buffer to nodejs by websocket
https://github.com/lq782655835/websocket-audio
html5 node websocket
Last synced: over 1 year ago
JSON representation
transform audio buffer to nodejs by websocket
- Host: GitHub
- URL: https://github.com/lq782655835/websocket-audio
- Owner: lq782655835
- License: mit
- Created: 2018-04-08T12:10:25.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-08T12:44:51.000Z (about 8 years ago)
- Last Synced: 2025-01-22T17:35:22.100Z (over 1 year ago)
- Topics: html5, node, websocket
- Language: HTML
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 环境准备
本Demo旨在探索使用Websocket实时传输音频流信息,供服务读取使用。使用[websocketd](https://github.com/joewalnes/websocketd/blob/master/README.md)服务器
## 安装websocketd
``` shell
brew install websocketd
```
## 运行websocket服务
``` shell
npm run dev
```
## 测试demo
双击打开demo.html(推荐使用chrome)
### 参考文章
[WebSocket 教程-阮一峰](http://www.ruanyifeng.com/blog/2017/05/websocket.html)
[Learning How to Capture and Record Audio in HTML5](http://www.codepool.biz/capture-record-audio-html5.html)
[Tutorial: HTML Audio Capture streaming to Node.js (no browser extensions)](https://subvisual.co/blog/posts/39-tutorial-html-audio-capture-streaming-to-node-js-no-browser-extensions/)