An open API service indexing awesome lists of open source software.

https://github.com/escalopa/voca-box

A lightweight web application for real-time file sharing with voice recording capabilities
https://github.com/escalopa/voca-box

audio go real-time upload

Last synced: 8 months ago
JSON representation

A lightweight web application for real-time file sharing with voice recording capabilities

Awesome Lists containing this project

README

          

# voca-box ⏺️

A lightweight web application for real-time file sharing with voice recording capabilities.

![cover](./docs/cover.png)

## ✨ Features

- real-time updates
- voice recording / playback
- file upload / download
- responsive design

## πŸš€ Start

```bash
go run main.go
```

The application will start on `http://localhost:3000`

## πŸ“ Structure

```
voca-box/
β”œβ”€β”€ main.go # backend server
β”œβ”€β”€ go.mod # module file
β”œβ”€β”€ index.html # frontend HTML file
└── README.md # current file
```

## πŸ“‘ API

| Method | Endpoint | Description |
|--------|----------------|--------------------------------------------|
| GET | `/` | Serves the frontend HTML |
| POST | `/upload` | Upload files (multipart/form-data) |
| POST | `/record` | Upload recorded audio (same as /upload) |
| GET | `/messages` | Get list of all uploaded files |
| GET | `/message/:id` | Download or stream a specific file |
| GET | `/formats` | Get supported file formats and size limits |
| WS | `/ws` | WebSocket endpoint for real-time updates |

## πŸ“ License

This is a demo application. Use at your own risk.