Pre-release
This release is a pre-release and may not be stable for production use.
✨ 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
Metadata
Release files for pysilk-cffi 0.1.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pysilk-cffi-0.1.0rc1.tar.gz | 165.3 kB | Details |
Built distributions (wheels)
Total release size: 4.8 MB
Release files / pysilk-cffi-0.1.0rc1.tar.gz
| Download URL | pysilk-cffi-0.1.0rc1.tar.gz |
|---|---|
| Size | 165.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
efcfbcf76152a974ae997d6eba911c2c9e9956fdaf964f7e6a3fa8d5e987b7d7
|
|
BLAKE2b-256 checksum How to use checksums |
c40b25d89c723d53d51eb71cf97639617b7b37426159224b373ce9e2ff912520
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / pysilk_cffi-0.1.0rc1-pp38-pypy38_pp73-win_amd64.whl
| Download URL | pysilk_cffi-0.1.0rc1-pp38-pypy38_pp73-win_amd64.whl |
|---|---|
| Size | 109.4 kB |
| Tags | PyPy 3.8 PyPy 3.8 7.3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d5552f74818d5cc9336c5179cdb0bc26232574a68c180d77ec1e96e8a913686a
|
|
BLAKE2b-256 checksum How to use checksums |
316a47585b2308bc2b66e8aa61e1c252cc853d7d71a697cc49dd3918d4c130d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 PyPy/7.3.9
|
Release files / pysilk_cffi-0.1.0rc1-pp38-pypy38_pp73-manylinux2014_x86_64.whl
| Download URL | pysilk_cffi-0.1.0rc1-pp38-pypy38_pp73-manylinux2014_x86_64.whl |
|---|---|
| Size | 122.8 kB |
| Tags | Linux glibc 2.17+ x86-64 PyPy 3.8 PyPy 3.8 7.3 |
|
SHA-256 checksum How to use checksums |
5517f117af2e7203b7e79d3a5ea826d152ba3ff7606cd90401aafc7c12661964
|
|
BLAKE2b-256 checksum How to use checksums |
22f8aab3a19e6f2eb4a2d4074c23534505e2d1d292d8cefd5de2e10b25d40ad2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 PyPy/7.3.9
|
Release files / pysilk_cffi-0.1.0rc1-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
| Download URL | pysilk_cffi-0.1.0rc1-pp38-pypy38_pp73-macosx_10_9_x86_64.whl |
|---|---|
| Size | 124.4 kB |
| Tags | PyPy 3.8 PyPy 3.8 7.3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
15c4475c23bbc5acf6bfb6bd066f6725d8d819607c0d49f52618dc5621ce3174
|
|
BLAKE2b-256 checksum How to use checksums |
a8497146244e5bf987a4f8091001d4f024c4c45d4545215717fe7b2daab2116f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 PyPy/7.3.9
|
Release files / pysilk_cffi-0.1.0rc1-pp37-pypy37_pp73-win_amd64.whl
| Download URL | pysilk_cffi-0.1.0rc1-pp37-pypy37_pp73-win_amd64.whl |
|---|---|
| Size | 109.4 kB |
| Tags | PyPy 3.7 PyPy 3.7 7.3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
cfc7a1aa60662a8ee01812c198284fa0e16540d24a9805d9022c204ea127c744
|
|
BLAKE2b-256 checksum How to use checksums |
5a4e97063db3e460edb71844e901090f190d86c598a782df70e37c18f1cecfc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 PyPy/7.3.9
|
Release files / pysilk_cffi-0.1.0rc1-pp37-pypy37_pp73-manylinux2014_x86_64.whl
| Download URL | pysilk_cffi-0.1.0rc1-pp37-pypy37_pp73-manylinux2014_x86_64.whl |
|---|---|
| Size | 124.6 kB |
| Tags | Linux glibc 2.17+ x86-64 PyPy 3.7 PyPy 3.7 7.3 |
|
SHA-256 checksum How to use checksums |
9fc31336269ae732c0d4048fac024abd82b21e4102829adb8e28766bfd84f294
|
|
BLAKE2b-256 checksum How to use checksums |
bf50ce7c98a001747fd79287885331cb9ce5dd403952f0b5fd41bee9866c10b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 PyPy/7.3.9
|
Release files / pysilk_cffi-0.1.0rc1-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
| Download URL | pysilk_cffi-0.1.0rc1-pp37-pypy37_pp73-macosx_10_9_x86_64.whl |
|---|---|
| Size | 124.4 kB |
| Tags | PyPy 3.7 PyPy 3.7 7.3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
ef688d466aff0240e513922d84732a21e924595dcf53f5283c6926373bac751e
|
|
BLAKE2b-256 checksum How to use checksums |
c0eda7f5ff674c9d87d403a1fe5fe0edb826f561113907cac47803e6a1fa4ad8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 PyPy/7.3.9
|
Release files / pysilk_cffi-0.1.0rc1-cp310-cp310-win_amd64.whl
| Download URL | pysilk_cffi-0.1.0rc1-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 111.8 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6c6d83920f7903b719ef26d94cee5bd459df18361eac81d0a087836f5d1e7468
|
|
BLAKE2b-256 checksum How to use checksums |
2cbae43f169064c30e42f4b059606e1b725c86bd74a7e84964e481702ad34c2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / pysilk_cffi-0.1.0rc1-cp310-cp310-manylinux2014_x86_64.whl
| Download URL | pysilk_cffi-0.1.0rc1-cp310-cp310-manylinux2014_x86_64.whl |
|---|---|
| Size | 507.7 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
47b1b250111b3740d3b1559650201eb0d0c67e4be7a0803d42a4b7036ff0af48
|
|
BLAKE2b-256 checksum How to use checksums |
1bf4f269abc8ece42ef3fce9d839d90f529e6ea5711f53e711b8ecc10c76f589
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / pysilk_cffi-0.1.0rc1-cp310-cp310-macosx_10_15_universal2.whl
| Download URL | pysilk_cffi-0.1.0rc1-cp310-cp310-macosx_10_15_universal2.whl |
|---|---|
| Size | 271.1 kB |
| Tags | CPython 3.10 macOS 10.15+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
e9a863ab9af949c90c8fc24fdb382777eb12de354a2d7c671807e7b1b78f39d4
|
|
BLAKE2b-256 checksum How to use checksums |
797c7a9527aa5689ce00910bfc9776678254b4df7794f8da6c60a1e4a1e1eff6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / pysilk_cffi-0.1.0rc1-cp39-cp39-win_amd64.whl
| Download URL | pysilk_cffi-0.1.0rc1-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 111.8 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1807d1d4f73f511b471f36d1a39c24d4bbfe1b71ceb557d2426935e1b1facadf
|
|
BLAKE2b-256 checksum How to use checksums |
01eb263d900660b51f7b35cb44cfa9f10fc04b22806d2e5c6e9ee84aa54b5749
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / pysilk_cffi-0.1.0rc1-cp39-cp39-manylinux2014_x86_64.whl
| Download URL | pysilk_cffi-0.1.0rc1-cp39-cp39-manylinux2014_x86_64.whl |
|---|---|
| Size | 507.8 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
e7feb41a497cded9b6562bbc0ea56b0ace75bc68a5af01c846cab74a522cbae9
|
|
BLAKE2b-256 checksum How to use checksums |
2148167a8e1cf4a650984008388d9e1a977e507d578cdcbd547121c3cbe85063
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / pysilk_cffi-0.1.0rc1-cp39-cp39-macosx_10_15_x86_64.whl
| Download URL | pysilk_cffi-0.1.0rc1-cp39-cp39-macosx_10_15_x86_64.whl |
|---|---|
| Size | 143.2 kB |
| Tags | CPython 3.9 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
52b64fc7c01bd3f5e3462d80b9916f2c545d5031ec766a9081e618ffae0350c1
|
|
BLAKE2b-256 checksum How to use checksums |
0913431dd8ee7ba5aa00e8b3aa061a139f5120b8aea9eaa381b80454ff684fb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / pysilk_cffi-0.1.0rc1-cp38-cp38-win_amd64.whl
| Download URL | pysilk_cffi-0.1.0rc1-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 111.8 kB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b07388d153df28be844f79b2e337894f984786eb6d04c9b9ed72d0b0e1901ed2
|
|
BLAKE2b-256 checksum How to use checksums |
4d17320962633a9a187bb83c7424213523cd0bbb6c573cc06fd220c986852eff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Release files / pysilk_cffi-0.1.0rc1-cp38-cp38-manylinux2014_x86_64.whl
| Download URL | pysilk_cffi-0.1.0rc1-cp38-cp38-manylinux2014_x86_64.whl |
|---|---|
| Size | 508.1 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
31699c6e76f3382929e317494d11140aa103496fc04718312f5e49f12865a8d5
|
|
BLAKE2b-256 checksum How to use checksums |
86315aa821ada9f507d7c12c00583c8205aecdaa3881d966dcc95d014ef7c027
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.13
|
Release files / pysilk_cffi-0.1.0rc1-cp38-cp38-macosx_10_15_x86_64.whl
| Download URL | pysilk_cffi-0.1.0rc1-cp38-cp38-macosx_10_15_x86_64.whl |
|---|---|
| Size | 143.2 kB |
| Tags | CPython 3.8 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
5b41bd6c0e36be4729d13ac252ce50b16e97d743d0408b0a78bb1653f019a609
|
|
BLAKE2b-256 checksum How to use checksums |
04cd17aef284ba41f6b82be80b06e716ee645e247ace76c4438f1c9ec1787a4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.13
|
Release files / pysilk_cffi-0.1.0rc1-cp37-cp37m-win_amd64.whl
| Download URL | pysilk_cffi-0.1.0rc1-cp37-cp37m-win_amd64.whl |
|---|---|
| Size | 111.8 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
70f82308daa8986f0261a3daaef0ff68294028ddd6953801032f9f9c075d6f5f
|
|
BLAKE2b-256 checksum How to use checksums |
12d8e8c86bfe1332138c204fd25ae61a59b58f7bcab4cb84b9e327d301395003
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.9
|
Release files / pysilk_cffi-0.1.0rc1-cp37-cp37m-manylinux2014_x86_64.whl
| Download URL | pysilk_cffi-0.1.0rc1-cp37-cp37m-manylinux2014_x86_64.whl |
|---|---|
| Size | 507.7 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
e8924350a90d91e96fe762f120964c8631296bb2140e6a59f5461dbfa50b9daa
|
|
BLAKE2b-256 checksum How to use checksums |
8f31549a393ef9fb8da70ae009a962b92dea59d32187ee8cdc41aef53ffd8dcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.13
|
Release files / pysilk_cffi-0.1.0rc1-cp37-cp37m-macosx_10_15_x86_64.whl
| Download URL | pysilk_cffi-0.1.0rc1-cp37-cp37m-macosx_10_15_x86_64.whl |
|---|---|
| Size | 143.2 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
451cfb9136c4462ffd7a26a404a8dfbd44311eeca98021141656b0e15cc99309
|
|
BLAKE2b-256 checksum How to use checksums |
111d5052aba220a27da7f893efcadc159d0a93b2415aac1296f8a3cbd5fe325f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.13
|
Release files / pysilk_cffi-0.1.0rc1-cp36-cp36m-win_amd64.whl
| Download URL | pysilk_cffi-0.1.0rc1-cp36-cp36m-win_amd64.whl |
|---|---|
| Size | 118.6 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
60b64fa651460bc6715bbd084e7810775308bfe97124e0dd458a978910bdefad
|
|
BLAKE2b-256 checksum How to use checksums |
9a5484c55192767ceb94a1c39b3bb14eb99bd78d24adcc744e1532d5c1159294
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pysilk_cffi-0.1.0rc1-cp36-cp36m-manylinux2014_x86_64.whl
| Download URL | pysilk_cffi-0.1.0rc1-cp36-cp36m-manylinux2014_x86_64.whl |
|---|---|
| Size | 525.3 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
cad1333ee77b596d215e28cacd6c04acf109b17f265a8c3d2008b17de914f9fb
|
|
BLAKE2b-256 checksum How to use checksums |
9dcf245326bce0ce47e347df2f99a51e83023f91eebfb20cb466cdebcf2a893d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pysilk_cffi-0.1.0rc1-cp36-cp36m-macosx_10_14_x86_64.whl
| Download URL | pysilk_cffi-0.1.0rc1-cp36-cp36m-macosx_10_14_x86_64.whl |
|---|---|
| Size | 144.4 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc macOS 10.14+ x86-64 |
|
SHA-256 checksum How to use checksums |
000816a20dfe82259f3f9216c276e4423947f5087acbd42bb6a314a1d4bcfabc
|
|
BLAKE2b-256 checksum How to use checksums |
90894c23da080e84a41bf4239bd8f740862a43440fb1b0c69aa08f94198791fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|