{"id":22689179,"url":"https://github.com/flokapi/easymix","last_synced_at":"2025-03-29T16:15:46.691Z","repository":{"id":186604797,"uuid":"675432226","full_name":"flokapi/easymix","owner":"flokapi","description":"Simple live and track audio mixer in python","archived":false,"fork":false,"pushed_at":"2023-10-04T14:54:00.000Z","size":580,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T16:51:05.439Z","etag":null,"topics":["audio-processing","mixer"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flokapi.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,"governance":null}},"created_at":"2023-08-06T22:26:37.000Z","updated_at":"2024-01-10T16:16:20.000Z","dependencies_parsed_at":"2024-02-18T07:33:18.928Z","dependency_job_id":null,"html_url":"https://github.com/flokapi/easymix","commit_stats":null,"previous_names":["flokapi/easymix"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flokapi%2Feasymix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flokapi%2Feasymix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flokapi%2Feasymix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flokapi%2Feasymix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flokapi","download_url":"https://codeload.github.com/flokapi/easymix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246207507,"owners_count":20740723,"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":["audio-processing","mixer"],"created_at":"2024-12-10T00:17:56.306Z","updated_at":"2025-03-29T16:15:46.663Z","avatar_url":"https://github.com/flokapi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Usage\n\nLive Audio Mixer\n\n```python\nimport easymix as mixer\nimport time\n\ndef liveMix():\n    mixer.play('01.mp3')\n    for i in range(5):\n        mixer.play('02.mp3')\n        time.sleep(2)\n\n    mixer.stop()\n```\n\n\n\nCompose Audio track\n\n```python\nimport easymix as mixer\n\ndef composeTrack():\n    track = mixer.Track()\n    track.addSound('01.mp3', 1.0)\n    for t in range(5):\n        track.addSound('02.mp3', t)\n\n    track.save('track.mp3')\n```\n\n\n\nYou can also define the sounds as `pydub` audio segments. It's convenient in case you need to apply effects on the sounds before playing, such as volume adjustment.\n\n```python\nimport pydub\n\nsound01 = pydub.AudioSegment.from_file('01.mp3')\n\nsound01 -= 5\t# reduce 5dB\n\n...\nmixer.play(sound01)\n\n...\ntrack.addSound(sound01, 1.0)\n```\n\n\n\n\n\n# Setup\n\nInstall pip package\n\n```\npip3 install easymix\n```\n\n\n\n\n\n# Known issues\n\nThis is only a prototype. Beware of the following issues which require proper investigation:\n\n1. The `pyaudio` package installation fails with Python 3.11.4, but works with Python 3.9.2.\n2. The sounds might be played at higher speed than expected (bit rate issue)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflokapi%2Feasymix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflokapi%2Feasymix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflokapi%2Feasymix/lists"}