wave Questions

4

Solved

I have a .wav file several minutes long that I would like to split into different 10 second .wav files. This is my python code so far: import wave import math def main(filename, time): read = w...
Sill asked 23/6, 2016 at 18:26

9

I have to downsample a wav file from 44100Hz to 16000Hz without using any external Python libraries, so preferably wave and/or audioop. I tried just changing the wav files framerate to 16000 by usi...
Amelita asked 3/6, 2015 at 12:10

14

Solved

I need to analyze sound written in a .wav file. For that I need to transform this file into set of numbers (arrays, for example). I think I need to use the wave package. However, I do not know how ...
Apology asked 13/1, 2010 at 22:3

3

Solved

I'm trying to capture audiorecorder (https://github.com/cwilso/AudioRecorder) and send the blob through Ajax a php file, which will receive the blob content and create the file(the wave file in thi...
Quentin asked 25/9, 2013 at 21:32

5

Solved

I have a 2 seconds 16bit single channel 8khz wav file and I need to change its volume. It should be quite straightforward, because changing the volume is the same as changing the amplitude of the ...
Ansell asked 11/11, 2012 at 8:19

3

Solved

I am looking for a fast, preferably standard library mechanism to determine the bit-depth of wav file e.g. '16-bit' or '24-bit'. I am using a subprocess call to Sox to get a plethora of audio meta...
Testes asked 13/9, 2017 at 17:59

1

Solved

I want to convert a numpy array waveform into a wav-like object so that I can upload it to S3 without having to save the waveform to file locally. Imagine I have a numpy array waveform, y, y, sr = ...
Grisette asked 28/6, 2022 at 8:39

3

Solved

I am trying to implement the Karplus-Strong algorithm. All is looking fine when I play (through Jupyter Notebook using Audio(y, rate=Fs)) the collected numpy array (representing guitar accord). U...
Punster asked 24/11, 2016 at 9:14

7

Solved

i'm trying to use pydub, but when i import it to python with AudioSegment it will give me an error saying it doesn't recognize it. i tried using pip install and searching online. any help?? i'm us...
Inoculate asked 2/4, 2017 at 14:42

4

Solved

I'm aware of the following question: How to create a pydub AudioSegment using an numpy array? My question is the right opposite. If I have a pydub AudioSegment how can I convert it to a numpy arr...
Hatred asked 24/6, 2016 at 14:3

3

Solved

How can I remove the silence from the beginning and the end of wave files with PyDub? I guess I should access segment by segment and check whether it's silent or not (but I'm not able to do it) :...
Disrelish asked 9/4, 2015 at 19:25

6

Solved

I'm trying to read a wav file from the TIMIT database in python but I get an error: When I'm using wave: wave.Error: file does not start with RIFF id When I'm using scipy: ValueError: File for...
Presnell asked 25/6, 2017 at 16:19

3

I'm looking for how to draw the sound waves according to music. I want waves like this image here is some discussion about displaying Waves from music WaveForm on IOS rendering a waveform on ...
East asked 31/10, 2013 at 6:28

5

so I asked everything in the title: I have a wav file (written by PyAudio from an input audio) and I want to convert it in float data corresponding of the sound level (amplitude) to do some fourie...
Marvel asked 14/10, 2011 at 15:32

2

Solved

I'm currently working on a project which includes using pygame to play sounds on a button press. Since I didn't find a good way to record sound from the application (I tried PyAudio with Portaudio ...
Thermotherapy asked 15/3, 2017 at 12:27

3

Solved

I'm trying to convert a WAV file(PCM,48kHz, 4-Channel, 16 bit) into mono-channel WAV files. I tried splittiing the WAV file into 4 byte-arrays like this answer and created a WaveMemoryStream like ...
Wrenn asked 22/8, 2012 at 14:12

9

Solved

Does any one know if there is good software to perform conversion from (wave or mp3 or other known format) to MIDI? I understand that conversion from audio file to MIDI is a very complex process. I...
Jactitation asked 1/5, 2011 at 23:12

4

Solved

I'm trying to read the data from a .wav file. import wave wr = wave.open("~/01 Road.wav", 'r') # sample width is 2 bytes # number of channels is 2 wave_data = wr.readframes(1) print(wave_data) T...
Seaware asked 19/12, 2013 at 9:8

3

Is there a way to read frames of .wav format binary data? I am streaming .wav binary to a python server which I want to be able to read and use from processing by pyaudio, which complains about the...
Bifocal asked 10/5, 2017 at 18:13

3

Solved

The following code writes a simple sine at frequency 400Hz to a mono WAV file. How should this code be changed in order to produce a stereo WAV file. The second channel should be in a different fre...
Have asked 3/9, 2010 at 15:41

7

Solved

What's the simplest way to generate a sine wave sound at any frequency in Java? A sample size more than 2 bytes would help, but it doesn't really matter.
Sula asked 25/12, 2011 at 23:20

3

Solved

I have to read the data from just one channel in a stereo wave file in Python. For this I tried it with scipy.io: import scipy.io.wavfile as wf import numpy def read(path): data = wf.read(path) ...
Ivan asked 18/4, 2014 at 12:42

1

Solved

I'm trying to append data to a sound file without loading its contents(because it may have gigabytes of data), I'm using pysoundfile library currently, I've figured out a way to do it for wave64, b...
Bifid asked 9/5, 2019 at 12:1

1

Solved

I'm writing a code to analyse a single audio frequency sung by a voice. I need a way to analyse the frequency of the note. Currently I am using PyAudio to record the audio file, which is stored as ...
Ralli asked 14/11, 2018 at 21:3

2

I have a list of .wav files in binary format (they are coming from a websocket), which I want to join in a single binary .wav file to then do speech recognition with it. I have been able to make it...
Streak asked 24/5, 2018 at 19:58

© 2022 - 2024 — McMap. All rights reserved.