Skip to main content

NPSound

A collection of simple audio modification methods based on NumPy.

Supported Formats

  • .wav

Installation

pip install np-sound

Usage

from np_sound import NPSound

sound = NPSound("soundfile.wav")

# Plot soundfile.wav with the title "NPSound Demo"
sound.plot(title="NPSound Demo")

# Reverse the section of audio from 1.5s to 3s
# NPSound objects are immutable, so the 'sound' object will be unchanged
reversed_audio = sound.reverse((1.5, 3))
reversed_audio.plot()

# Amplify the entire audio file by 50% and plot it
sound.amplify(50).plot(title="Amplified by 50%")

# Concatenate 'sound' with its mirrored version and write to a new sound file
mirror = sound + sound.reverse()
mirror.write("mirrored.wav")

# Plot 5 copies of 'sound' side by side
(sound * 5).plot()

# Plot a 50% softened 'sound' on top of the original 'sound'
sound.plot(layered_plots=[sound.amplify(-50)])

# Plot a 'sound' object padded with 5.5s of empty data on either end below the original 'sound'
sound.plot(adjacent_plots=[sound.pad((5.5, 5.5))])

# Trim audio on both ends so that the first and last values are above 100
sound.clip_at_threshold(100)

Metadata

Release files for np-sound 0.0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for np-sound 0.0.5.1
File Size Uploaded Provenance Actions
np-sound-0.0.5.1.tar.gz 4.6 kB Without provenance Details for np-sound-0.0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for np-sound 0.0.5.1
File Interpreter ABI Platform Actions
np_sound-0.0.5.1-py3-none-any.whl Python 3 none any Details for np_sound-0.0.5.1-py3-none-any.whl

Total release size: 9.6 kB

Release files / np-sound-0.0.5.1.tar.gz

Download URL np-sound-0.0.5.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b2538fb54e639062ca7ec168c5912d59345b6e0e1d7ff1a93de5197884b05c89
BLAKE2b-256 checksum
How to use checksums
bfe36c2162b73338ceae0666f0190fa605d406698f690a8e766c077842a80cf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.5

Release files / np_sound-0.0.5.1-py3-none-any.whl

Download URL np_sound-0.0.5.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2ebbd73e4fc46d8c956e9a847a8dd548bd190ffd24cd9f9a448e02611e024a9
BLAKE2b-256 checksum
How to use checksums
8667de97efb92e0b78c64928470704407650604145f425bd99fe8f3913d6b0d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.5

Security for np-sound 0.0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page