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)
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, frame_size: int = 0, frames_per_packet: int = 1, more_internal_decoder_frames: bool = False, in_band_fec_offset: int = 0, loss: bool = False) -> bytes
-
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) -> 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.3.tar.gz
(2.9 kB
view hashes)
Built Distributions
rsilk-0.1.3-cp310-cp310-win_amd64.whl
(190.1 kB
view hashes)
rsilk-0.1.3-cp39-cp39-win_amd64.whl
(190.1 kB
view hashes)
rsilk-0.1.3-cp38-cp38-win_amd64.whl
(190.1 kB
view hashes)
rsilk-0.1.3-cp37-cp37m-win_amd64.whl
(190.1 kB
view hashes)
rsilk-0.1.3-cp36-cp36m-win_amd64.whl
(190.1 kB
view hashes)
Close
Hashes for rsilk-0.1.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f2b53212cff2d45e4cca0b114f327f58450f8136a90689b6e5a5fc1094bdac4 |
|
MD5 | 5b193d4495cf51902b811de6c2346526 |
|
BLAKE2b-256 | 2730f8f9e30a897cf4100a4c86e93262c11d6fddf35bf3278bfd394156857217 |
Close
Hashes for rsilk-0.1.3-cp310-cp310-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af4fffb88552b880c56eb499a85540372d26599751ccac990be271d4fd5a480d |
|
MD5 | 7c0d2906c10ab80f379f1aff897914e4 |
|
BLAKE2b-256 | 3d75e335f3a4813042f3260b2fa3882075be7c806f7eaf98b3c99f1c74a53d6f |
Close
Hashes for rsilk-0.1.3-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fea86f97ea050a77367072ee2d1622daab4cf4ac3742a2e1456916ce120aa05d |
|
MD5 | 6b336814dc5c4b3f323eed8c3d8346f5 |
|
BLAKE2b-256 | 98375ba14001e48b63498dc0e94a452d5b0164faf53a568039b23d61c382f9f8 |
Close
Hashes for rsilk-0.1.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e93293d7dae7f39efc0ff51c440bacc3e7f54e7a58d3b006d68fee894375fa92 |
|
MD5 | 444eea66c4f8c463de1ddebe28145404 |
|
BLAKE2b-256 | 3bfdbf56aa9266de41b1baafccd20ba096ac2cdb46a501ded7b1096df0263532 |
Close
Hashes for rsilk-0.1.3-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 821acd862a733cb8851971e6e04d90fe78827876716257ef0c21a61b5699a1c1 |
|
MD5 | 61f113bd1baa2ddcf412392343ba9390 |
|
BLAKE2b-256 | 3e20513ddfaf6a452b8ebc411adfdb03786cdf3395eee236c10290f9a2560cba |
Close
Hashes for rsilk-0.1.3-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6aa6b6971909e342372b1565e073aae9944428e77655fab7f85ad6d60d0d462 |
|
MD5 | 2358f2823e953d3d186e87af5180a985 |
|
BLAKE2b-256 | e08c7db60098b59e99a94f369474abbe4b07d7675d8055f76250c79ed4ab0d54 |
Close
Hashes for rsilk-0.1.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e95fedcc716ac72d7d3de1b6bfdb6e5c4acb4f4fc86f1b3b3fb594c23f0fe2e |
|
MD5 | 7bc479fbf2931c34c20f76692917a998 |
|
BLAKE2b-256 | 9ca0a58f1c0d2e8102f6e21710e6d142996dcf8bab0e09590f8a530690d703da |
Close
Hashes for rsilk-0.1.3-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c044a584e1ce1396e681dc575dbdda0fd0020b31db112b88ebe601db34b880f3 |
|
MD5 | 2ac173b628194336711459753046f959 |
|
BLAKE2b-256 | ad5046f74e1f8ccb8a0c626b49cca571b11f5e8bbb40d317abad9a3e5da6a3f4 |
Close
Hashes for rsilk-0.1.3-cp38-cp38-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0ffcee323dd768e35878482c8cd4c989239b6513521c86278c4667f0ce875d3 |
|
MD5 | eddaea7587de295f22c8203e4ca94f27 |
|
BLAKE2b-256 | 5db125e1159b4e55fc95f3905cdfb03da85b208b2aa537d1e80b8c3b11c0bb1c |
Close
Hashes for rsilk-0.1.3-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91d18328cb3db2952474b79c83459321c636c600500d2f26266d30cb1d2d2aaa |
|
MD5 | 51dea0e4b2be01514b142de526fee15f |
|
BLAKE2b-256 | bd2bf53e0c552cf9426f0db055989bcb85de16d554f194112e2186fb7726f63b |
Close
Hashes for rsilk-0.1.3-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf34b73816cf1fbf9c1bbc90621b9c8fc7a4a451356d67f9d7b4abe8ec6c6008 |
|
MD5 | 92497100301bc4b6a02d2b79e0d0daf8 |
|
BLAKE2b-256 | e5173018d3c2aeca7a2fc81f0337eed2bda8a5d45ab267f5deed2ef4e7229294 |
Close
Hashes for rsilk-0.1.3-cp37-cp37m-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2d5e1eb1b92770b50777689ca672f76f8ce1064279eba92048c90a291a7b98a |
|
MD5 | fc1797641ae1d31d885fbd7b822e274d |
|
BLAKE2b-256 | 9d38bb9fd7b0fd06527c9a7378b72cc3f7103f3eb6f2257332fb5f8b75270dcb |
Close
Hashes for rsilk-0.1.3-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be5420b94e256e2c3f6ab814d45bfa95716d4ac9ec6fd891bef0126536375752 |
|
MD5 | 0086f87ec6b27a1c9b8a30b541a1c627 |
|
BLAKE2b-256 | cb93a488c3f45ae13652254a64a0a8000856a10d9ca50aadc0f79f0989ad9fa8 |
Close
Hashes for rsilk-0.1.3-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 159f077abae042b533c1342f68ced7dc2f55df0c41dfc4c2613a81377df55cfc |
|
MD5 | ed0965ce4e8023c725863113a77c3706 |
|
BLAKE2b-256 | e4a3a38981c0175bcafda6076306f94d274935bd2820a4334467c3aac9dd64f4 |
Close
Hashes for rsilk-0.1.3-cp36-cp36m-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2159049b97de8602c88241f093f0d90f84c29bf669203c28b5642d96255ac573 |
|
MD5 | cf16b91d02ed5c0c13000796550f3ebe |
|
BLAKE2b-256 | fc0cfcaa75984a4b92a6f3fb9abfb1dccc129800cc66cc571308a3bdb476840f |