wav

Generate visual (waveform) from MP3/WAV file in Windows 2008 Server?

南笙酒味 提交于 2019-12-20 09:36:58
问题 Is there (somewhere) a command-line program for Windows which will create PNG/JPEG visual from MP3/WAV? EDIT: This is a good example of how the image should look like. 回答1: Sox, "the Swiss Army knife of audio manipulation", can generate accurate PNG spectrograms from sound files. It plays pretty much anything, and binaries are available for Windows. At the most basic level, you'd use something like this: sox my.wav -n spectrogram If you want a spectrogram with no axes, titles, legends, and a

How to convert any mp3 file to .wav 16khz mono 16bit

别来无恙 提交于 2019-12-20 08:40:31
问题 Please, help to choose solution for converting any mp3 file to special .wav - I'm a newbie with Linux command line tools, so It's hard for me right now. I need to get wav with 16khz mono 16bit sound properties from any mp3 file. I was trying ffmpeg -i 111.mp3 -ab 16k out.wav, but I got wav with the same rate as mp3 (22k). Please, help to construct right command line 回答1: kdazzle's solution is almost there - it still output a stereo wav, here is a slightly modified version that generate mono:

JPlayer Circle Player does not show circle first time around with wav files made from vox

妖精的绣舞 提交于 2019-12-20 07:39:38
问题 I have an application that is using the JPlayer Circle Player to play short audios for transcription purposes. Each of these audios originates as a .vox file that has been converted to .wav by SoX. When the Play button is pressed, the audio plays but the green circle does not display. Once the clip has played, pressing play again does show the green circle advancing. I assume that this is because either the original vox format or the wav format does not contain any length data so that player

Comparing uint8_t data with string

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-20 03:55:12
问题 This may sounds little odd or question may be a trivial one, but for most of my life I was programming in PHP (yeah, I know how it sounds). So when I switched to C++ there are things quite unfamilliar for me (cause of php habits). So I'm loading wav header data using struct. Values are definded as uint8_t type: typedef struct WAV_HEADER { uint8_t RIFF[4]; // RIFF uint8_t WAVE[4]; // WAVE } I have to compare them with four-letter strings for something like that: if(wavHeader.RIFF[0] .

QSound::play(“soundpath”) call works but a QSound object doesn't

痴心易碎 提交于 2019-12-20 03:20:14
问题 I am trying to play a sound with QSound module. It try with this code and works: QSound::play(":/sounds/sources/BeepSound.wav"); But I want this and doesn't work: I create a dynamic instance of QSound and played: sounds = new QSound(":/sounds/sources/BeepSound.wav"); sounds->setLoops(3); sounds->play(); Any tips? Update I don't want to use others modules like QMediaPlayer , QAudioOutput because I want something really simple, just play a sound. 来源: https://stackoverflow.com/questions/30812327

C++ reading 16bit Wav file

隐身守侯 提交于 2019-12-19 10:31:04
问题 I'm having trouble reading in a 16bit .wav file. I have read in the header information, however, the conversion does not seem to work. For example, in Matlab if I read in wave file I get the following type of data: -0.0064, -0.0047, -0.0051, -0.0036, -0.0046, -0.0059, -0.0051 However, in my C++ program the following is returned: 0.960938, -0.00390625, -0.949219, -0.00390625, -0.996094, -0.00390625 I need the data to be represented the same way. Now, for 8 bit .wav files I did the following:

What exactly is the data returned when reading a .wav file?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-19 09:46:29
问题 When reading a audio file using something such as rate, wavData = scipy.io.wavfile.read('test.wav') what exactly does the data inside of wavData represent? 回答1: wavData is an array of numbers each representing a single sample of the audio signal. The samples are snapshots of the audio amplitude spaced evenly in time. So if your rate is returned as 48000 then the first 48000 elements of wavData would be 1 second worth of the audio signal. For more information read about PCM on wikipedia: https

Trying to get the frequencies of a .wav file in Python

六眼飞鱼酱① 提交于 2019-12-19 09:08:30
问题 I know that questions about .wav files in Python have been just about beaten to death, but I am extremely frustrated as no one's answer seems to be working for me. What I'm trying to do seems relatively simple to me: I want to know exactly what frequencies there are in a .wav file at given times. I want to know, for example, "from the time n milliseconds to n + 10 milliseconds, the average frequency of the sound was x hertz". I have seen people talking about Fourier transforms and Goertzel

Python convert wav to mp3

时光毁灭记忆、已成空白 提交于 2019-12-18 18:51:18
问题 I've looked at pymedia (discontinued), pyglet(great but no converter in there) and audiotools(command line cd ripping), and none seem suitable. In Python 2.7 , how do you do convert(wavFileLocation, 'mp3') If there is no python way, how would you do it in a manner which python can invoke? (e.g. Call a Cross platform command line tool... if exists return (name, pythonCodeForInvocation) ) 回答1: using lame (command line), you can encode wav to mp3 like this: $ lame --preset insane /path/to/file

How to play multiple .wav files simultaneously in delphi

僤鯓⒐⒋嵵緔 提交于 2019-12-18 17:55:24
问题 I wish to multiple .wav files simultaneously in delphi. When I open and plat the first things are fine. However the second one causes a error when it tries to open. It would appear that i can only use one media player at a time.... is there any way around this what do i do? 回答1: How would you play a single sound? When I want fine control, I use the waveOut functions, as in this answer. My answer there also allows you to play the sound using a thread (that is, among other things,