silk encode and decode
Project description
✨ pysilk-cffi ✨
The cffi binding for silk-v3-decoder
安装
pip install pysilk-cffi
使用
- encode
import pysilk
with open("verybiginput.pcm", "rb") as pcm, open("output.silk", "wb") as silk:
pysilk.encode(pcm, silk, 24000, 24000)
- decode
import pysilk
with open("verybiginput.silk", "rb") as silk, open("output.pcm", "wb") as pcm:
pysilk.decode(silk, pcm, 24000)
支持功能
- 接受任何二进制的
file-like object,比如BytesIO,可以流式解码大文件 - 包装了silk的全部C接口的参数,当然他们都有合理的默认值
公开函数
from typing import BinaryIO
def encode(input: BinaryIO, output: BinaryIO, 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: ...
def decode(input: BinaryIO, output: BinaryIO, 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: ...
公开异常
class SilkError(Exception):
pass
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pysilk-cffi-0.1.0rc1.tar.gz.
File metadata
- Download URL: pysilk-cffi-0.1.0rc1.tar.gz
- Upload date:
- Size: 165.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efcfbcf76152a974ae997d6eba911c2c9e9956fdaf964f7e6a3fa8d5e987b7d7
|
|
| MD5 |
0c19d56dbefce6223d9f57691282e001
|
|
| BLAKE2b-256 |
c40b25d89c723d53d51eb71cf97639617b7b37426159224b373ce9e2ff912520
|
File details
Details for the file pysilk_cffi-0.1.0rc1-pp38-pypy38_pp73-win_amd64.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-pp38-pypy38_pp73-win_amd64.whl
- Upload date:
- Size: 109.4 kB
- Tags: PyPy, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 PyPy/7.3.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5552f74818d5cc9336c5179cdb0bc26232574a68c180d77ec1e96e8a913686a
|
|
| MD5 |
01c35ca6ff01a7fd46f2e770fc3cf5cf
|
|
| BLAKE2b-256 |
316a47585b2308bc2b66e8aa61e1c252cc853d7d71a697cc49dd3918d4c130d1
|
File details
Details for the file pysilk_cffi-0.1.0rc1-pp38-pypy38_pp73-manylinux2014_x86_64.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-pp38-pypy38_pp73-manylinux2014_x86_64.whl
- Upload date:
- Size: 122.8 kB
- Tags: PyPy
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 PyPy/7.3.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5517f117af2e7203b7e79d3a5ea826d152ba3ff7606cd90401aafc7c12661964
|
|
| MD5 |
b82ab3160c82fb87c72b3a05b3186000
|
|
| BLAKE2b-256 |
22f8aab3a19e6f2eb4a2d4074c23534505e2d1d292d8cefd5de2e10b25d40ad2
|
File details
Details for the file pysilk_cffi-0.1.0rc1-pp38-pypy38_pp73-macosx_10_9_x86_64.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
- Upload date:
- Size: 124.4 kB
- Tags: PyPy, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 PyPy/7.3.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15c4475c23bbc5acf6bfb6bd066f6725d8d819607c0d49f52618dc5621ce3174
|
|
| MD5 |
efcaa0235af1e57f0b1b416c8ccdab49
|
|
| BLAKE2b-256 |
a8497146244e5bf987a4f8091001d4f024c4c45d4545215717fe7b2daab2116f
|
File details
Details for the file pysilk_cffi-0.1.0rc1-pp37-pypy37_pp73-win_amd64.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-pp37-pypy37_pp73-win_amd64.whl
- Upload date:
- Size: 109.4 kB
- Tags: PyPy, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 PyPy/7.3.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfc7a1aa60662a8ee01812c198284fa0e16540d24a9805d9022c204ea127c744
|
|
| MD5 |
ff7e4a09b5c8455a661b94e7368cca8f
|
|
| BLAKE2b-256 |
5a4e97063db3e460edb71844e901090f190d86c598a782df70e37c18f1cecfc3
|
File details
Details for the file pysilk_cffi-0.1.0rc1-pp37-pypy37_pp73-manylinux2014_x86_64.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-pp37-pypy37_pp73-manylinux2014_x86_64.whl
- Upload date:
- Size: 124.6 kB
- Tags: PyPy
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 PyPy/7.3.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fc31336269ae732c0d4048fac024abd82b21e4102829adb8e28766bfd84f294
|
|
| MD5 |
a241b0d5a3285c49440297068bcec36a
|
|
| BLAKE2b-256 |
bf50ce7c98a001747fd79287885331cb9ce5dd403952f0b5fd41bee9866c10b5
|
File details
Details for the file pysilk_cffi-0.1.0rc1-pp37-pypy37_pp73-macosx_10_9_x86_64.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
- Upload date:
- Size: 124.4 kB
- Tags: PyPy, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 PyPy/7.3.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef688d466aff0240e513922d84732a21e924595dcf53f5283c6926373bac751e
|
|
| MD5 |
2e206757d58b8ad3996cee69de4b3cc7
|
|
| BLAKE2b-256 |
c0eda7f5ff674c9d87d403a1fe5fe0edb826f561113907cac47803e6a1fa4ad8
|
File details
Details for the file pysilk_cffi-0.1.0rc1-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 111.8 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c6d83920f7903b719ef26d94cee5bd459df18361eac81d0a087836f5d1e7468
|
|
| MD5 |
5653b29aa6601fdb8715f45693c805a5
|
|
| BLAKE2b-256 |
2cbae43f169064c30e42f4b059606e1b725c86bd74a7e84964e481702ad34c2b
|
File details
Details for the file pysilk_cffi-0.1.0rc1-cp310-cp310-manylinux2014_x86_64.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-cp310-cp310-manylinux2014_x86_64.whl
- Upload date:
- Size: 507.7 kB
- Tags: CPython 3.10
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47b1b250111b3740d3b1559650201eb0d0c67e4be7a0803d42a4b7036ff0af48
|
|
| MD5 |
73e3143c0888de71c2b9f12fe668f150
|
|
| BLAKE2b-256 |
1bf4f269abc8ece42ef3fce9d839d90f529e6ea5711f53e711b8ecc10c76f589
|
File details
Details for the file pysilk_cffi-0.1.0rc1-cp310-cp310-macosx_10_15_universal2.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-cp310-cp310-macosx_10_15_universal2.whl
- Upload date:
- Size: 271.1 kB
- Tags: CPython 3.10, macOS 10.15+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9a863ab9af949c90c8fc24fdb382777eb12de354a2d7c671807e7b1b78f39d4
|
|
| MD5 |
f86bc9c17e59c1bf1248f7bd64440ef1
|
|
| BLAKE2b-256 |
797c7a9527aa5689ce00910bfc9776678254b4df7794f8da6c60a1e4a1e1eff6
|
File details
Details for the file pysilk_cffi-0.1.0rc1-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 111.8 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1807d1d4f73f511b471f36d1a39c24d4bbfe1b71ceb557d2426935e1b1facadf
|
|
| MD5 |
be81bc406a69ab1f6c7e91e1c288eee9
|
|
| BLAKE2b-256 |
01eb263d900660b51f7b35cb44cfa9f10fc04b22806d2e5c6e9ee84aa54b5749
|
File details
Details for the file pysilk_cffi-0.1.0rc1-cp39-cp39-manylinux2014_x86_64.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-cp39-cp39-manylinux2014_x86_64.whl
- Upload date:
- Size: 507.8 kB
- Tags: CPython 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7feb41a497cded9b6562bbc0ea56b0ace75bc68a5af01c846cab74a522cbae9
|
|
| MD5 |
e474e6ae720a0e99ee8130f66efd67cf
|
|
| BLAKE2b-256 |
2148167a8e1cf4a650984008388d9e1a977e507d578cdcbd547121c3cbe85063
|
File details
Details for the file pysilk_cffi-0.1.0rc1-cp39-cp39-macosx_10_15_x86_64.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-cp39-cp39-macosx_10_15_x86_64.whl
- Upload date:
- Size: 143.2 kB
- Tags: CPython 3.9, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52b64fc7c01bd3f5e3462d80b9916f2c545d5031ec766a9081e618ffae0350c1
|
|
| MD5 |
29e3999440436038d66beb7745ef67fa
|
|
| BLAKE2b-256 |
0913431dd8ee7ba5aa00e8b3aa061a139f5120b8aea9eaa381b80454ff684fb2
|
File details
Details for the file pysilk_cffi-0.1.0rc1-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 111.8 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b07388d153df28be844f79b2e337894f984786eb6d04c9b9ed72d0b0e1901ed2
|
|
| MD5 |
446047182fbfde1902a260b9488ad025
|
|
| BLAKE2b-256 |
4d17320962633a9a187bb83c7424213523cd0bbb6c573cc06fd220c986852eff
|
File details
Details for the file pysilk_cffi-0.1.0rc1-cp38-cp38-manylinux2014_x86_64.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-cp38-cp38-manylinux2014_x86_64.whl
- Upload date:
- Size: 508.1 kB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31699c6e76f3382929e317494d11140aa103496fc04718312f5e49f12865a8d5
|
|
| MD5 |
a74aab299de70384e4c6e2452141cfd7
|
|
| BLAKE2b-256 |
86315aa821ada9f507d7c12c00583c8205aecdaa3881d966dcc95d014ef7c027
|
File details
Details for the file pysilk_cffi-0.1.0rc1-cp38-cp38-macosx_10_15_x86_64.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-cp38-cp38-macosx_10_15_x86_64.whl
- Upload date:
- Size: 143.2 kB
- Tags: CPython 3.8, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b41bd6c0e36be4729d13ac252ce50b16e97d743d0408b0a78bb1653f019a609
|
|
| MD5 |
1c047402e75a7ffa6aa105fdd3a972de
|
|
| BLAKE2b-256 |
04cd17aef284ba41f6b82be80b06e716ee645e247ace76c4438f1c9ec1787a4a
|
File details
Details for the file pysilk_cffi-0.1.0rc1-cp37-cp37m-win_amd64.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 111.8 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70f82308daa8986f0261a3daaef0ff68294028ddd6953801032f9f9c075d6f5f
|
|
| MD5 |
772a301d7b56561d0745718f5620cc18
|
|
| BLAKE2b-256 |
12d8e8c86bfe1332138c204fd25ae61a59b58f7bcab4cb84b9e327d301395003
|
File details
Details for the file pysilk_cffi-0.1.0rc1-cp37-cp37m-manylinux2014_x86_64.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-cp37-cp37m-manylinux2014_x86_64.whl
- Upload date:
- Size: 507.7 kB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8924350a90d91e96fe762f120964c8631296bb2140e6a59f5461dbfa50b9daa
|
|
| MD5 |
0845c16d0bf2fcb6e54edc15fa6a061e
|
|
| BLAKE2b-256 |
8f31549a393ef9fb8da70ae009a962b92dea59d32187ee8cdc41aef53ffd8dcc
|
File details
Details for the file pysilk_cffi-0.1.0rc1-cp37-cp37m-macosx_10_15_x86_64.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-cp37-cp37m-macosx_10_15_x86_64.whl
- Upload date:
- Size: 143.2 kB
- Tags: CPython 3.7m, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
451cfb9136c4462ffd7a26a404a8dfbd44311eeca98021141656b0e15cc99309
|
|
| MD5 |
9f74257dded074aa292c2e7c6e1a317d
|
|
| BLAKE2b-256 |
111d5052aba220a27da7f893efcadc159d0a93b2415aac1296f8a3cbd5fe325f
|
File details
Details for the file pysilk_cffi-0.1.0rc1-cp36-cp36m-win_amd64.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 118.6 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.2.0 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60b64fa651460bc6715bbd084e7810775308bfe97124e0dd458a978910bdefad
|
|
| MD5 |
e75a424298cb73de9c9b9bb44369223d
|
|
| BLAKE2b-256 |
9a5484c55192767ceb94a1c39b3bb14eb99bd78d24adcc744e1532d5c1159294
|
File details
Details for the file pysilk_cffi-0.1.0rc1-cp36-cp36m-manylinux2014_x86_64.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-cp36-cp36m-manylinux2014_x86_64.whl
- Upload date:
- Size: 525.3 kB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.2.0 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cad1333ee77b596d215e28cacd6c04acf109b17f265a8c3d2008b17de914f9fb
|
|
| MD5 |
7fabd0cd0733f53afbe59eab96ec11d7
|
|
| BLAKE2b-256 |
9dcf245326bce0ce47e347df2f99a51e83023f91eebfb20cb466cdebcf2a893d
|
File details
Details for the file pysilk_cffi-0.1.0rc1-cp36-cp36m-macosx_10_14_x86_64.whl.
File metadata
- Download URL: pysilk_cffi-0.1.0rc1-cp36-cp36m-macosx_10_14_x86_64.whl
- Upload date:
- Size: 144.4 kB
- Tags: CPython 3.6m, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.2.0 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
000816a20dfe82259f3f9216c276e4423947f5087acbd42bb6a314a1d4bcfabc
|
|
| MD5 |
ac0e0d5ddb016e3de7c925de43d81a36
|
|
| BLAKE2b-256 |
90894c23da080e84a41bf4239bd8f740862a43440fb1b0c69aa08f94198791fc
|