🎙️ Audio Recorder - Python Library for Recording Audio
🚀 Introduction
Audio Recorder is a simple and lightweight Python package that allows you to record audio and save it as a WAV file.
Built using pyaudio, it provides a convenient way to capture audio with minimal setup.
🎯 Features
✅ Record audio using Python
✅ Save recordings as WAV files
✅ Adjustable recording duration and sample rate
✅ Supports different audio channels
📦 Installation
1️⃣ Install from PyPI
pip install audio-recorder
2️⃣ Install from Source (GitHub)
sh
Copy
Edit
git clone https://github.com/Keshab-Kumar/audio_recorder.git
cd audio_recorder
pip install -e .
🎤 Usage
Basic Example
python
Copy
Edit
from audio_recorder import AudioRecorder
recorder = AudioRecorder(duration=5) # Records for 5 seconds
recorder.record() # Saves the recording in the "output" folder
Custom Settings
python
Copy
Edit
recorder = AudioRecorder(duration=10, sample_rate=48000, channels=1, output_file="output/custom_audio.wav")
recorder.record()
📂 Output
All recorded files will be stored in the output/ directory.
🛠 How It Works
1️⃣ Opens an audio input stream.
2️⃣ Records audio for the given duration.
3️⃣ Saves the audio as a .wav file in the output/ folder.
🐞 Troubleshooting
If you encounter issues with pyaudio, try installing it manually:
sh
Copy
Edit
pip install pipwin
pipwin install pyaudio
📝 License
This project is licensed under the MIT License.
🔗 Links
📂 GitHub: audio_recorder
📖 PyPI (after publishing): audio_recorder
Metadata
Release files for audio-recorder-k 0.1.0
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 | |
|---|---|---|---|---|
| audio_recorder_k-0.1.0.tar.gz | 2.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| audio_recorder_k-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.1 kB
Release files / audio_recorder_k-0.1.0.tar.gz
| Download URL | audio_recorder_k-0.1.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3d7394c01655cd860ad377185cfb8d4031ceb2c4376d08fe764d13e1d489946
|
|
BLAKE2b-256 checksum How to use checksums |
f09105453fc44a62d2a6c77a9eeda547ee477746cc37ffc5aef8e6c449e93582
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.0
|
Release files / audio_recorder_k-0.1.0-py3-none-any.whl
| Download URL | audio_recorder_k-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6347b477b634c2ddc5a563c5de7ac44761c60279e0d48c8ebe846145c9a96257
|
|
BLAKE2b-256 checksum How to use checksums |
7dd0671304f3521a6ebdbd6a2d22471881d71e03810402a1f6100d6bf854f95e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.0
|
Security for audio-recorder-k 0.1.0
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.