{"id":22525403,"url":"https://github.com/wdbm/tonescale","last_synced_at":"2025-03-28T03:46:21.245Z","repository":{"id":57486719,"uuid":"52366166","full_name":"wdbm/tonescale","owner":"wdbm","description":"sound utilities and sounds","archived":false,"fork":false,"pushed_at":"2020-01-29T00:20:57.000Z","size":4861,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-07T06:34:40.278Z","etag":null,"topics":["aplay","pyaudio","sound","sounds","stream"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wdbm.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":"2016-02-23T14:49:17.000Z","updated_at":"2020-01-29T00:20:59.000Z","dependencies_parsed_at":"2022-09-02T00:02:42.435Z","dependency_job_id":null,"html_url":"https://github.com/wdbm/tonescale","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/wdbm%2Ftonescale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdbm%2Ftonescale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdbm%2Ftonescale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdbm%2Ftonescale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wdbm","download_url":"https://codeload.github.com/wdbm/tonescale/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245966932,"owners_count":20701759,"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":["aplay","pyaudio","sound","sounds","stream"],"created_at":"2024-12-07T06:10:04.814Z","updated_at":"2025-03-28T03:46:21.227Z","avatar_url":"https://github.com/wdbm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tonescale\n\n# setup\n\n## Ubuntu 16.04 LTS\n\n```Bash\nsudo apt install    \\\n    libasound-dev   \\\n    portaudio       \\\n    python-pyaudio  \\\n    python3-pyaudio\n\npip install tonescale\n```\n\n## Ubuntu 18.04 LTS\n\n```Bash\nsudo apt install    \\\n    libasound-dev   \\\n    portaudio19-dev \\\n    python-pyaudio  \\\n    python3-pyaudio\n\npip install tonescale\n```\n\n# usage\n\nTonescale provides various sound utilities and capabilities for Python in Linux. It provides a `Sound` class that can store a sound in a NumPy array, can load the sound from a file, can save the sound to a file, and can play the sound using `aplay` or by streaming the sound using PyAudio. Sounds can be added, summed and repeated symbolically. Tonescale includes some sounds.\n\nA tonescale module sound can be accessed in the following way:\n\n```Python\nsound_1 = tonescale.access_sound(name = \"199935__drzhnn__04-blip\")\n```\n\nSounds can be repeated:\n\n```Python\nsound_1.repeat(number = 2)\n```\n\nSounds can be added:\n\n```Python\nsound_3 = sound_1 + sound_2\n```\n\nSounds can be summed:\n\n```Python\nsound_3 = sum([sound_1, sound_2])\n```\n\nSounds can be played:\n\n```Python\nsound_1.play()\n```\n\nSounds can be played in the background too:\n\n```Python\nsound_1.play(background = True)\n```\n\nSounds can also be played in a stream:\n\n```Python\nsound_1.play_stream()\n```\n\nSounds can be saved to files:\n\n```Python\nsound_1.save_WAVE()\n```\n\nSounds can be loaded from files:\n\n```Python\nsound_1.read_WAVE(filename = \"199935__drzhnn__04-blip.wav\")\n```\n\nSee example code for more details.\n\nTonescale also provides `sound_search.py`, which can search recursively for sound files of a specified minimum duration.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwdbm%2Ftonescale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwdbm%2Ftonescale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwdbm%2Ftonescale/lists"}