silk encoding and decoding for python
Project description
✨ rsilk ✨
The python binding for silk-rs
Usage
- encode
import rsilk
with open("tests/input.pcm", "rb") as f:
data = f.read()
output = rsilk.encode(data, 24000, 24000, True)
with open("output.silk", "wb") as f:
f.write(output)
- decode
import rsilk
with open("input.silk", "rb") as f:
data = f.read()
output = rsilk.decode(data, 24000)
with open("output.pcm", "wb") as f:
f.write(output)
Exceptions
- SilkError
Public functions
-
def decode(src: bytes, sample_rate: int) -> bytes
-
def encode(input: bytes, sample_rate: int, bit_rate: int, tencent: bool) -> bytes
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rsilk-0.1.0.tar.gz
(2.9 kB
view hashes)
Built Distributions
rsilk-0.1.0-cp310-cp310-win_amd64.whl
(188.9 kB
view hashes)
rsilk-0.1.0-cp39-cp39-win_amd64.whl
(188.9 kB
view hashes)
rsilk-0.1.0-cp38-cp38-win_amd64.whl
(188.9 kB
view hashes)
rsilk-0.1.0-cp37-cp37m-win_amd64.whl
(188.9 kB
view hashes)
rsilk-0.1.0-cp36-cp36m-win_amd64.whl
(188.8 kB
view hashes)
Close
Hashes for rsilk-0.1.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b5fbdbbacb3162a316839f8e7feedacfeaf039b56487b852e888917cf4f8c47 |
|
MD5 | d3129557dd981a945febd587cb6253ad |
|
BLAKE2b-256 | e9cfb10e780ba4a1bdd437e232a784d094da33976ac8e2f39589f15a8c8b0227 |
Close
Hashes for rsilk-0.1.0-cp310-cp310-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19cac400ab321c13b6f2cca55c14917034bd0d5417241a917a3fcdb8ffd77159 |
|
MD5 | d4a16fed7b4bf7db0e3c9d017c410854 |
|
BLAKE2b-256 | 5090eaf1ffedc30dca5b172803c6a05f1678573f2f8da181309ac21e1a543538 |
Close
Hashes for rsilk-0.1.0-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc3cb38ca2f4a701532d071b7f1e31962841402fc4370ddb30d9493c24b9e548 |
|
MD5 | d00a2cfb95f529f715fb81fb74aa19e2 |
|
BLAKE2b-256 | 7ff6d101048d3d4370eb13b2c49ef477460416c1f0dce8301a6c28da0c274299 |
Close
Hashes for rsilk-0.1.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63d3be6cdec3ae8a8c1fbb8618fd42cb9bd7f92038348fc70bfd01536ec25ca5 |
|
MD5 | cb705de124b51ed81e3f3e9d98302478 |
|
BLAKE2b-256 | 73f6c0397a02d24da27ffa064363526021b279a666a8e0b2e6092ae98644cce5 |
Close
Hashes for rsilk-0.1.0-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8f792879eda1e8263b6cc76724e17da52bae1748361e08dfbd00933f912554a |
|
MD5 | 410f84064b3f06ddb64d0c154ee91ee4 |
|
BLAKE2b-256 | 3a4f62e90df9f874ea304bb7c36092e15d54002feeaa7bccb70f3f96287efa28 |
Close
Hashes for rsilk-0.1.0-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59f386d7c802e751759246436d4e8d772dbe4f12992d5ec330e9aac32bcbb628 |
|
MD5 | 9a55190882a0c559c427d910af94d240 |
|
BLAKE2b-256 | ce0e075462270c2ea46a98dcedb6950d92b924053f6d2d55f456c6e289028a4b |
Close
Hashes for rsilk-0.1.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40eb767086e8283813dc678e92a900d4f1d0cde048acac0f544e4cff251b8bf6 |
|
MD5 | 719315ae924951733ef903097438ea8a |
|
BLAKE2b-256 | 663b3a34d370aea52c9e2376ceb129c57fbf11bd85254cb095f69541dff49669 |
Close
Hashes for rsilk-0.1.0-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5e9d0adc69ba12c9ddab62856c0887abd7fe958e5c39c9daf9f28c3af47e9b4 |
|
MD5 | 5893b1cff2730b62368bd6798dbe04f7 |
|
BLAKE2b-256 | cd34f8ca0ce75c071a7d1ddad3bf92b7fc70a44ff44ecdbe3f2f622685d8df5b |
Close
Hashes for rsilk-0.1.0-cp38-cp38-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6edeec7e8c4a8727d87ac0d02149918bc562dc5c928ac8ed5f6ee1e1aeea9db |
|
MD5 | 02159a4f45f965616ebd720c9b907c48 |
|
BLAKE2b-256 | 8e0ec6cf0173b14b0d7b75ab3585fc8800cfdc2a903ee9eecdc87e26bcf1dcb5 |
Close
Hashes for rsilk-0.1.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d659fdd5e408fb2a57101a6e56db527b8d19bda089f9bcee7f3733a16aeb604f |
|
MD5 | f3bf28a4205ae427e41142cc4013b8af |
|
BLAKE2b-256 | 00b4a68f9c880cad08d331501627bebdaa6b70165d090bd430d38b3e424c14e2 |
Close
Hashes for rsilk-0.1.0-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d9816347f5ac7cced8c5a51fc702cdb11a3a20e3e171a161ca89c67f08d28aa |
|
MD5 | 66f13489c334da40e3b4478b80ada536 |
|
BLAKE2b-256 | b53def8e97b65ad065302fbac558cbbc04bc211b33d7dbfc456ae34ce1ec0029 |
Close
Hashes for rsilk-0.1.0-cp37-cp37m-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82f69007da4a697ee01c0fe50661d074741cb6417051b80b22e64120c6491f7a |
|
MD5 | 4a6437f6539cb9ae0e197682c585aaa4 |
|
BLAKE2b-256 | 63ed9b735f16bf11d19ce4710572a70e96fd29a873a53a0b50d1e081fb58e364 |
Close
Hashes for rsilk-0.1.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3544e1757a8373757ae817366e01a4603c506e0076d86ee09f63fd940170d110 |
|
MD5 | 534e850197e4f7573b49ced36e17c7af |
|
BLAKE2b-256 | 64ab85922c2327424a12f472e55057520e144a1b9fa9e09826f1bfc903d562a8 |
Close
Hashes for rsilk-0.1.0-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c790e22dd2d83f56b44d37256cab9738b7275c7bd17bb2302e1dbd979d94b98 |
|
MD5 | 42ca5af44ab192c4048bcc0feeb673fc |
|
BLAKE2b-256 | f4da2e8a347bbbbc7ecc7bf015a29f383218f8a3ce9dc5ae2972bfb75f1ebba6 |
Close
Hashes for rsilk-0.1.0-cp36-cp36m-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8f2008abfdc6335d16d49eb715f76685cc77cc9b4c03ca30fdcafd666a8d573 |
|
MD5 | 8ac09cc14c80dae3e134cc244ca804c8 |
|
BLAKE2b-256 | c58cdb342d81d55cd822e117ed576249ad38336300f79117a7a9de5c2b21cc1f |