pyo3 wrappers to read/write audio files
Project description
sphn
Python bindings for the symphonia crate, easily load various audio file formats into numpy arrays.
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], sr)
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.2.tar.gz
(26.0 kB
view hashes)
Built Distributions
Close
Hashes for sphn-0.1.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e6f5ddb948c8fb72b32be3a379d527efa781047abbf1fd2d35f70c7a37c88f1 |
|
MD5 | 0a7a471c8749d2653e896dbe92c2ada6 |
|
BLAKE2b-256 | 66342705440f5ca6ec14fcc1fa1a20f51f2061e21854f0273522b4a68fb4b9a9 |
Close
Hashes for sphn-0.1.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a8e286ea0d3e80a31d825d86450ad46b79d89a0c7f4ef43525b5d3d757988c2 |
|
MD5 | 38db26ab47a294e634ac26b0ba1982c3 |
|
BLAKE2b-256 | 7a4e55e18b8d5a193fcb0d2b8e4857c0e6b915fc0db1bced1e58c7b3b7d77c80 |
Close
Hashes for sphn-0.1.2-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed18e61afc591b6e10859d05fb72af5f388a856397c805bc5d8cccb912bebc0c |
|
MD5 | 795d606d9658b494762c9bc4bfd7d006 |
|
BLAKE2b-256 | 4f61eef867f461a2a8155ea60d88546e58553c8cdc8270d678b715d81ebd0e56 |
Close
Hashes for sphn-0.1.2-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41f3781175a53225a75b9c1cd0420d23c76a738f7aadb3c7eb3bcf9dd182c97b |
|
MD5 | 416e8340718e375e89ac1f3ecfc6644d |
|
BLAKE2b-256 | 8c958e8067cd9f6495939adccb9f64f8d4250e1a45fe2bf10e6486b7eb1ead57 |
Close
Hashes for sphn-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 127261d8ff32031ea7dff80c18011719ffa08a8d51a76730f6741063f0004ec3 |
|
MD5 | 6fb50cbe3fd0d4b804f39bafcfe9f890 |
|
BLAKE2b-256 | e95e2fa9f1840339900bf2cc1a11a91d9f69ce4226bf76ea0430c9d84b136d57 |
Close
Hashes for sphn-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45ba7b47e95cbb90d3a2d4fa913d6b8ab58922165a2c479573e9dcc26ec36ecf |
|
MD5 | 2b76f61315121c8679df76c352469ffa |
|
BLAKE2b-256 | d023de76540052a3241299d937dcd9526f55381eb25b5bf3568ea4c04b457b72 |
Close
Hashes for sphn-0.1.2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e47f8c18272674a890377d95c0b55c72e3ec4ee3be64102029873b99173487ba |
|
MD5 | 16cb4ce59680c58b3193e898e3a46c54 |
|
BLAKE2b-256 | 5449614e70d0ddf6b64b8d7fcccb032094fe4b761c92285faf7929d0088e49ef |
Close
Hashes for sphn-0.1.2-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d14e11455eeb2eb76d8f8bee44c0bb3131b78e96f63747da9160c13d84e7db9a |
|
MD5 | 9bc8b7ea4ab6ec65e328cc8cca2fbe98 |
|
BLAKE2b-256 | b26f57620a41cf399bd6d8085ed5d61ab903aaacf3e1be237edf5d904c8068ef |
Close
Hashes for sphn-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9609f7338d383e371a743c845963cd30bd12a6e20a80067893673733c5a3605d |
|
MD5 | 4d60e68f2a0935037eb465f5ec5e4707 |
|
BLAKE2b-256 | a38d2d6910f698995380d4afb510a8d65a2033f387339d9e7a7539af6efef75c |
Close
Hashes for sphn-0.1.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20fa43cbf9f570b41d589e866b20d8d3528d5dd475cbd3a73a3900baedcc23ea |
|
MD5 | 24f38f7ba121008ae667e3adc0856218 |
|
BLAKE2b-256 | 295475fce05382ee58f0a60db08dba1335b2c1f5a4fe0c57d6372bffee63b439 |
Close
Hashes for sphn-0.1.2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aeeea420e78c7b2c2168c887eafa6dbafe32690434c6a24b104f89f5a432d6cb |
|
MD5 | 365e2d022d9660c4b2f92f6fbc98ce89 |
|
BLAKE2b-256 | dec42698c15e61a813d4cbcc472d33f820cff1ea84389932c0fdff606f2e21c4 |
Close
Hashes for sphn-0.1.2-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a77b8113d7141ea466bd5eb89c112617d8602de5d9f0833e742654ec02d69086 |
|
MD5 | 22253440c1cbdac1be6a47989babad6a |
|
BLAKE2b-256 | 3d06e387f479f936498eb0d797186a31ef707e4f72d184d4129343948c8301a2 |
Close
Hashes for sphn-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6308e6dda988e128ff592f039ae10157384bd07d6870c6363b7435194451f4aa |
|
MD5 | 44c90d3fae2acc7a8238d903a1e6f7cf |
|
BLAKE2b-256 | e4d5efb5d47971e2f01b5231a2153c191d9a93855098a24da1abeef266f49128 |
Close
Hashes for sphn-0.1.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4f6c00250283742f3636f2615ba96b5a017498b8676a4737d51f4cb0a02b99a |
|
MD5 | cd7bbc332d420492fd5ca70be4d580ee |
|
BLAKE2b-256 | 24691684160fcd52c0a3adde5ce7df8ae4c65d90a2aca1bc0ce6aae59498f372 |
Close
Hashes for sphn-0.1.2-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b220b4dd598b34e927d3f69972ba6e8931c9778600efb81b8ee0015459408150 |
|
MD5 | 61b8c75a631e172b1e25a2717fc4cd17 |
|
BLAKE2b-256 | 6e938527eaa99a659c4db21399b41ce20316ee43536dab98db44d93d269fe6c5 |
Close
Hashes for sphn-0.1.2-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6198e8ad18871aa112764072c44a05c7b31f43a96f4bfe141220f980fa03bb6 |
|
MD5 | ed584dc7dd44cb8d7bdfab82879a946d |
|
BLAKE2b-256 | 7e7b7e550d2e65b7ae6ceff5c86754834689f6b4162ebfcb1f9845fbae8e9c0a |
Close
Hashes for sphn-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08f7cc5e61e2ceec1bab6ec88a595a391a8ebabb93d32f1670f19f99291d642c |
|
MD5 | babb4502b51a69d3bc224f41096c4c8f |
|
BLAKE2b-256 | f94a6e8d929c4e34b6e7f7340e2ffddd3b628945fc080f4711a5c138931b0f0d |
Close
Hashes for sphn-0.1.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c03e627f3c40e645994ade97196cb8a527a35cfe4612feae7c8cbc40b0f92683 |
|
MD5 | 4f935ff122c5ec839b6e09dccec88384 |
|
BLAKE2b-256 | 884eaae83e5dd9b2d4343a55f7d47236304858fee9f93db1c43141f5464c99c9 |
Close
Hashes for sphn-0.1.2-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d28e0c9863e50030b9d6eca552dea1312cf33e8eddff100ddcc12a7ed8a5d82 |
|
MD5 | ae812430b8fd64efd47a8fc03b65c46f |
|
BLAKE2b-256 | f04c22ead9b9b6f98b62369235c39c90ef1cae616fd43d0936d5c6505393c0d1 |
Close
Hashes for sphn-0.1.2-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edd9ac5ecae9fecae5c57793869131143e5a091a9bf0ba5f26e25e051fd5a91a |
|
MD5 | f06116f3b35c4eefc3a2912e61551cf3 |
|
BLAKE2b-256 | 447a4c409dc6376141ed742d382f13871d5982c2670a35c17cc3e6069c63013e |
Close
Hashes for sphn-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3436610522112858bc35a5a553730bc2a0c73453d2fb5be4d999e4ab3adeb1da |
|
MD5 | bdf8086c0007dfe8581c6ac3e87c45ad |
|
BLAKE2b-256 | 2f64b70832ac157efde1f9e5ab2c02e57e8a7605331b1bd0c2b518021bc4de2e |