Skip to content

An HTTP server for transcoding OGG buffer to MP3 or WAV buffer.

Notifications You must be signed in to change notification settings

seanghay/ogg-transcode-server

Repository files navigation

Get started

Install dependencies

npm install

Start the http server

PORT=8080 node index.js

Docker

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