BRowser webAUdio TO PYthon webserver
This sample application :
- Captures microphone input from a web browser (the webaudio API)
- Encodes audio stream with opus.js encoder
- Sends the stream to a python websocket server (tornado)
- Decodes the stream with python-opus & saves wav file on the server
Installation
Python3.6 recommended.
pip install -r requirements.txt
python server.py
In browser open: http://localhost:8888
On OSX & Windows, libopus have to be installed separately.
OSX:
brew install opus
Windows:
Download the opusfile windows zip (not the source) from here: https://www.opus-codec.org/downloads/ Copy the libopus-0.dll into PATH or brautopy directory.