{"id":15731441,"url":"https://github.com/revolunet/httpaudioplayer","last_synced_at":"2025-03-31T02:46:56.804Z","repository":{"id":35158975,"uuid":"39398761","full_name":"revolunet/httpaudioplayer","owner":"revolunet","description":"Audio player for in-stores sonorisation that offers a simple HTTP API","archived":false,"fork":false,"pushed_at":"2018-07-21T00:04:17.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T06:58:52.878Z","etag":null,"topics":["api","audio","http","player","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"grap/grap-odoo-custom","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/revolunet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-20T17:41:54.000Z","updated_at":"2018-07-21T00:04:18.000Z","dependencies_parsed_at":"2022-09-09T09:41:09.734Z","dependency_job_id":null,"html_url":"https://github.com/revolunet/httpaudioplayer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revolunet%2Fhttpaudioplayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revolunet%2Fhttpaudioplayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revolunet%2Fhttpaudioplayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revolunet%2Fhttpaudioplayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/revolunet","download_url":"https://codeload.github.com/revolunet/httpaudioplayer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246408100,"owners_count":20772228,"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":["api","audio","http","player","python"],"created_at":"2024-10-04T00:01:39.699Z","updated_at":"2025-03-31T02:46:56.785Z","avatar_url":"https://github.com/revolunet.png","language":"Python","readme":"# httpaudioplayer\n\nMinimal Python audio player for in-stores sonorisation that offers a basic HTTP API to play on-demand sounds.\n\nIt can play an infinite sound loop in background and play on-demand sounds via HTTP API.\n\nBased on [pygame](http://pygame.org), works nicely with [raspberry PI](https://www.raspberrypi.org/).\n\n - Play local/remote OGG files on-demand\n - Play a background sound loop\n - Expose sound control HTTP API on http://0.0.0.0:8082\n\n:bulb: If you're looking for a full-featured, battle-tested music server, go checkout [MOPIDY](https://github.com/mopidy/mopidy)\n\n## Install\n\n - [download](https://github.com/revolunet/httpaudioplayer/archive/master.zip) the project\n - `pip install -r requirements.txt`\n\nRun with `python player.py /path/to/some/loop.ogg`\n\n## Auto start\n\n - add `/home/pi/httpaudioplayer/start.sh \u0026` to `/etc/rc.local`\n - use `screen -x` to get the player session\n\n### HTTP API\n\nserves on port 8082\n\n - **GET `/play/http://sounds.com/example.ogg`** : download and play\n - **GET `/loop/http://sounds.com/example-loop.ogg`** : download and play this sound as loop\n\n### Notes on OSX\n\nI had to install a 32bit python version to make pygame work for some reason.\n\nSo from OSX i start it with `python2-32 player.py`\n\n### Todo\n - support other file types\n - caching/pre-heat\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevolunet%2Fhttpaudioplayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frevolunet%2Fhttpaudioplayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevolunet%2Fhttpaudioplayer/lists"}