audio-analysis-lib


Nameaudio-analysis-lib JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/user/audio_analysis_lib
SummaryA Python library for audio analysis, similar to librosa.
upload_time2024-05-18 18:41:03
maintainerNone
docs_urlNone
authorDevin
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Audio Analysis Library

This library provides a set of tools for audio analysis, similar to librosa. It includes functionalities for audio file I/O, spectral representations, audio feature extraction, and basic audio effects.

## Installation

To install the library, run the following command:

```
pip install audio_analysis_lib
```

## Usage

Here are some basic examples of how to use the library:

### Reading and Writing Audio

```python
from audio_analysis.io import read_audio, write_audio

# Read an audio file
audio_data, sample_rate = read_audio('path/to/your/audio.wav')

# Write audio data to a file
write_audio(audio_data, sample_rate, 'path/to/output/audio.wav')
```

### Spectral Representations

```python
from audio_analysis.spectral import calculate_stft, calculate_istft

# Compute the Short-Time Fourier Transform
frequencies, times, stft_matrix = calculate_stft(audio_data, sample_rate)

# Inverse Short-Time Fourier Transform to reconstruct the audio signal
audio_data_reconstructed = calculate_istft(stft_matrix, sample_rate)
```

### Feature Extraction

```python
from audio_analysis.features import mfcc

# Compute Mel-frequency cepstral coefficients
mfcc_features = mfcc(audio_data, sample_rate)
```

### Audio Effects

```python
from audio_analysis.effects import change_pitch, time_stretch

# Change the pitch of the audio signal
pitch_shifted_audio = change_pitch(audio_data, sample_rate, semitone_shift=2)

# Stretch the time of the audio signal
stretched_audio = time_stretch(audio_data, stretch_factor=1.5)
```

For more detailed documentation and advanced usage, please refer to the individual module docstrings within the library.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/user/audio_analysis_lib",
    "name": "audio-analysis-lib",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Devin",
    "author_email": "devin@example.com",
    "download_url": null,
    "platform": null,
    "description": "# Audio Analysis Library\n\nThis library provides a set of tools for audio analysis, similar to librosa. It includes functionalities for audio file I/O, spectral representations, audio feature extraction, and basic audio effects.\n\n## Installation\n\nTo install the library, run the following command:\n\n```\npip install audio_analysis_lib\n```\n\n## Usage\n\nHere are some basic examples of how to use the library:\n\n### Reading and Writing Audio\n\n```python\nfrom audio_analysis.io import read_audio, write_audio\n\n# Read an audio file\naudio_data, sample_rate = read_audio('path/to/your/audio.wav')\n\n# Write audio data to a file\nwrite_audio(audio_data, sample_rate, 'path/to/output/audio.wav')\n```\n\n### Spectral Representations\n\n```python\nfrom audio_analysis.spectral import calculate_stft, calculate_istft\n\n# Compute the Short-Time Fourier Transform\nfrequencies, times, stft_matrix = calculate_stft(audio_data, sample_rate)\n\n# Inverse Short-Time Fourier Transform to reconstruct the audio signal\naudio_data_reconstructed = calculate_istft(stft_matrix, sample_rate)\n```\n\n### Feature Extraction\n\n```python\nfrom audio_analysis.features import mfcc\n\n# Compute Mel-frequency cepstral coefficients\nmfcc_features = mfcc(audio_data, sample_rate)\n```\n\n### Audio Effects\n\n```python\nfrom audio_analysis.effects import change_pitch, time_stretch\n\n# Change the pitch of the audio signal\npitch_shifted_audio = change_pitch(audio_data, sample_rate, semitone_shift=2)\n\n# Stretch the time of the audio signal\nstretched_audio = time_stretch(audio_data, stretch_factor=1.5)\n```\n\nFor more detailed documentation and advanced usage, please refer to the individual module docstrings within the library.\n\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Python library for audio analysis, similar to librosa.",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://github.com/user/audio_analysis_lib"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "290b0f0419bfdc9981cd7dc3b5130498e08adec3b66b4b518c56dfa6d08b727b",
                "md5": "b7b81b7ad7edd1665d057a3ee3a5d239",
                "sha256": "f53c143eaa75b2cf3cea002e07413776fd7fc672df25c6a65818a7a6c0a28872"
            },
            "downloads": -1,
            "filename": "audio_analysis_lib-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b7b81b7ad7edd1665d057a3ee3a5d239",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 1962,
            "upload_time": "2024-05-18T18:41:03",
            "upload_time_iso_8601": "2024-05-18T18:41:03.617771Z",
            "url": "https://files.pythonhosted.org/packages/29/0b/0f0419bfdc9981cd7dc3b5130498e08adec3b66b4b518c56dfa6d08b727b/audio_analysis_lib-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-18 18:41:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "user",
    "github_project": "audio_analysis_lib",
    "github_not_found": true,
    "lcname": "audio-analysis-lib"
}
        
Elapsed time: 0.25602s