{"id":16217243,"url":"https://github.com/synodriver/rsilk","last_synced_at":"2025-03-19T10:30:42.452Z","repository":{"id":43108865,"uuid":"469027719","full_name":"synodriver/rsilk","owner":"synodriver","description":"silk encoder and decoder for python","archived":false,"fork":false,"pushed_at":"2023-10-13T15:09:58.000Z","size":16,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"stream","last_synced_at":"2025-02-28T17:56:19.716Z","etag":null,"topics":["pyo3","python","rust","silk"],"latest_commit_sha":null,"homepage":"","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/synodriver.png","metadata":{"files":{"readme":"README.markdown","changelog":"changename.py","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-12T08:43:19.000Z","updated_at":"2023-11-03T11:56:40.000Z","dependencies_parsed_at":"2024-10-27T20:41:06.751Z","dependency_job_id":null,"html_url":"https://github.com/synodriver/rsilk","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"f9e36bbcaf782696c4e06308be8c9960c08e4b43"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Frsilk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Frsilk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Frsilk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Frsilk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/synodriver","download_url":"https://codeload.github.com/synodriver/rsilk/tar.gz/refs/heads/stream","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243982182,"owners_count":20378605,"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":["pyo3","python","rust","silk"],"created_at":"2024-10-10T11:26:15.467Z","updated_at":"2025-03-19T10:30:42.167Z","avatar_url":"https://github.com/synodriver.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\u003ci\u003e✨ rsilk ✨ \u003c/i\u003e\u003c/h1\u003e\n\n\u003ch3 align=\"center\"\u003eThe python binding for \u003ca href=\"https://github.com/lz1998/silk-rs\"\u003esilk-rs\u003c/a\u003e \u003c/h3\u003e\n\n\n[![pypi](https://img.shields.io/pypi/v/rsilk.svg)](https://pypi.org/project/rsilk/)\n![python](https://img.shields.io/pypi/pyversions/rsilk)\n![implementation](https://img.shields.io/pypi/implementation/rsilk)\n![wheel](https://img.shields.io/pypi/wheel/rsilk)\n![license](https://img.shields.io/github/license/synodriver/rsilk.svg)\n![action](https://img.shields.io/github/workflow/status/synodriver/rsilk/build%20wheel)\n\n\n\n\n## Usage\n\n- encode\n\n```python\nimport rsilk\n\nwith open(\"tests/input.pcm\", \"rb\") as f:\n    data = f.read()\n\noutput = rsilk.encode(data, 24000, 24000)\nwith open(\"output.silk\", \"wb\") as f:\n    f.write(output)\n```\n\n- decode\n\n```python\nimport rsilk\n\nwith open(\"input.silk\", \"rb\") as f:\n    data = f.read()\n\noutput = rsilk.decode(data, 24000)\nwith open(\"output.pcm\", \"wb\") as f:\n    f.write(output)\n```\n\n### Exceptions\n\n- SilkError\n\n### Public functions\n\n- def decode(src: bytes, sample_rate: int, frame_size: int = 0, frames_per_packet: int = 1, more_internal_decoder_frames: bool = False, in_band_fec_offset: int = 0, loss: bool = False) -\u003e bytes\n\n\n- def encode(input: bytes, sample_rate: int, bit_rate: int, max_internal_sample_rate: int = 24000, packet_loss_percentage: int = 0, complexity: int = 2, use_inband_fec: bool = False, use_dtx: bool = False, tencent: bool = True) -\u003e bytes","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynodriver%2Frsilk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynodriver%2Frsilk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynodriver%2Frsilk/lists"}