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.1.tar.gz
(3.0 kB
view hashes)
Built Distributions
rsilk-0.1.1-cp310-cp310-win_amd64.whl
(189.1 kB
view hashes)
rsilk-0.1.1-cp39-cp39-win_amd64.whl
(189.1 kB
view hashes)
rsilk-0.1.1-cp38-cp38-win_amd64.whl
(189.1 kB
view hashes)
rsilk-0.1.1-cp37-cp37m-win_amd64.whl
(189.1 kB
view hashes)
rsilk-0.1.1-cp36-cp36m-win_amd64.whl
(189.1 kB
view hashes)
Close
Hashes for rsilk-0.1.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00ace8f7ec004b663abbd10ff7c9d5a5cf6d2cbe62bee6c6dcd431ef14185f97 |
|
MD5 | d5005825417ab08f1419a4479907e588 |
|
BLAKE2b-256 | 3a1ed6bcf43e37d2448153f5cf9282ba4b6d9bd4f6b48347ffd375c6b41e6963 |
Close
Hashes for rsilk-0.1.1-cp310-cp310-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98bfde161b42922438e30ff5dcb873cff3292467c028380cf64d9a71c90363c9 |
|
MD5 | 11f20c3e4af1576fb0261e75d4a5359b |
|
BLAKE2b-256 | 3b8832435915012476c6adb9b2539dfbfe2eb1150bc2479d1e5d217b4fc04111 |
Close
Hashes for rsilk-0.1.1-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c1199460982d62af6307a4ad48ae932f29e5cd293da99f9f3d64289ef89a981 |
|
MD5 | 49f8603b6849328f31effc7ff630cd06 |
|
BLAKE2b-256 | 7d5aa864021100186e0233538fbac4f4ba8259a7f32ce207c3931babd2da71c7 |
Close
Hashes for rsilk-0.1.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d32c40f8cf8e75e4a92d82f0f0ec19c018416bd1de1d20c9d9e95369944fbbb8 |
|
MD5 | 2045e0362f462f1561a666b62539751c |
|
BLAKE2b-256 | a0bc1c6d06df1757be7ddefbdcc8a1e03f9bad1da200af71aad06ceb61bb4058 |
Close
Hashes for rsilk-0.1.1-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c13181b8c48b280887dd8f6df7af59eb16d09d4e484bf74bcdb901e5b3983cd3 |
|
MD5 | 28ed6dc5dd93dd9eb504c87434a43e99 |
|
BLAKE2b-256 | a7546d2f027d2a9d869acf7f1ada6b10f93222e22ae101edb1a06c97fd55402c |
Close
Hashes for rsilk-0.1.1-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e18a72017dbdac3eba3f93756d267b10c25547324e006cd3a93dc03f17fb270 |
|
MD5 | d77502c89f30a963d96e5e1625d8eefb |
|
BLAKE2b-256 | 302f391f6936c9525c4c50c4ca64aa3372d8531208a1af8e82b8c59643f3bb23 |
Close
Hashes for rsilk-0.1.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19c1d1e3c0c4887ef0dee0081bcec875f11b6c9ec0082aa9143171251cbfa7c5 |
|
MD5 | 8e0e0066c96d5f49f99dee48fef93cf4 |
|
BLAKE2b-256 | a137c0f433490c815e5f3c687011306065808b3dd608062d39e0cc8f417b7ad4 |
Close
Hashes for rsilk-0.1.1-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 968b35c52615d67dac106572bd84f634fa59ddccce9f632647851bf07731554b |
|
MD5 | dd984681b670dc9bbdf263a52979922d |
|
BLAKE2b-256 | 0df36ca8189e0b281533c1c66347f918165969e5a4adc556717e49d43dbdfe86 |
Close
Hashes for rsilk-0.1.1-cp38-cp38-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b8bc4671de896c439bed38ab51df18edffad556af0a3f9f4dc131ea06fb3dec |
|
MD5 | b472c581599c000a89631519f4fbeef7 |
|
BLAKE2b-256 | 268d5374bb03d921c96f654a1535109395a9227bfb054b13cfd2cd4a19632ea9 |
Close
Hashes for rsilk-0.1.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13a0baa53f4ffb54e88116d51f74e2e886ef1e22515bd0b068e3a6948c67c7dd |
|
MD5 | e390ece4d83958d3bff6186754e80104 |
|
BLAKE2b-256 | e6db0f94cab46c60232b5eea81cb92e636935f01875782d0ab65e93c79f6c81b |
Close
Hashes for rsilk-0.1.1-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd9f1a5367ee6a3d5daabaccae5e35fdd779fcb2d5dc16be5e828201751bf139 |
|
MD5 | 74830a8a1ca889413331993f95234bae |
|
BLAKE2b-256 | 16ea9d3f194cf3492bf26a3e3b3834ed34e875ec877f7be1e36ca48cbe3340b6 |
Close
Hashes for rsilk-0.1.1-cp37-cp37m-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e96006a514642b96b66eedb9230e5657e802162e3d9e02974bd32b47f473fa00 |
|
MD5 | 9642148a00093a57be7864472c618358 |
|
BLAKE2b-256 | 1c80eb94b6f9d0115b4b511f97ca910d140fae9675caa26075fffc125d965a5a |
Close
Hashes for rsilk-0.1.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98b5f39bee7cdaa258db9241d2c6bc2e2cf8231ba7926789aeff3bca6117b7ed |
|
MD5 | 2c1e75d8c5a483a30962ba715cce99f8 |
|
BLAKE2b-256 | 3f407e44bf7938f5779de5a9779913388cf628f637b9d3a38c70c4e05e8745dd |
Close
Hashes for rsilk-0.1.1-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1af5f7168abf18ab478ac3ca08721960e55df30506c5b06238f323436b2c61e |
|
MD5 | cbef3aeb759ddb3ad36fa6c249a447ed |
|
BLAKE2b-256 | 743772ecef69fe7df167e183e5a00f255bd9b2dd7f41ef5127709f0fa57d3c92 |
Close
Hashes for rsilk-0.1.1-cp36-cp36m-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de2113c6be843493e16305ddfc527d8d9e651274ba7f56961d823018ecda2622 |
|
MD5 | 52771833f4fb43fe345c659f5829358b |
|
BLAKE2b-256 | 9bfb5f84aa504321bde7adf4e7d8c22ac81af8ae587e946b5a728878e7471fcc |