pyo3 wrappers to read/write audio files
Project description
sphn
Python bindings for the symphonia and opus crates.
- Easily load various audio file formats into numpy arrays.
- Read/write ogg/opus audio files with streaming support.
Installation
The python wheels are available on pypi.
pip install sphn
Usage
Download some sample audio file.
wget https://github.com/metavoiceio/metavoice-src/raw/main/assets/bria.mp3
import sphn
# Read an audio file
data, sample_rate = sphn.read("bria.mp3")
print(data.shape, sample_rate)
# Save as wav
sphn.write_wav("bria.wav", data[0], sample_rate)
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
sphn-0.1.4.tar.gz
(26.8 kB
view hashes)
Built Distributions
Close
Hashes for sphn-0.1.4-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94b712e3524fa5de884eba403e2b5582f10be044464cf6ec0a04ee4dec09c0f0 |
|
MD5 | 936b0883711ddd57c03aea3ac636ffd0 |
|
BLAKE2b-256 | 5347758abc122526886ff6fa6efa9b1379e050b9ed5857dc842f99f5d30c6d61 |
Close
Hashes for sphn-0.1.4-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 000bc0e6a51831de3bbc2fc0f564bd99df2a570ef8705bf8eb1fb1511282a861 |
|
MD5 | 8bcfe0b9d57f96f449709fb5fa32a0bc |
|
BLAKE2b-256 | 6e4149accda40db6ca7dc82a8c8471972fcf43a1ed6726e14b2320aa1ebe12c7 |
Close
Hashes for sphn-0.1.4-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69a933a94fedca94123051fdc7f1f4b5bbb158bfcfcc003a18e5a90a61925954 |
|
MD5 | 73a496b07447185a00d24251ec9b450d |
|
BLAKE2b-256 | 1af7f5c8972fe3680c7b84132b75877053952ea3f22e36d0d412421b7a20d9b5 |
Close
Hashes for sphn-0.1.4-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 459cf2a238780d063b461fdd2043a86846961407b86c4e9e68e387faab5f45e9 |
|
MD5 | 5b232119bc1101f7e852422562bf49b3 |
|
BLAKE2b-256 | d50e31e65613f3584129340f131e98df92f018396a658caf4a73402397be215e |
Close
Hashes for sphn-0.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5db18b108e0feff02a3f560ecb6d0367891293c61edcdcd759fc515cd7b0d1bc |
|
MD5 | 3c85f1b274696a76023bf96fc1d4a117 |
|
BLAKE2b-256 | 0e7bcbb848269dc657ef0bf62fe695761d866bfd4a030c3ea92f1e31151b973e |
Close
Hashes for sphn-0.1.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34d2934c2bd70e8fd1ca1d044baa5bc3b30885ddd118365c97282dc2a08222b1 |
|
MD5 | 29870639b6aa1b7df28ec9a5d5e7f1f2 |
|
BLAKE2b-256 | 4523636e8f1daef2daa5b8083c4a61dd8931182bd3e73df791d1cde3a794aa21 |
Close
Hashes for sphn-0.1.4-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad24711df1adad3c380f098732b537e22e819b3d3f2c46963df1e0ec0e6fcc6e |
|
MD5 | ec0861d9387bd6be8f7a49d8ed273809 |
|
BLAKE2b-256 | a2393c745971cf6859a32758cdcce2082f11c8732a7265ce54962fb214ab7d03 |
Close
Hashes for sphn-0.1.4-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72fe94debd3324be2a8e5f0b49c0c82a4d1b8be06a80eff6cfaae3290369d32c |
|
MD5 | a5e6ceaad4ba4d0b7b75f94cabe4d295 |
|
BLAKE2b-256 | 5baa58dad670585876f8db904e001f874d580412b99a240bf8706aa02cccb46c |
Close
Hashes for sphn-0.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32bfc97f02f348c0c271282018b51da9519fd42cf2f4f8ad50d490d0e97d901b |
|
MD5 | ffb7769670f5d01ed4573aecbd7fb2d7 |
|
BLAKE2b-256 | e9295a3ee590f0cb57003a4b6975c3aa118d50788874fdc68a6680ad782fa33b |
Close
Hashes for sphn-0.1.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18570be3343fb520a7cbf38734fc6771c655e4991d8adba433c6710b2abd383b |
|
MD5 | 3da016a1eb1e22511e2cea14214ff93f |
|
BLAKE2b-256 | 6fe9c7c30ef20a7e0eb83ccfd88a6398a2ab985e29b2719115f2fba7f8e7fe3e |
Close
Hashes for sphn-0.1.4-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd232d0fea145e294fdcfe195f95f5be89369989c3a4f5cbc7eca8226a7f2d72 |
|
MD5 | ed7435c55ccde457bc0d9460359e5cda |
|
BLAKE2b-256 | 6905d47de8fd87d43aaeafc2c44b9426bb28239b920d1b97d575a293f2be8d01 |
Close
Hashes for sphn-0.1.4-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e9741ebeaea6309d5e7059d1ad2e2a5c46e9fa059d8b3c50a869835c5bed94d |
|
MD5 | 58f210b27439394cea3ca963786e4526 |
|
BLAKE2b-256 | ec12682e51907c0873bc6d5503ead1bd55ca7cd39488540a18f4981d2109afdb |
Close
Hashes for sphn-0.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf221217baa79bd6cae78ba1efe6856feb0be5e56c99bda0de513c947cd9d946 |
|
MD5 | d4032a0e978e073ec9b099be08b059d7 |
|
BLAKE2b-256 | 280b15ef997d3c96c33d10fa872081a3baac69fd8b982e62fd0e60e799507cd3 |
Close
Hashes for sphn-0.1.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cef350bace35d2ca17664eca1e2264c0516b72996a2c12b7cf8fecfac98ed147 |
|
MD5 | 60eaa5871f4ac1116c82a9d56bab8c68 |
|
BLAKE2b-256 | aff51957a2f3ef27587bc0fd53d7939028d0759c2b00003325a706a5427e6fc3 |
Close
Hashes for sphn-0.1.4-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3e6bb1edb1840569cbdb0e2e7a3a618da408a9efe2e302676390a680a7d0558 |
|
MD5 | dd5412a2947fff2fe4ac5fbbb3ab0259 |
|
BLAKE2b-256 | d36290bc1cf8506e52a0513a3314f4d4e67c3ce9a5c8439540a8652583474e55 |
Close
Hashes for sphn-0.1.4-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4bf14fee7c8da57654d749be85850fd7bf5b2d84f620ec64cbf5f0d7ab1bfc0 |
|
MD5 | 76259dec05a5014dc50d4d8486763042 |
|
BLAKE2b-256 | dc60c6f13dd1837b44c49e62adb68436a8f2df5d4354fb49e5b100f8263be0d2 |
Close
Hashes for sphn-0.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdc893d263b9caa1b00f36ab33f2cb5ca71f8fb6dfd640d256f1f568e3fd81e2 |
|
MD5 | 7ed36857bbc61c89e4b9e0648c8be104 |
|
BLAKE2b-256 | cefdedbf9cae017631b82543e0f2b6312f10683e7641dd343267c39988db2c25 |
Close
Hashes for sphn-0.1.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9598dc0dd0bbacad4f8fd964e2d501f46af2411f940a0b228cc1837f243b4d4a |
|
MD5 | 7c46afb316a5de9127d8c48bec6ff80f |
|
BLAKE2b-256 | 9eec96d1b23217376fbbae5b5f95f8e6df48e773273afb4fa5c0fa6f97982f97 |
Close
Hashes for sphn-0.1.4-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a72df77371b1fc316364aea7c0e1a6c871cecde9116f56615a815df9f8539f5 |
|
MD5 | bf71b973772040f8cf324586ea162e41 |
|
BLAKE2b-256 | 27226637cf282c96cd6a72fb29b9b44a29ef29fbd608bf1636b6637bfb060092 |
Close
Hashes for sphn-0.1.4-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a00a7a7aaf7a8f1d2b7d789fbe7061d4d9ff40e07a5c335237611fab54b7a81 |
|
MD5 | c8b419d04061d3eaf61916203a2698a6 |
|
BLAKE2b-256 | 4d69aacd999a2c0931ba844f30bd73937ea32f17280bf9d9a2634f6523bfa313 |
Close
Hashes for sphn-0.1.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1494037c342fdae3480b17b5ece1a657fda75057a35bd34646b295dbe1c441f6 |
|
MD5 | 8eb0f8238cddd38d5138b1db53293a59 |
|
BLAKE2b-256 | 50dd92b4188c0985c2c3768013b9d85512a027ef035fc4a1eea88215494a414a |