Skip to content

Capture microphone input from browser using webaudio and live stream to remote server using websocket & opus codec.

License

Notifications You must be signed in to change notification settings

rahulsekar/brautopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brautopy

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.

About

Capture microphone input from browser using webaudio and live stream to remote server using websocket & opus codec.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published