{"id":13744554,"url":"https://github.com/HelloChatterbox/OpenTone","last_synced_at":"2025-05-09T03:32:16.205Z","repository":{"id":144120739,"uuid":"251752579","full_name":"HelloChatterbox/OpenTone","owner":"HelloChatterbox","description":"send data by audio encoded in DTMF tones","archived":false,"fork":false,"pushed_at":"2020-04-23T03:26:18.000Z","size":154,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-15T16:40:51.958Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/HelloChatterbox.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}},"created_at":"2020-03-31T21:59:17.000Z","updated_at":"2024-02-03T09:48:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"f501c920-7334-4e50-9831-0934a2f4d134","html_url":"https://github.com/HelloChatterbox/OpenTone","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/HelloChatterbox%2FOpenTone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelloChatterbox%2FOpenTone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelloChatterbox%2FOpenTone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelloChatterbox%2FOpenTone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HelloChatterbox","download_url":"https://codeload.github.com/HelloChatterbox/OpenTone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253183201,"owners_count":21867378,"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":[],"created_at":"2024-08-03T05:01:11.708Z","updated_at":"2025-05-09T03:32:15.886Z","avatar_url":"https://github.com/HelloChatterbox.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# OpenTone\n\nDTMF encoding/decoding\n\n\n## Install\n\n```bash\npip install opentone\n```\n\n## Usage\n\nHere is a clone of [GoogleTone](https://chrome.google.com/webstore/detail/google-tone/nnckehldicaciogcbchegobnafnjkcne?hl=en)\n\n\n```python\nfrom opentone import ToneGenerator, ToneDecoder\nimport pyshorteners as pyshort\n\n\ndef tiny_link(url):\n    tinyurl = pyshort.Shortener().tinyurl.short(url)\n    # The consant prefix in the TinyURL is standard and can be\n    # removed altogether, and added in the receiving station\n    URL = \"http://tinyurl.com/\"\n    url = tinyurl[len(URL):]\n    return url\n\n\nurl = \"https://hellochatterbox.com\"\nurl = tiny_link(url)\nwave_file = \"chatterbox_encoded.wav\"\ntone_gen = ToneGenerator()\ntone_gen.encode_to_wave(url, wave_file)\n\ndecoder = ToneDecoder()\ndecoded_url = decoder.decode_wave(wave_file)\n\nassert decoded_url == url\n\nprint(\"http://tinyurl.com/\" + decoded_url)\n```\n\n\nNOTE: Input wave files should be 8khz mono\n\nconvert files with\n```bash\nffmpeg -i some_file.mp3 -acodec pcm_s16le -ac 1 -ar 8000 out.wav\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHelloChatterbox%2FOpenTone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHelloChatterbox%2FOpenTone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHelloChatterbox%2FOpenTone/lists"}