Creates a silent WAV file with the specified duration and saves it to the given filename.
pip install silentwav
Tested against Windows 10 / Python 3.10 / Anaconda
Creates a silent WAV file with the specified duration and saves it to the given filename.
Parameters:
filename (str): The path and filename of the WAV file to be created.
duration (int | float): The duration of the silent WAV file in seconds.
sample_rate (int, optional): The number of samples per second. Defaults to 44100.
num_channels (int, optional): The number of audio channels. Defaults to 1 (mono).
sample_width (int, optional): The size of each audio sample in bytes. Defaults to 2 bytes (16-bit audio).
compression_type (str, optional): The type of compression for the WAV file. Defaults to "NONE".
compression_name (str, optional): A description of the compression used. Defaults to "not compressed".
Returns:
None: This function does not return any value but creates a silent WAV file and saves it to the specified filename.
Example:
from silentwav import create_silent_wav
# Creates a 60-second silent WAV file named "c:\\silent_file.wav"
create_silent_wav("c:\\silent_file.wav", duration=60)
Metadata
Release files for silentwav 0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| silentwav-0.10.tar.gz | 3.5 kB | Without provenance | Details for silentwav-0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| silentwav-0.10-py3-none-any.whl | Python 3 | none | any | Details for silentwav-0.10-py3-none-any.whl |
Total release size: 8.7 kB
Release files / silentwav-0.10.tar.gz
| Download URL | silentwav-0.10.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d34de69e32be0f678c8ad40a2a5d21168c26c62598ece7576da10311925be122
|
|
BLAKE2b-256 checksum How to use checksums |
1980b90978f914b3eafa7cf5ccec731c30eab75cf420d31c801fa28004d721c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Release files / silentwav-0.10-py3-none-any.whl
| Download URL | silentwav-0.10-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5242141680233d82130224c55c898480133024336069c5d24eb8fa68c56cff5f
|
|
BLAKE2b-256 checksum How to use checksums |
066099dfe32f829a78de663ab6bff85056b291a63df9db86b97bc19e4910bdb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Security for silentwav 0.10
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.