aec-audio-processing


Nameaec-audio-processing JSON
Version 1.0.0 PyPI version JSON
download
home_pageNone
SummaryAEC(Acoustic Echo Cancellation) Audio Processing Module
upload_time2025-08-26 06:40:32
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseNone
keywords acoustic echo cancellation webrtc audioprocessing voice activity detection noise suppression automatic gain control
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # AEC Audio Processing Module

A Python module for real-time audio processing using WebRTC technology, optimized and maintained by TheDeveloper. This package provides an easy-to-use interface for audio processing capabilities including echo cancellation, noise suppression, and automatic gain control.

## Features

- **Acoustic Echo Cancellation (AEC)**: Removes echo from audio streams
- **Noise Suppression (NS)**: Reduces background noise
- **Automatic Gain Control (AGC)**: Automatically adjusts audio levels

## Requirements
+ swig
+ meson
+ compile toolchain
+ python3

## Installation

You can install the package directly from PyPI:

```bash
pip install aec-audio-processing
```

## Basic Usage

### Simple Audio Processing
```python
from aec_audio_processing  import AudioProcessor

# Initialize with all features enabled
ap = AudioProcessor(enable_aec=True, enable_ns=True, enable_agc=True)
ap.set_stream_format(16000, 1)      # 16kHz mono

# Process 10ms of audio data
audio_10ms = b'\0' * 160 * 2        # 10ms, 16000 sample rate, 16 bits, 1 channel
audio_out = ap.process_stream(audio_10ms)

# Check if voice was detected
if ap.has_voice():
    print("Voice detected!")
```

### Configuration Options

```python
from aec_audio_processing  import AudioProcessor

# Initialize with specific features
ap = AudioProcessor(
    enable_aec=True,    # Echo cancellation
    enable_ns=True,     # Noise suppression  
    enable_agc=True,    # Automatic gain control
    enable_vad=True     # Voice activity detection
)

# Set audio format
ap.set_stream_format(
    sample_rate_in=16000,      # Input sample rate (Hz)
    channel_count_in=1,        # Input channels
    sample_rate_out=16000,     # Output sample rate (Hz) 
    channel_count_out=1        # Output channels
)

# Set reverse stream for echo cancellation
ap.set_reverse_stream_format(16000, 1)

# Set stream delay for echo cancellation
ap.set_stream_delay(50)  # 50ms delay


# Check feature status
print(f"AEC enabled: {ap.aec_enabled()}")
print(f"NS enabled: {ap.ns_enabled()}")
print(f"AGC enabled: {ap.agc_enabled()}")
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "aec-audio-processing",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": "acoustic echo cancellation, webrtc audioprocessing, voice activity detection, noise suppression, automatic gain control",
    "author": null,
    "author_email": "TheDeveloper <yourappleintelligence@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/3e/d1/6e6b27c07b512ed38f00cc008460ca41ce2dc5f38fc132e2f3c54b75aeff/aec_audio_processing-1.0.0.tar.gz",
    "platform": null,
    "description": "# AEC Audio Processing Module\n\nA Python module for real-time audio processing using WebRTC technology, optimized and maintained by TheDeveloper. This package provides an easy-to-use interface for audio processing capabilities including echo cancellation, noise suppression, and automatic gain control.\n\n## Features\n\n- **Acoustic Echo Cancellation (AEC)**: Removes echo from audio streams\n- **Noise Suppression (NS)**: Reduces background noise\n- **Automatic Gain Control (AGC)**: Automatically adjusts audio levels\n\n## Requirements\n+ swig\n+ meson\n+ compile toolchain\n+ python3\n\n## Installation\n\nYou can install the package directly from PyPI:\n\n```bash\npip install aec-audio-processing\n```\n\n## Basic Usage\n\n### Simple Audio Processing\n```python\nfrom aec_audio_processing  import AudioProcessor\n\n# Initialize with all features enabled\nap = AudioProcessor(enable_aec=True, enable_ns=True, enable_agc=True)\nap.set_stream_format(16000, 1)      # 16kHz mono\n\n# Process 10ms of audio data\naudio_10ms = b'\\0' * 160 * 2        # 10ms, 16000 sample rate, 16 bits, 1 channel\naudio_out = ap.process_stream(audio_10ms)\n\n# Check if voice was detected\nif ap.has_voice():\n    print(\"Voice detected!\")\n```\n\n### Configuration Options\n\n```python\nfrom aec_audio_processing  import AudioProcessor\n\n# Initialize with specific features\nap = AudioProcessor(\n    enable_aec=True,    # Echo cancellation\n    enable_ns=True,     # Noise suppression  \n    enable_agc=True,    # Automatic gain control\n    enable_vad=True     # Voice activity detection\n)\n\n# Set audio format\nap.set_stream_format(\n    sample_rate_in=16000,      # Input sample rate (Hz)\n    channel_count_in=1,        # Input channels\n    sample_rate_out=16000,     # Output sample rate (Hz) \n    channel_count_out=1        # Output channels\n)\n\n# Set reverse stream for echo cancellation\nap.set_reverse_stream_format(16000, 1)\n\n# Set stream delay for echo cancellation\nap.set_stream_delay(50)  # 50ms delay\n\n\n# Check feature status\nprint(f\"AEC enabled: {ap.aec_enabled()}\")\nprint(f\"NS enabled: {ap.ns_enabled()}\")\nprint(f\"AGC enabled: {ap.agc_enabled()}\")\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "AEC(Acoustic Echo Cancellation) Audio Processing Module",
    "version": "1.0.0",
    "project_urls": null,
    "split_keywords": [
        "acoustic echo cancellation",
        " webrtc audioprocessing",
        " voice activity detection",
        " noise suppression",
        " automatic gain control"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "85d5de9dc1feef6e3ef9d688819577d7864214b210f81a0169589342dbfc763e",
                "md5": "6bf805e505a88231ddd01c374cc21ee0",
                "sha256": "2bcfe5b9237293fca262ab4974b17401564e68d184ae85d738d30342faa2ea3f"
            },
            "downloads": -1,
            "filename": "aec_audio_processing-1.0.0-cp312-cp312-macosx_15_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "6bf805e505a88231ddd01c374cc21ee0",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.11",
            "size": 562687,
            "upload_time": "2025-08-26T06:40:28",
            "upload_time_iso_8601": "2025-08-26T06:40:28.556309Z",
            "url": "https://files.pythonhosted.org/packages/85/d5/de9dc1feef6e3ef9d688819577d7864214b210f81a0169589342dbfc763e/aec_audio_processing-1.0.0-cp312-cp312-macosx_15_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "3ed16e6b27c07b512ed38f00cc008460ca41ce2dc5f38fc132e2f3c54b75aeff",
                "md5": "5bd078bc13c6067690858c4973f7b45e",
                "sha256": "f928a961ca192bf49d8de1d45f0917c43b7a76f16bf21d4f30554095bdd4ec34"
            },
            "downloads": -1,
            "filename": "aec_audio_processing-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "5bd078bc13c6067690858c4973f7b45e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 11051874,
            "upload_time": "2025-08-26T06:40:32",
            "upload_time_iso_8601": "2025-08-26T06:40:32.328926Z",
            "url": "https://files.pythonhosted.org/packages/3e/d1/6e6b27c07b512ed38f00cc008460ca41ce2dc5f38fc132e2f3c54b75aeff/aec_audio_processing-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-26 06:40:32",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "aec-audio-processing"
}
        
Elapsed time: 1.41857s