Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/mystica2000/webrtc-ffmpeg

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/mystica2000/webrtc-ffmpeg

  • v0.0.0-20241011191208-b554461cc396
  • Source
  • Go
  • Socket score

Version published
Created
Source

Alai

Alai - means wave 🌊 in Tamil - is a WebRTC-based audio recording web application with playback functionality. Built using Pion WebRTC.

Features:

  • real-time audio streaming and recording, with additional features like waveform generation and metadata management
  • ffmpeg integration with backend for generating waveform for listen playback, duration etc

Tech Stack:

  • Golang: Pion webrtc, gorilla websockets
  • React, Zustand state managment, Shadcn + tailwind UI

Use case:

  • recording audiobooks, notes.

Setup

  • make sure you have ffmpeg configured on the system

Server:

  • cd server
  • go mod tidy
  • go run cmd/server/main.go

Client: It uses Vite w React

  • cd webrtc-ffmpeg
  • npm install
  • npm run dev

Wakthru

https://github.com/user-attachments/assets/587975fc-4db3-4218-805f-6dbc53a3a5fe

Architecture

testing-1

REST Endpoints

  • /recordings (GET) - retrieve recordings
  • /recordings/:id (PUT, DELETE) - update/delete recordings

Web Socket

  • /ws endpoint for websocket connections
  • acts as signalling server for webrtc
  • commands for audio playbacks "play"/"stop".

Pion webrtc

  • handles webrtc connections and audio streamings (listen & record)

FFmpeg for Audio Processing

Integrated with the backend for:

Generating waveform images from recorded audio Calculating the duration of recordings

Storage

  • Disk storage, json (S3 for object storage, persistant db could have been used, i know :P)

FAQs

Package last updated on 11 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc