Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/porjo/babelcast
a WebRTC audio broadcast server
https://github.com/porjo/babelcast
go webrtc
Last synced: 3 months ago
JSON representation
a WebRTC audio broadcast server
- Host: GitHub
- URL: https://github.com/porjo/babelcast
- Owner: porjo
- License: apache-2.0
- Created: 2018-09-09T10:46:03.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-10T04:34:04.000Z (6 months ago)
- Last Synced: 2024-06-20T16:48:27.904Z (5 months ago)
- Topics: go, webrtc
- Language: Go
- Homepage:
- Size: 335 KB
- Stars: 45
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pion - porjo/babelcast - A WebRTC audio broadcast server (Media API)
- awesome-webrtc - babelcast - WebRTC audio broadcast server. (Projects / Audio)
README
# Babelcast
A server which allows audio publishers to broadcast to subscribers on a channel, using nothing more than a modern web browser.
It uses websockets for signalling & WebRTC for audio.
The designed use case is for live events where language translation is happening.
A translator would act as a publisher and people wanting to hear the translation would be subscribers.## Building
Download a [precompiled binary](https://github.com/porjo/babelcast/releases/latest) or build it yourself.
## Usage
```
Usage of ./babelcast:
-debug
enable debug log
-port int
listen on this port (default 8080)
```Then point your web browser to `http://localhost:8080/`
If the `PUBLISHER_PASSWORD` environment variable is set, then publishers will be required to enter the
password before they can connect.### TLS
Except when testing against localhost, web browsers require that TLS (`https://`) be in use any time media devices (e.g. microphone) are in use. You should put Babelcast behind a reverse proxy that can provide SSL certificates e.g. [Caddy](https://github.com/caddyserver/caddy).
See this [Stackoverflow post](https://stackoverflow.com/a/34198101/202311) for more information.
## Credit
Thanks to the excellent [Pion](https://github.com/pion/webrtc) library for making WebRTC so accessible.