Coder Social home page Coder Social logo

yossef-dawoad / recwpy Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 24 KB

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

Home Page: https://github.com/Yossef-Dawoad/Recwpy

License: MIT License

Python 22.83% Jupyter Notebook 77.17%
microphone pyaudio python plot wav sound

recwpy's Introduction

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()

recwpy's People

Contributors

yossef-dawoad avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.