wav

Need a javascript/HTML 5 web player that plays audio with G.711 codec wrapped in WAV container

☆樱花仙子☆ 提交于 2019-12-06 16:40:16
I'm looking for a javascript/HTML5 embeddedable player with the libraries to play audio with G.711 codec wrapped in WAV container. So far standard HTML5 does not support this type of audio. Does anyone have any suggestion of any players/libraries? Paid or free suggestions welcome. Thanks. If the codec/format/wrapper is not supported natively by the browsers you are aiming it will never work. You should convert your audio file in a format natively supported by most of the browsers. http://html5doctor.com/native-audio-in-the-browser/ 来源: https://stackoverflow.com/questions/9524779/need-a

How to join multiple .wav files with python [duplicate]

南楼画角 提交于 2019-12-06 16:39:26
This question already has answers here : How to join two wav files using python? (8 answers) Closed last year . I saw a post that joined two .wav files together, but I was wondering how can I join multiple .wav files using python? I am using python 3.6.0. If anyone has a way to do this please teach me. I saw that the other post ask for joining 2 .wav files and with that I used this code form the comments there: import wave infiles = ["sound_1.wav", "sound_2.wav"] outfile = "sounds.wav" data= [] for infile in infiles: w = wave.open(infile, 'rb') data.append( [w.getparams(), w.readframes(w

From Amplitude or FFT to dB

五迷三道 提交于 2019-12-06 14:31:14
I've a Python code which performs FFT on a wav file and plot the amplitude vs time / amplitude vs freq graphs. I want to calculate dB from these graphs (they are long arrays). I do not want to calculate exact dBA, I just want to see a linear relationship after my calculations. I've dB meter, I will compare it. Here is my code: #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import scipy.io.wavfile as wavfile import scipy import scipy.fftpack import numpy as np from matplotlib import pyplot as plt fs_rate, signal = wavfile.read("output.wav") print ("Frequency

Convert byte array to .wav java [duplicate]

流过昼夜 提交于 2019-12-06 13:35:49
问题 This question already has answers here : Convert audio stream to WAV byte array in Java without temp file (5 answers) Converting Byte Array to Wav file [duplicate] (1 answer) Closed 6 years ago . I have a web service that returns an array of bytes and my intention is to convert said array to a .wav in the client (a handheld such as Blackberry). However I really have no idea of how to do that, I tried just making an FileOutputStream but of course that wouldn't play. So I am once again without

Trouble converting an MP3 file to a WAV file using Naudio

本小妞迷上赌 提交于 2019-12-06 12:28:02
Naudio Library: http://naudio.codeplex.com/ I'm trying to convert an MP3 file to a WAV file, but I've run in to a small error. I know what's going wrong, but I don't really know how to go about fixing it. Here's the piece of code I'm running: private void button1_Click(object sender, EventArgs e) { using(Mp3FileReader reader = new Mp3FileReader(@"path\to\MP3")) { using(WaveFileWriter writer = new WaveFileWriter(@"C:\test.wav", new WaveFormat())) { int counter = 0; while(reader.Read(test, counter, test.Length + counter) != 0) { writer.WriteData(test, counter, test.Length + counter); counter +=

Flash swf to play PCM WAV files?

假如想象 提交于 2019-12-06 12:21:21
I am in need of a Flash swf that is capable of loading PCM WAV files via a url passed to it. An example of the file can be found here: http://msdn.microsoft.com/en-us/library/ff512405.aspx The swf does not need a visible interface, as it is meant for audio playing only and not user interaction. The swf should have a simple javascript interface for page-level interactions. These include: load(url): loads a PCM WAV file over the internet using the url that is passed through it. play(): Should play the PCM WAV file that was loaded stop(): Should stop playing the current file. I can provide a

How to remove noise from wav file? [duplicate]

不羁的心 提交于 2019-12-06 11:41:57
问题 This question already has an answer here : Suppressing noise in wav files (1 answer) Closed 6 years ago . I am actually mixing two wav files using the simple equation (a+b)/2 where a and b are the samples from the two wav files.This is fine and I am able to listen the audio from both files at the same time. But the problem is there is a lot of hssss noise (similar like the radio) playing in the background,how can I get rid of this white noise/noise. 回答1: You can create a low pass filter to

Audio Equalizer in Ruby

谁说我不能喝 提交于 2019-12-06 11:34:26
I am working (well, playing...) in ruby, attempting to create some useful audio tools. Not anything live, not something like a midi synthesizer or live action filters or an mp3 player. What I am making are simple tools that open a .wav file, modify it, and save it. I have good generators (square, sine, noise, triangular, sawtooth, etc... and more!). I have an envelope filter with which I am comfortable. I have a good tremolo (automatic envelope filter). The closest thing I have to a low-pass, high-pass or parametric equalizer is a tremolo that runs into the audio range... basically turning the

How To Track No Sound Area In A Wav File?

左心房为你撑大大i 提交于 2019-12-06 11:09:43
How to track sections without sounds in a wav file? a small software what I want to develop is deviding a wav file, and it consider a no volume area as a deviding point. how can a program know that volume of a wav file is low? I'll use Java or MFC. I've had success with silence detection by calculating RMS of the signal. This is done in the following manner (assuming you have an array of audio samples): long sumOfSquares = 0; for (int i = startindex; i <= endindex; i++) { sumOfSquares = sumOfSquares + samples[i] * samples[i]; } int numberOfSamples = endindex - startindex + 1; long rms = Math

Failed to open file file.wav as a WAV due to: file does not start with RIFF id

和自甴很熟 提交于 2019-12-06 10:49:54
I am getting this error when trying to open a RIFF file (which as I understand it is a type of WAV) in python. Failed to open file file.wav as a WAV due to: file does not start with RIFF id When I inspect it with various tools which leads me to believe that it is really a WAV / RIFF file. $ file file.wav file.wav: MBWF/RF64 audio, stereo 96000 Hz $ file -i file.wav file.wav: audio/x-wav; charset=binary $ mediainfo file.wav General Complete name : file.wav Format : Wave Format profile : RF64 File size : 4.10 GiB Duration : 2h 7mn Overall bit rate mode : Constant Overall bit rate : 4 608 Kbps