https://github.com/seanghay/ogg-transcode-server
An HTTP server for transcoding OGG buffer to MP3 or WAV buffer.
https://github.com/seanghay/ogg-transcode-server
mp3 mp3-encoder nodejs ogg ogg-decoder ogg-opus
Last synced: 15 days ago
JSON representation
An HTTP server for transcoding OGG buffer to MP3 or WAV buffer.
- Host: GitHub
- URL: https://github.com/seanghay/ogg-transcode-server
- Owner: seanghay
- Created: 2023-02-21T13:29:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-21T13:42:25.000Z (over 3 years ago)
- Last Synced: 2025-01-22T20:11:18.086Z (over 1 year ago)
- Topics: mp3, mp3-encoder, nodejs, ogg, ogg-decoder, ogg-opus
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
### Get started
Install dependencies
```shell
npm install
```
Start the http server
```shell
PORT=8080 node index.js
```
### Docker
```shell
docker run -p "8080:8080" ghcr.io/seanghay/ogg-transcode-server:latest
```
> `8080` is the default port of the http server. It can be changed with a PORT env.
## 1. OGG to MP3
**Path:** `/transcode-mp3`
**Method:** `POST`
**Request Body:** `binary`
**Request Header:**
- `Content-Type`: `audio/ogg`
**Response Body**: `binary`
**Response Header:**
- `Content-Type`: `audio/mp3`
## 2. OGG to WAV
**Path:** `/transcode-wav`
**Method:** `POST`
**Request Body:** `binary`
**Request Header:**
- `Content-Type`: `audio/ogg`
**Response Body**: `binary`
**Response Header:**
- `Content-Type`: `audio/wav`