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.4.tar.gz
(3.7 kB
view hashes)
Built Distributions
rsilk-0.1.4-cp312-cp312-win_amd64.whl
(184.9 kB
view hashes)
rsilk-0.1.4-cp311-cp311-win_amd64.whl
(186.5 kB
view hashes)
rsilk-0.1.4-cp310-cp310-win_amd64.whl
(187.1 kB
view hashes)
rsilk-0.1.4-cp39-cp39-win_amd64.whl
(187.1 kB
view hashes)
rsilk-0.1.4-cp38-cp38-win_amd64.whl
(187.1 kB
view hashes)
rsilk-0.1.4-cp37-cp37m-win_amd64.whl
(187.1 kB
view hashes)
Close
Hashes for rsilk-0.1.4-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0549ccc1456e048eb4bac002dfb6d8b37fbf493e44767e9421a5dbc49ffe138 |
|
MD5 | c380116172b6185bd6217b9f87323cd0 |
|
BLAKE2b-256 | 727c76293a4e3783833c0f9b4d6410282ae14b378fe74053fbbdea3329973593 |
Close
Hashes for rsilk-0.1.4-cp312-cp312-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f218f0d86c873c77e46d0db614610bd3f27123e923d7b878474ec5478707239d |
|
MD5 | 8dbe3bb7fdfd8e86031221ba062242e8 |
|
BLAKE2b-256 | 199ac043166d5ab9cc52e2cfe6556b4820fc5cc2c3e729b53e6f8ca3c36c0256 |
Close
Hashes for rsilk-0.1.4-cp312-cp312-macosx_12_0_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e181608cffaa0e89c0e144346cc7717479352bbc31ba67cfde343b8814dd804c |
|
MD5 | da65f28fe719c9e1705cfd21158d0a52 |
|
BLAKE2b-256 | 55897b966a0b67fe3aa54bd452ff97003ea7bee3389955ecdd0a5619bd3d9706 |
Close
Hashes for rsilk-0.1.4-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d34753169212a119af3999ee8264b02eee071baa9069babbb76cdae4e978129 |
|
MD5 | a3423b28fa743938033721e957909a3d |
|
BLAKE2b-256 | 54a1d6e89ceb06df9c6f872e348a09fc1b6aabeb6e834b5f9b177d0f1a6d6d82 |
Close
Hashes for rsilk-0.1.4-cp311-cp311-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0077c1616ab390dc3a344fe79ae45f48aa5cfca127a9e58892ededa985cbe764 |
|
MD5 | 192888cdf002623c324306bccdbd66ad |
|
BLAKE2b-256 | 6870d22498c65a203175565707a012caac3d897c42d44e4df5a6590abc72a47b |
Close
Hashes for rsilk-0.1.4-cp311-cp311-macosx_12_0_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 492199045843fca89311b1d1026aaa4572c1321481af8d8a2d4685ece9013931 |
|
MD5 | 13c15e3ef22b7356f5d41fb6ff2fe9d8 |
|
BLAKE2b-256 | 4213ac315f8fb23135264ade5171f3bfca0ae9ad37a969a8e67c381339b14175 |
Close
Hashes for rsilk-0.1.4-cp311-cp311-macosx_11_0_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f47a8b5e8ffe4d76f9cc4744291757fef89f5c908f0f58b147e02442f810322 |
|
MD5 | f39c3c373566b799ae42805f9489c3be |
|
BLAKE2b-256 | 3bbb7fcac64c44891c12b717cf9e5b93cba07b9976d65a4b667abd1f122580dd |
Close
Hashes for rsilk-0.1.4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5babc1d11e29a21431a383be5457a5351522ca25516b6bb10b7d10b26ee96fb8 |
|
MD5 | 7b8a72d1702cfdfdea329dbd9db39f7b |
|
BLAKE2b-256 | e0b2e36e82f9d211e632d45cab2b984f62635849ab5f85a3a5b269c7641e58f8 |
Close
Hashes for rsilk-0.1.4-cp310-cp310-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 694ca05c3875643899178297e57e5f4aea137c04040c0811c619282216e5c375 |
|
MD5 | e725f17cc82c135ee3b56123b59c7339 |
|
BLAKE2b-256 | 8e239e7f538db6f5881f8bf0ced47d32fbda4004c37a74db1164ccec631266e5 |
Close
Hashes for rsilk-0.1.4-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8daeb157f33085a0063762edb473e6ef3ade123c88d5ff64c92698469d9da6e2 |
|
MD5 | cfaeeff28a103f8b22278a3859da5ae2 |
|
BLAKE2b-256 | b8861348247a3f681dd303392784cca2512927307a250f6c1f1a6bb0bb4d35a1 |
Close
Hashes for rsilk-0.1.4-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be51ff5bea06c1107142d2c3a6582a93bee8bd86b0ac0a9888fd987674e96444 |
|
MD5 | 512dc485ef6a49ab99fe9482dc6d69c3 |
|
BLAKE2b-256 | fe2a9f7c25bad4caf4116a88cf4567866c7eebc88f2f407ba8dd510afa38b4a3 |
Close
Hashes for rsilk-0.1.4-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bc25a5db68ddc5db72db72aa14bbd9c9ad798c7a34aa4945754c742e7f50fe3 |
|
MD5 | a298bbe4d5ba04b5aeab4ab00f123959 |
|
BLAKE2b-256 | 28194421e457189f8bd6d35aa4e4f44324defb9b8a054a19abf75365ed5e9248 |
Close
Hashes for rsilk-0.1.4-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd8716752dde6c79d00031350ea39f99645adfc4b9eeca7c881523febf111d50 |
|
MD5 | f586fcdb6d82725e48162cc4f659105b |
|
BLAKE2b-256 | 99f69e1a76f4df1d6e1e8bb45f43bd83b8a6e8e9ba771d6735a00adf13b09975 |
Close
Hashes for rsilk-0.1.4-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78948c1f1055400c66306c879f80f22c55689eabb9906f8174e7b6ff8aada845 |
|
MD5 | 9e111186c59c1a33014246fac66006b5 |
|
BLAKE2b-256 | 9e2ec9546afeb42d0118498f3d45b66b85c8e74b240f9e16022d2bdd50986a5c |
Close
Hashes for rsilk-0.1.4-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28c6bac1412ed0a76189eb406b6285e283f0b1b786796eb2562799d21a575c13 |
|
MD5 | 280d8c26e06a632c84c1e9d996da2963 |
|
BLAKE2b-256 | 8f0f97177ce6837515abdd28553a3e639d1743e6a179b5d92988d2a82269ba49 |
Close
Hashes for rsilk-0.1.4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f9615a30e743b8b36328de47e64da593d9b0d91c2c1b6b137c89ffb7d04dffa |
|
MD5 | 787273bddd7702ea54bbaf49cceb6665 |
|
BLAKE2b-256 | 5a3e187bcd0905c481abbb13c1f577df26a10e846fc0ea547d24b6fe18649370 |
Close
Hashes for rsilk-0.1.4-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 169effd59f71d434be964f961a223e68ef6242681e7ae860bad99e9b83999a60 |
|
MD5 | 1c91de26469447e63b7f8f3a09deea73 |
|
BLAKE2b-256 | 0dd3f56eb226408fea6986cc798d4fcada0aafb997e3b2ef193f2d7e64626655 |
Close
Hashes for rsilk-0.1.4-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f6374a91beaaadfed4e4630fe7ae384e28a378d1c0d6332d358388c1754f980 |
|
MD5 | 44e3448fbc0b12791cd227bf1d1db3c8 |
|
BLAKE2b-256 | 7401c9e95294020f8ef8447e76c6953a4d981105856db5da022e61ea8b2d55c7 |
Close
Hashes for rsilk-0.1.4-cp38-cp38-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ad6a63c6b4efcbacb1cfc941c51da5109c1a30c682917cdc15506472902f966 |
|
MD5 | 5d77b7187a1826bedd00fa941dcb66c0 |
|
BLAKE2b-256 | 26e233d368e30b6850c8da363b210f5cbe9c9573465f2d1afed15ebef18fb6c8 |
Close
Hashes for rsilk-0.1.4-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 612b63f50dad280a1698b092a7d195970e90508047c7fa5147023c297d4bb4bb |
|
MD5 | 871960431b578cf5555f57bbc2a1c786 |
|
BLAKE2b-256 | 3cb2a9b2690c795a4769c0b0b265e10dd79b7e450588f38fccb02013777d4e19 |
Close
Hashes for rsilk-0.1.4-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 916b74578033d8f6ccbf70b5d2a78fd00ea3d4bdf5c0952c85121b3e5f20bb79 |
|
MD5 | 523348ef8925d8c5be1cde6a121ce2a6 |
|
BLAKE2b-256 | 9911821989f24603b522ffa6a40f4c35d35eeec8b5155f870d5657fe90844917 |
Close
Hashes for rsilk-0.1.4-cp37-cp37m-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 031374b629009cd1a3bea1033ae1164d829ee3bd9cc2c7a4ac210d6712e59dab |
|
MD5 | 9db49bc3e8c878bf11faf93159798ba7 |
|
BLAKE2b-256 | 2c0c8fbbcbbbdf1c15147b68b0c56d26228f4aef7e508a85ab27da968ed7dab1 |
Close
Hashes for rsilk-0.1.4-cp37-cp37m-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6efdea8254f5ac55cdb96d3e8c9ef355c74b5d39dc2c866f1dab7276d58539e |
|
MD5 | 78384b6091a426064acd64b1bd5907fe |
|
BLAKE2b-256 | c2899db6fee7cfab25d54d631bc09bf3f45d9b55bcf8a9008ea074d24ab40da9 |