I have been doing a project on encrypting .wav files using RSA algo and for that, I need to remove the file header to read the file properly. I need the sound data as a numpy array. Now I've searched the web for this and didn't understand what is the file header and how to remove it in python3. Looking forward to suggestions. Thank you.
Remove file header from a .wav file in python3
4.4k Views Asked by Sandipan At
1
There are 1 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in AUDIO
- Play multiple audio files in a slider
- Unity3d AudioSource not creatable
- JavaFX can't play mp3 files
- iPhone simultaneous sound output
- Phonegap Build App - Play Audio
- HTML5 Audio pause not working
- Java boolean play button issue (play over and over again with each click)
- import a sound externally or from the library? AS3
- Set audio source
- Saving a sound bite as a ringtone
- Using OnAudioFilterRead with playOnAwake
- Audio recorded with Samsung does not play on iOS
- fftw of 16bit Audio :: peak appearing wrong at 2f
- How to Export an audio file with effect in iOS
- Tried multiple solutions onsite, none worked: Play <audio> on Konami code
Related Questions in WAV
- Release a wav file from being used by a process
- How to join mp3 and wav files
- Windows - sound recording program giving noise
- QSound::play("soundpath") call works but a QSound object doesn't
- How to save an audio capture in a wav file using ASIO and Naudio?
- Change WAV File In C
- Building OPENSMILE with portaudio in vs2012 fail
- Invalid format with getAudioInputStream, trying to play a sound in Java
- Loading and playing multiple .wav files in java
- Playing a wav file from a MemoryStream windows phone 8.1
- How to add echo effect to wav file in android?
- Export buffer to WAV in C++
- Reading WAV header renders wrong data
- Parsing a WAV/PCM audio
- WAV files at any rate except 44.1kHz have messed up sound
Related Questions in WAVE
- Is my audio normalization code correct?
- Convert OutputStream to ByteArrayOutputStream
- Weird glitch when creating sine audio signal
- Repaint in achartengine with new values
- Python Wave byte data
- How to play wave file in MVC 4
- How to detect empty wave file in Python?
- Determining Bit-Depth of a wav file
- Compare voice wav in android or voice tag ( voice commands ) API
- Wave Simulation with Python
- Saving files using Carrierwave without forms
- Play a part of a .wav file in python
- Merging two WAVE files on Android (concatenate)
- Making a wavetable synth for the first time...Can somebody point me in the right direction?
- Playing wave files from stream
Related Questions in FILE-HEADER
- How to parse the end header of a 7z file?
- Read bunch of JPGs from container
- Calculate duration of ".ds2" file?
- How can tzdata.zi file can be identified not as a .zi file Unambiguously?
- Remove file header from a .wav file in python3
- Write struct to file but wrong value when read back with C++
- Reading header values from a binary file blob in pure JavaScript
- How to read bmp file header in python?
- PHP: Checking if file exists, but @get_headers affecting tracker
- Read a JPG file until certain bytes occur
- What goes into a file header?
- golang FileHeader.Open() return error no such file or directory
- webm and mp4 hex file header durations
- Python read file by bytes until sequence of bytes
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
This should be what you're looking for. This will read the first 44 bytes (supposedly the header) into the
binaryHeadervariable and the rest sound data into thebinarySoundvariable.To get your music file back you can simply add those two files back together
EDIT: To include the edit in OP for the need of a numpy array: