silentwav


Namesilentwav JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/silentwav
SummaryCreates a silent WAV file with the specified duration and saves it to the given filename.
upload_time2023-07-17 16:33:24
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords wav silent
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# 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 



```python
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)


```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/silentwav",
    "name": "silentwav",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "wav,silent",
    "author": "Johannes Fischer",
    "author_email": "aulasparticularesdealemaosp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/19/80/b90978f914b3eafa7cf5ccec731c30eab75cf420d31c801fa28004d721c8/silentwav-0.10.tar.gz",
    "platform": null,
    "description": "\r\n# Creates a silent WAV file with the specified duration and saves it to the given filename.\r\n\r\n## pip install silentwav \r\n\r\n#### Tested against Windows 10 / Python 3.10 / Anaconda \r\n\r\n\r\n\r\n```python\r\nCreates a silent WAV file with the specified duration and saves it to the given filename.\r\n\r\nParameters:\r\n\tfilename (str): The path and filename of the WAV file to be created.\r\n\tduration (int | float): The duration of the silent WAV file in seconds.\r\n\tsample_rate (int, optional): The number of samples per second. Defaults to 44100.\r\n\tnum_channels (int, optional): The number of audio channels. Defaults to 1 (mono).\r\n\tsample_width (int, optional): The size of each audio sample in bytes. Defaults to 2 bytes (16-bit audio).\r\n\tcompression_type (str, optional): The type of compression for the WAV file. Defaults to \"NONE\".\r\n\tcompression_name (str, optional): A description of the compression used. Defaults to \"not compressed\".\r\n\r\nReturns:\r\n\tNone: This function does not return any value but creates a silent WAV file and saves it to the specified filename.\r\n\r\nExample:\r\n\tfrom silentwav import create_silent_wav\r\n\t# Creates a 60-second silent WAV file named \"c:\\\\silent_file.wav\"\r\n\tcreate_silent_wav(\"c:\\\\silent_file.wav\", duration=60)\r\n\r\n\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Creates a silent WAV file with the specified duration and saves it to the given filename.",
    "version": "0.10",
    "project_urls": {
        "Homepage": "https://github.com/hansalemaos/silentwav"
    },
    "split_keywords": [
        "wav",
        "silent"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "066099dfe32f829a78de663ab6bff85056b291a63df9db86b97bc19e4910bdb8",
                "md5": "e6a2e4cc2928da7d5f9fb85802fe8a2e",
                "sha256": "5242141680233d82130224c55c898480133024336069c5d24eb8fa68c56cff5f"
            },
            "downloads": -1,
            "filename": "silentwav-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e6a2e4cc2928da7d5f9fb85802fe8a2e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5169,
            "upload_time": "2023-07-17T16:33:23",
            "upload_time_iso_8601": "2023-07-17T16:33:23.201894Z",
            "url": "https://files.pythonhosted.org/packages/06/60/99dfe32f829a78de663ab6bff85056b291a63df9db86b97bc19e4910bdb8/silentwav-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1980b90978f914b3eafa7cf5ccec731c30eab75cf420d31c801fa28004d721c8",
                "md5": "58d56cce39dfbc42dc5ad3103a249ce0",
                "sha256": "d34de69e32be0f678c8ad40a2a5d21168c26c62598ece7576da10311925be122"
            },
            "downloads": -1,
            "filename": "silentwav-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "58d56cce39dfbc42dc5ad3103a249ce0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3485,
            "upload_time": "2023-07-17T16:33:24",
            "upload_time_iso_8601": "2023-07-17T16:33:24.980454Z",
            "url": "https://files.pythonhosted.org/packages/19/80/b90978f914b3eafa7cf5ccec731c30eab75cf420d31c801fa28004d721c8/silentwav-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-17 16:33:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hansalemaos",
    "github_project": "silentwav",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "silentwav"
}
        
Elapsed time: 0.15400s