An open API service indexing awesome lists of open source software.

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

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/)