{"id":17815599,"url":"https://github.com/weesee/dockerized-midi2mp3-api","last_synced_at":"2026-04-28T10:36:56.362Z","repository":{"id":152005056,"uuid":"245807395","full_name":"WeeSee/dockerized-midi2mp3-api","owner":"WeeSee","description":"Microservice to convert midi file to mp3 file","archived":false,"fork":false,"pushed_at":"2020-03-12T10:23:18.000Z","size":25,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T08:14:37.757Z","etag":null,"topics":["converter","docker","midi","mp3","rest-api","webservice"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WeeSee.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-08T12:08:12.000Z","updated_at":"2024-07-06T17:14:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"91653169-d6b6-4aec-be3c-c81e519575ad","html_url":"https://github.com/WeeSee/dockerized-midi2mp3-api","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/WeeSee/dockerized-midi2mp3-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeeSee%2Fdockerized-midi2mp3-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeeSee%2Fdockerized-midi2mp3-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeeSee%2Fdockerized-midi2mp3-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeeSee%2Fdockerized-midi2mp3-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WeeSee","download_url":"https://codeload.github.com/WeeSee/dockerized-midi2mp3-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeeSee%2Fdockerized-midi2mp3-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262400793,"owners_count":23305370,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["converter","docker","midi","mp3","rest-api","webservice"],"created_at":"2024-10-27T16:13:37.418Z","updated_at":"2026-04-28T10:36:51.337Z","avatar_url":"https://github.com/WeeSee.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Dockerized Midi2Mp3\n===================\n\n![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/weesee/midi2mp3-api) ![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/weesee/midi2mp3-api) ![Docker Pulls](https://img.shields.io/docker/pulls/weesee/midi2mp3-api) ![GitHub issues](https://img.shields.io/github/issues/weesee/dockerized-midi2mp3-api) \n\nREST API for converting MIDI files to MP3 audio files - Provided as Docker container for easy usage.\n\nUpload a JSON with base64 encoded Midi data and get a JSON including the base64 encoded Mp3 file. All details see below.\n\nThis is a stateless microservice without volumes. The microservice runs forever and accepts http requests on the specified port. \n\n# Setup and run\n\nYou need to have installed:\n\n* docker\n* docker-compose\n* make\n\n## Running the container\n\nRun the container using [the prebuild image from Dockerhub](https://hub.docker.com/r/weesee/midi2mp3-api):\n\n```bash\ndocker run -p 8094:80 midi2mp3\n```\n\n## Building the container \n\nYou can build the image and start it up with ```make``` and ```docker-compose```\n\n    make build up ps\n\nThere are more commands in the Makefile, try\n\n    make\n\n## API Usage\n\n### Endpoint http://[docker-machine]/info\n\n#### Request\n- Verb : GET\n- No parameter\n\t\n#### Response\n- Content-Type : Application/json\n```json\n{\n  \"apiName\": \"midi2mp3\",\n  \"version\": {\n    \"api\": \"1.0\"\n  },\n  \"description\": \"midi to mp3 audio files cnverter\"\n}\n```  \n\t\n### Endpoint http://[docker-machine]/convert\n\t\n#### Request\t\n- Verb : POST\n- Content-Type : Application/json\n- Parameters :\n-- midiData : Base64 encoded MIDI-Data (see test section for an example)\n\t\n#### Response\n- Content-Type : Application/json\n```json  \n{\n  \"statusCode\": \"OK|ERROR\",\n  \"message\": \"Information on error\",\n  \"base64MidiData\": \"....\",\n  \"logs\": []\n}\n```\n\n\n# Test from command line\n\nOr make the test from inside the container:\n```bash\n    make bash\n```\n\nand build a request file:\n```bash\n    echo -n \"{\\\"midiData\\\":\\\"\" \u003e /tmp/test.json\n    cat /tmp/elton.mid | base64 --wrap=0 \u003e\u003e /tmp/test.json\n    echo \"\\\"}\" \u003e\u003e /tmp/test.json\n```\n\nor as a one liner:\n```bash\n    { echo -n \"{\\\"midiData\\\":\\\"\"; echo -n \"`base64 --wrap=0 /tmp/elton.mid`\"; echo \"\\\"}\"; } \u003e /tmp/test.json\n```\n\nthen execute the conversion \n```bash\n    curl -X POST -H \"Content-Type: application/json\" --data \"@/tmp/test.json\" localhost/convert | jq .\n```\n\nYou should get a json output containing the base64 encoded mp3 file as\n```bash\n    {\n        \"statusCode\": \"OK\",\n        \"message\": \"\",\n        \"base64Mp3Data\": \".......\",\n        \"logs\": []\n    }\n```\n\nYou can test the microservice from outside the container (this is more complicated since you need the tools installed in your os):\n```bash\n    curl -X POST -H \"Content-Type: application/json\" --data \"@test.json\" localhost:8094/convert | jq .\n```\n\nTo extract the mp3 file out of the result on the command line, use\n```bash\n    curl -X POST -H \"Content-Type: application/json\" --data \"@/tmp/test.json\" localhost/convert | jq -r .base64Mp3Data | base64 -d \u003e /tmp/elton.mp3\n```\n\n# Credits\n\nThis repo was inspired by\n\n* https://github.com/GGracieux/lilypond-api\n* https://github.com/mikechernev/midi2mp3-docker\n\n# Author\n\nweesee@web.de\n\n(C) Copyright, 2020\n\n\n\n\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweesee%2Fdockerized-midi2mp3-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweesee%2Fdockerized-midi2mp3-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweesee%2Fdockerized-midi2mp3-api/lists"}