The CLI Voice Recorder is a simple command-line tool that allows users to record audio from their microphone and save it as a WAV file. It's built using Python and makes use of the sounddevice
and scipy
libraries to handle recording and saving.
- 🎙️ Record audio from the microphone
- 💾 Save audio as a
.wav
file - ⏱️ Set recording duration based on user input
- 🛠️ Simple and lightweight command-line tool
- Python 3.x
sounddevice
- To record audionumpy
- For handling audio datascipy
- To save the recorded audio as a WAV file
-
Install Python (if not installed):
Download Python -
Install the required dependencies:
pip install sounddevice numpy scipy
``
git clone https://github.com/Burhanali2211/VoiceRecorder.git
cd VoiceRecorder
- Run the script:
python VoiceRecorder.py
- Enter the recording duration (in seconds).
- Enter the filename to save the audio (e.g., my_audio.wav).
- The recording will be saved automatically!
Enter recording duration (in seconds): 5
Recording started...
Recording finished! 5 seconds of audio recorded.
Enter the filename to save (e.g., 'recording.wav'): my_recording.wav
Audio saved to my_recording.wav