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

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.

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`