{"id":25434768,"url":"https://github.com/hassaku/audio-plot-lib","last_synced_at":"2025-10-29T11:06:28.050Z","repository":{"id":52226654,"uuid":"321006613","full_name":"hassaku/audio-plot-lib","owner":"hassaku","description":"This library provides graph sonification functions and has been developed for a project named \"Data science and machine learning resources for screen reader users\". Please refer to the project page for more details.","archived":false,"fork":false,"pushed_at":"2023-10-15T14:20:10.000Z","size":11139,"stargazers_count":29,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T07:37:31.995Z","etag":null,"topics":["audio","data-science","google-colab","graphs","machine-learning","python","sonification","visually-impaired"],"latest_commit_sha":null,"homepage":"https://hassaku.github.io/DS-and-ML-with-screen-reader/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hassaku.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,"roadmap":null,"authors":null}},"created_at":"2020-12-13T07:16:03.000Z","updated_at":"2025-01-29T17:23:14.000Z","dependencies_parsed_at":"2024-01-12T03:35:47.487Z","dependency_job_id":"69970799-5062-42ce-aa66-f19f48f99015","html_url":"https://github.com/hassaku/audio-plot-lib","commit_stats":{"total_commits":66,"total_committers":1,"mean_commits":66.0,"dds":0.0,"last_synced_commit":"53e70fa6a6ba4d449eb09b97833dcaaefe24ee49"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hassaku%2Faudio-plot-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hassaku%2Faudio-plot-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hassaku%2Faudio-plot-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hassaku%2Faudio-plot-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hassaku","download_url":"https://codeload.github.com/hassaku/audio-plot-lib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239242136,"owners_count":19605966,"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","data-science","google-colab","graphs","machine-learning","python","sonification","visually-impaired"],"created_at":"2025-02-17T06:19:16.975Z","updated_at":"2025-10-29T11:06:23.004Z","avatar_url":"https://github.com/hassaku.png","language":"Python","readme":"# audio-plot-lib\n\n![Python package](https://github.com/hassaku/audio-plot-lib/workflows/Python%20package/badge.svg)\n\nThis library provides graph sonification functions\n and has been developed for a project named \"Data science and machine learning resources for screen reader users\".\n Please refer to the project page for more details.\n\nhttps://hassaku.github.io/DS-and-ML-with-screen-reader/\n\n# Use in Google Colab (recommended)\n\nTry the following example.\n\n[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/hassaku/audio-plot-lib/blob/master/audio_plot_lib_example.ipynb)\n\n# Use in script (option)\n\n## Interactive\n\nGenerate html with graphs that can be displayed interactively in a browser.\n\n### Dependency\n\n```\n$ pip install audio-plot-lib\n$ pip install beautifulsoup4\n```\n\n### Example\n\n```\nimport audio_plot_lib as apl\n# apl.interactive.set_language(\"ja\")  # Option to change language. Default is \"en\"\napl.interactive.plot([0, 1, 2, 3, 2, 1, 0], script_name=__file__)\n```\n\nOpen the html file with the same name as the script name in your browser, and if you find a button that reads 'push here to unmute graph', try moving the mouse cursor appropriately after pressing the button. If not, try reloading the page.\n\n## Playable\n\nGenerate an audio file with sonified graphs.\n\n### Dependency\n\n```\n$ sudo apt-get install libavformat-dev libavfilter-dev libavdevice-dev ffmpeg\n$ pip install audio-plot-lib\n```\n\n### Example\n\n```\nimport audio_plot_lib as apl\nfrom pydub.playback import play\n\n# generate graph sound\naudio = apl.playable.plot([0, 1, 2, 3, 2, 1, 0], duration=300, autoplay=False)\n\n# play\nplay(audio)\n\n# save to audio file\naudio.export(\"graph.wav\", format=\"wav\")\n```\n\n# For contributer\n\n## Update PyPI\n\n```\n$ python -m unittest discover tests\n$ pip install twine # if necessary\n$ cat ~/.pypirc  # if necessary\n[distutils]\nindex-servers = pypi\n\n[pypi]\nrepository: https://upload.pypi.org/legacy/\nusername: YOUR_USERNAME\npassword: YOUR_PASSWORD\n$ rm -rf audio-plot-lib.egg-info dist # if necessary\n$ python setup.py sdist\n$ twine upload --repository pypi dist/*\n$ pip --no-cache-dir install --upgrade audio-plot-lib\n```\n\nhttps://pypi.org/project/audio-plot-lib/\n\n## Contributing\n\n- Fork the repository on Github\n- Create a named feature branch (like add_component_x)\n- Write your change\n- Write tests for your change (if applicable)\n- Run the tests, ensuring they all pass\n- Submit a Pull Request using Github\n\n# License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhassaku%2Faudio-plot-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhassaku%2Faudio-plot-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhassaku%2Faudio-plot-lib/lists"}