SkillAgentSearch skills...

Brautopy

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

Install / Use

/learn @rahulsekar/Brautopy
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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.

View on GitHub
GitHub Stars21
CategoryDevelopment
Updated1y ago
Forks6

Languages

Python

Security Score

75/100

Audited on Nov 16, 2024

No findings