wave Questions
3
Solved
I have been given a large WAV-file of continuous underwater recording which I would like to convert to a numpy array for analysis. I am struggling to do this.
So far I have:
import numpy as np
im...
1
Solved
I'm streaming microphone input from my laptop computer using Python. I'm currently using PyAudio and .wav to create a 2 second batches (code below) and then read out the frame representations of th...
1
Solved
First time posting here, lets see how this goes.
I trying to write a script in python which would add a second of silence in the beginning of the wav file, but so far been unsuccessfully in doing ...
Ensile asked 15/10, 2017 at 17:22
4
1
Solved
I have a WAVE file with a wFormatTag that is 3 (WAVE_FORMAT_IEEE_FLOAT). Firefox treats WAVE_FORMAT_IEEE_FLOAT files like WAVE_FORMAT_EXTENSIBLE, which means that it expects that a WAVE_FORMAT_IEEE...
Fullmouthed asked 7/7, 2017 at 17:43
1
i get data from a wav file and want to write byte back to wav .
i have already got the byte from wav.here is my code
i know 0-43 bytes are header and 44- are data
byte[] soundBytes;
try {
In...
2
Solved
1
This caused me a day's worth of headache, but since I've figured it out I wanted to post it somewhere in case it's helpful.
I am using python's wave module to write data to a wave file. I'm NOT us...
1
Solved
I have created the header for the wave file, but the wave file which is created does not play.
I have used this https://ccrma.stanford.edu/courses/422/projects/WaveFormat/ as a reference to create...
Jerejereld asked 7/1, 2015 at 18:54
1
Solved
I have been trying to plot a plane wave equation in Matlab. I am trying to plot the real part of, $(1/R)E^i(kR+wT)$ i.e. $(1/R)cos(kR+wT)$. So I used the following code in Matlab (for a single inst...
2
Solved
I try to open a wave file with the wave module, but I keep getting the same error whatever I try.
The line with the error is the following:
wav = wave.open(f)
This is the error message:
Traceba...
3
Solved
I am trying to convert an OutputStream to a ByteArrayOutput Stream. I was unable to find any clear simple answers on how to do this. This question was asked in the title of the question on StackOve...
Toscanini asked 16/11, 2014 at 19:17
2
I need to convert a flac file to a wav file without changing sample rate and bit depth. As far as I know changing these properties may distort the audio, so how do i specify them not to be changed?...
3
Solved
Hey everyone, I'm currently trying to figure out how to play back a tone I have generated using a sinusoidal wave.
Here's my code:
#include <iostream>
#include <OpenAL/al.h>
#include...
Occultism asked 29/3, 2011 at 7:8
4
Solved
I am reading a raw wave stream coming from the microphone. (This part works as I can send it to the speaker and get a nice echo.)
For simplicity lets say I want to detect a DTMF-tone in the wave d...
4
I assign a value to a variable x in the following way:
import wave
w = wave.open('/usr/share/sounds/ekiga/voicemail.wav', 'r')
x = w.readframes(1)
When I type x I get:
'\x1e\x00'
So x got a v...
2
Solved
I have been trying to merge two WAVE files on Android for quite some time now but really can't seem to get it working properly.
Everything looks fine, the files are read, and written to the output...
Arlin asked 11/9, 2013 at 20:43
2
Solved
I'm working on a project that involves looking at the changes in pitch/frequency over time with a wave file (I'm new to MATLAB, but not to programming). I'm able to see the time-amplitude graph and...
Byelection asked 15/1, 2013 at 0:0
1
Solved
I am trying to create wave files using mac's say command, however, I get the following error:
$ say "hello" -o hi.wav
Opening output file failed: fmt?
although,
$ say --file-format=?
W...
2
Solved
This is the simplest possible AVAudioPlayer code, and it's just failing to play anything back. No errors, nothing in the console at all, the file is definitely being found as if I change the URL st...
Bethink asked 20/2, 2012 at 14:5
4
Solved
How do I, say, play a sound with a given amplitude and a given frequency makeup (say, consisting of frequencies 2 kHz and 3 kHz) natively on Windows (32-bit and 64-bit, up to Windows 7)?
(By nativ...
2
I'm developing an app and I need some way to compare 2 voices if they' match or not, I know that Voice Recognizer is a way to do that but since (i think) it needs to translate the voice into string...
Untie asked 8/2, 2011 at 16:39
2
Solved
I'm working on a project on the iPhone where I'm recording audio from the device mic using AVAudioRecorder, and then will be manipulating the recording.
To ensure that I'm reading in the samples f...
Headcheese asked 8/6, 2011 at 20:12
2
Solved
I am using NAudio to play a sinewave of a given frequency as in the blog post Playback of Sine Wave in NAudio. I just want the sound to play() for x milliseconds and then stop.
I tried a thread.sl...
Elwoodelwyn asked 30/3, 2011 at 11:17
4
Solved
I want to simulate a propagating wave with absorption and reflection on some bodies in three dimensional space. I want to do it with python. Should I use numpy? Are there some special libraries I s...
Kiersten asked 10/2, 2011 at 11:11
© 2022 - 2024 — McMap. All rights reserved.