Git Product home page Git Product logo

wav-to-pcm's Introduction

wav-to-pcm

This contains python scripts for converting wav files to pcm data for further processing.

Requirements

  • pyaudio
  • wave

Usage

First record audio using 'audio_record.py' --> This will output a 'output.wav' file

Now if you run 'check-output1.py' it will print out..

  • Number of frames

  • Array containing all the frames

  • Rate of the Frame capture : 44100

  • Total Time recorded : 5

(Both can be changed in 'audio_record.py')

  • Bit length of each Frame : 16

If you just want to use array of pcm data, Just include pcm_channels.py in your code and call "pcm_channels" by passing the name of the audio output file.

Function "pcm_channels" will return a tupple containing [pcm_data, sample_rate]

wav-to-pcm's People

Contributors

haloboy777 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

wav-to-pcm's Issues

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.