Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haloboy777/wav-to-pcm
This contains python scripts for converting wav files to pcm data for further processing.
https://github.com/haloboy777/wav-to-pcm
audio-recordings converting-wav-files pcm-channels pcm-data python-script wav
Last synced: 3 months ago
JSON representation
This contains python scripts for converting wav files to pcm data for further processing.
- Host: GitHub
- URL: https://github.com/haloboy777/wav-to-pcm
- Owner: haloboy777
- Created: 2016-11-18T02:30:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-26T04:17:30.000Z (over 7 years ago)
- Last Synced: 2024-06-27T13:34:17.681Z (5 months ago)
- Topics: audio-recordings, converting-wav-files, pcm-channels, pcm-data, python-script, wav
- Language: Python
- Size: 2.93 KB
- Stars: 12
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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' fileNow 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 : 16If 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]