Skip to content

Yossef-Dawoad/Recwpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recwpy

Record with Python

a simple python file that enables you to record live from your microphone, record to wav file and even plot live data from your microphone

How to Setup

  • first Clone the repo
  • you need to have pyaudio install
pip install pyaudio

or if you are in windows

pip install pipwin
pipwin install pyaudio

it provides you with prebuild pyaudio package

how to Run

cd to Recwpy Folder and type:

python main.py

Docs

you first need to init the Record Class

from record import Mic
mic = Mic()

after initializing the class you can get direct data from your microphone

mic.output

mic.output is numpy array that contains the first chunk of information about the mic input

if you need just to record to wav file run

mic.record_toFile(output_file="outputfile.wav",
                  informitiveMode=True, 
                  duration=3)

informitiveMode=True is your friend if you want to get a glance of what happening behind the scene


Now the Cool part How to Plot Your Mic Output Live just as simple as Writing:

  mic = Mic()
  mic.plot()

New Functionality of the Class

mic = Mic() 
mic.analysis.getfft()

mic.analysis a class add new functionality to perform some audio analysis in the output you getting from your microphone as of now, it's in development and just has one function which is getfft()

About

small python tool that makes it easy to open the microphone and work with its data even display live stream plot with just line of code in python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published