wav

PhoneGap .wav upload from an iOS device is creating a 0k file on the server

我怕爱的太早我们不能终老 提交于 2019-12-10 06:25:52
问题 I am attempting to record audio on an iPhone using PhoneGap, then send that audio to a server. I am using PhoneGaps Media APIs to make the recording, then the PhoneGap file transfer API to send the file to the server. I am able to make the recording just fine, and playing it back works perfectly. When I try to send it to the server, however, the recording shows up on the server but it says the file is 0k big. I've done fairly extensive searching on this issue and found others that have had

How to read a “.wav” file into MATLAB?

假如想象 提交于 2019-12-09 23:34:23
问题 I wanted to input a wave file in the MATLAB so that I could process it using filters, when I come to input the wave file called wave.wav , this file is located on my desktop, and then I used [y, fs, nb] = wavread('wave.wav'); to read the wave file but always gives me an error cannot open file , the only thing I can think of is that the function doesnt know the path of the wave.wav , any help? And how can I play the file also using MATLAB after read, sound() ? 回答1: Yes, you are correct on both

Peak frequencies from .wav file

给你一囗甜甜゛ 提交于 2019-12-09 23:29:28
问题 I have a .wav file which recorded by me when I was playing guitar notes. Then I used below program to read my .wav file data. I used Naudio library. AudioFileReader readertest = new AudioFileReader(@"E:\song\music.wav"); int bytesnumber = (int)readertest.Length; var buffer = new float[bytesnumber]; readertest.Read(buffer, 0, bytesnumber); for (int i = 0; i < buffer.Length; i++) { Console.Write(buffer[i] + "\n"); } it outputs like below.(part of output). 0.00567627 0.007659912 0.005187988 0

How to write cues/markers to a WAV file in .NET

主宰稳场 提交于 2019-12-09 19:24:38
问题 I'd like write cues (i.e. time-based markers, not ID3-like tags) to a WAV file with C#. It seems that the free .NET audio libraries such as NAudio and Bass.NET don't support this. I've found the source of Cue Tools, but it's entirely undocumented and relatively complex. Any alternatives? 回答1: Here's a link that explains the format of a cue chunk in a WAV file: http://www.sonicspot.com/guide/wavefiles.html#cue Because a WAV file uses the RIFF format, you can simply append the cue chunk to the

Convert AAC to WAV

落爺英雄遲暮 提交于 2019-12-09 13:44:09
问题 I'm already using the Media Foundation APIs (thanks to MFManagedEncode, http://blogs.msdn.com/b/mf/archive/2010/02/18/mfmanagedencode.aspx) to convert wav to aac. I haven't fully got my head around how this works, but it does work- thankfully. Now I'm finding it difficult transcoding the other way, even though there is a MF codec for it (AAC Decoder). I can't find examples of how to use this and I'm finding the MSDN documentation for it cryptic to say the least; anyone had an luck with it? A

Read samples from wav-file

自作多情 提交于 2019-12-09 10:50:00
问题 I'm trying to make a webpage in html5 which stores sample-data from a wav-file in an array. Is there any way to get the sample-data with javascript? I'm using a file-input to select the wav-file. In the javascript I already added: document.getElementById('fileinput').addEventListener('change', readFile, false); but I have no idea what to do in readFile. EDIT: I tried to get the file in an ArrayBuffer, pass it to the decodeAudioData method and get a typedArraybuffer out of it. This is my code:

Creating a stereo WAV file using C

孤人 提交于 2019-12-09 07:14:22
问题 I am looking at creating a WAV file in C and have seen an example here. This looks good, but I'm interested in adding two buffers to make the audio stereo (the possibility to have different sound in each ear) . If I set the number of channels to two, the audio plays out of the left channel only (which apparently is right, as the left channel is the first channel). I have read I must interleave it with the right channel. Unfortunately I haven't found much online to help create a stereo WAV.

Extract amplitude array from a wav File using JAVA

拥有回忆 提交于 2019-12-09 02:28:13
问题 I am trying to extract amplitude array from an audio file(WAV file). I will be using this amplitude array to plot amplitude vs time graph for the given wav file. I am able to plot the graph myself but does not know how to extract the amplitude from given audio(wav) file in java? 回答1: Here is a helper class that you can use. The getSampleInt() method is what you need to get the amplitude: File file = ...; WavFile wav = new WavFile(file); int amplitudeExample = wav.getSampleInt(140); // 140th

Is there any way to send audio file to the speech-to-text recognition

。_饼干妹妹 提交于 2019-12-09 00:28:59
问题 I want the Android speech recognition system analysing audio file and not the default incoming voice from microphone. Is there any way to do that ? Thank you. 回答1: I suppose it works in a similar way to the chrome api - http://mikepultz.com/2011/03/accessing-google-speech-api-chrome-11/ As he has mentioned you can convert the microphone file into a .flac file and send it to the speech api, and you will get the same result. So you can use SOX and convert it yourself. Hope it helps. Dias 回答2:

playing sound without the need to install media player extension

自作多情 提交于 2019-12-08 12:00:33
问题 I am trying to embed a sound in an auction website. I want that every time someone's bid, a sound will be played. I tried a simple <embed> tag with given ID, and then sound.play() through javascript. The sound is playing, but in IE, a new user is asked to install a media player extension "if he/she trusts the website". Is there a way to make it play without this message. The following code is in the page: In the HTML: <embed src="success.wav" autostart="false" width="0" height="0" id="sound1"