Click here to Skip to main content
15,889,116 members
Everything / Multimedia / Audio

Audio

audio

Great Reads

by Andy Allinger
Convert audio to image. (Edit the image.) Convert image to music.
by honey the codewitch
Provides a complete managed API for working with MIDI files, sequences and devices
by Steve Hoult
Creation of an Audio analysis framework to enable developers with little to no understanding of audio analysis to develop audio-driven games
by ljw1004
How to use UPnP on Windows 8

Latest Articles

by Andy Allinger
Convert audio to image. (Edit the image.) Convert image to music.
by ToughDev
How to interface VS1053 Audio Encoder/Decoder Module with PIC using SPI
by honey the codewitch
Mix wavs and waveforms with this simple to use library
by Vishwas_R
Simple Audio Player to browse any song with Play / Pause, Stop options & a waveform generated using CanvasJS charts

All Articles

Sort by Score

Audio 

12 Aug 2023 by Andy Allinger
Convert audio to image. (Edit the image.) Convert image to music.
6 Jul 2020 by honey the codewitch
Provides a complete managed API for working with MIDI files, sequences and devices
15 Jul 2021 by Steve Hoult
Creation of an Audio analysis framework to enable developers with little to no understanding of audio analysis to develop audio-driven games
13 Sep 2012 by ljw1004
How to use UPnP on Windows 8
16 Aug 2020 by Michael Haephrati
Desktop application that can be used to convert from and to various audio formats, such as .mp3, .m4a and .wav
22 Oct 2013 by ASP.NET Community
Recaptcha:Captcha keeps the spammer away from our site. There is Lot of captcha conrols available for asp.net and few may not work on postback.
25 Jul 2022 by honey the codewitch
Make your little devices sing
21 Feb 2011 by Dylan Morley
If I understand correctly, you have an audio file with a singer over a backing track & you want to isolate either the singers voice or the backing track? You can't really do this to a high quality....even with professional applications such as Cubase or Logic, it's extremely difficult....
19 Jul 2013 by Ron Beyer
I don't believe this is possible. dB-SPL depends greatly on the speakers attached to the system. I can have my volume turned all the way up in the control panel, and my speaker volume all the way down, etc. Think the way car audio competitions work, dB is dependent greatly upon the...
1 May 2015 by Intel
As one of the interfaces on mobile devices and tablets, the key function of the audio jack is to play music. However, its other usage cannot be ignored—the audio jack can also be used to transmit data.
9 Apr 2023 by honey the codewitch
Mix wavs and waveforms with this simple to use library
22 Apr 2011 by Nish Nishant
You can either distribute the wave file with your application setup. Byt this I mean, when you give the exe to your end-users, include the wave files too. This may be in a zip file, an msi, or some other kind of setup archive. Or you can embed it as a resource in the exe. For more info,...
10 Feb 2015 by Arthus Huang
This article will tell you how to write a tune with pure JavaScript and introduce an interesting Javascript framework to you.
9 Jun 2020 by After2050
How to create and play sounds in HTML5
28 May 2011 by Nyx.Carpenter
Hi all,I'm currently working on a program that analyses a wav file of a solo musician playing an instrument and detects the notes within it. To do this it performs an FFT and then looks at the data produced. The goal is to (at some point) produce the sheet music by writing a midi...
2 Mar 2014 by ASP.NET Community
In my case, I use  a FileUpload Control(Id:->FileUpload1), an ImageButton(ImageButton1) or you can use the Image,  a Button Control(Id:->Updatebttn)
21 Mar 2015 by Joe Dufresne
A small utility app which uses the excellent NAudio library to help organize backing tracks (audio files for band minus one situations), chord / lead sheets, lyrics, etc. Intended for Windows tablets running a full version of Windows 8.1.
14 Jul 2020 by honey the codewitch
Continuing our series with a knob control and a MIDI visualizer
22 Feb 2011 by Sergey Alexandrovich Kryukov
I don't think you can do it — in general case with somewhat acceptable quality.I would be quite thankful is anyone proves me wrong, but will be extremely surprised it is possible.Just one notes: masters of scat singing can mimic an instrument amazingly well; even a human can hardly...
16 Mar 2011 by #realJSOP
This library might help:nAudio on Codeplex[^]
23 Mar 2011 by OriginalGriff
Yes, you can run C# under Linux, if your web host is agreeable: you need to run Mono (Google will help you there) on teh webserver, then (in theory at least) any .NET application can run.
1 Apr 2011 by Henry Minute
All files stored on a computer are binary. So I think that you might need to edit your question to make it clearer what it is that you want to do.
15 Apr 2011 by Anthony Mushrow
will my final resulting .exe still work on an end user's system using the latest (2010) DirectX end user runtime?Yes. When you link with a .lib file it is actually put into your .exe or .dll fileFunctionality from previous versions of DirectX are always available in the runtime for...
12 Dec 2011 by Gene Pharr
I have an audio application that works just fine on XP.But on Windows 7, acmStreamConvert malfunctions and trashes all of it's conversion results.The bytestream in the returned converted buffer is nothing but "BF C5" over and over again.I *AM* checking the return value of the call to...
1 Jan 2012 by DaveAuld
Hi Marcelo,I was reading recently the proposed spec modifications for HTML5, recording capability is being considered, it is currently support in chrome only I believe (thats how google implement the speech search capability, you could see if the Speech Input API helps any...
2 Jun 2012 by Tim Corey
Subtitles have to come with the original DVD. Adding them later does not work unless you are going to do a lot of work and you have rights to do so. For example, here is a tutorial on how to do so if you already have the subtitles file or if your DVD has subtitles included on the...
27 Sep 2012 by Sergey Alexandrovich Kryukov
The question makes no sense. Everything is "binary", including your original audio file.[EDIT]After OP's (incomplete) clarification:I can only guess that you need to represent the waveform and do some image recognition, but it all depends on what you have and what you want —...
26 Mar 2013 by Sergey Alexandrovich Kryukov
Both formats, and a lot more, are supported by FFmpeg or libavcodec, which are the best libraries I know. Please see:http://en.wikipedia.org/wiki/Ffmpeg[^],http://ffmpeg.org/[^],http://en.wikipedia.org/wiki/Libavcodec[^],http://libav.org/[^].You can use them on the server-side either...
25 Feb 2014 by Sergey Alexandrovich Kryukov
Please see my past answer, it shows most tricky part of it, manipulation with the header/metadata: Writting Header wav in wav.file[^].(You can automatically translate C# to VB.NET, but it's enough to understand the idea; I referenced the document I used.)See...
4 Aug 2022 by Vishwas_R
Simple Audio Player to browse any song with Play / Pause, Stop options & a waveform generated using CanvasJS charts
19 Aug 2010 by Christian Graus
IF only your post made some sort of sense. I can only guess that you're the third person I've told today to use the forum provided under an article, instead of the general 'quick questions' forum.
24 Sep 2010 by alrosan
this link will be useful
27 Nov 2010 by Henry Minute
If you think about it, that is a tremendously difficult task. Different encoders throw away different parts of the original in order to shrink the file size, so comparing them is not easy.There are some freeware Apps out there that claim to do so although how well they work I don't...
21 Mar 2011 by cougar10
i'm currently reading the documentation of MSDN to render a stream to an audio renderer.. or in other word, to play my captured data from microphone.http://msdn.microsoft.com/en-us/library/dd316756%28v=vs.85%29.aspxthis example provides example.My problem now is that i couldn't...
8 Apr 2011 by Sergey Alexandrovich Kryukov
You cannot use anything from System.Speech to access the raw source of the audio. There is nothing like that in the engine. Instead, you still need to use the same source of audio data to feed to the System.Speech engine (I guess, the recognizer) and to your spectrum analysis unit. What is you...
12 Apr 2011 by Paul Hasler
I've finally found the list I've been searching for.The full list of WAV file format codes is defined in the mmreg.h header file.Below is the relevant section of the header file.Hope it's useful to others out there.00101 /* WAVE form wFormatTag IDs */00102 00103 #define ...
15 Apr 2011 by Sergey Alexandrovich Kryukov
You can find how a linker works in any decent book on system programming.Here is a nice simple introduction, but you won't see much detail: http://en.wikipedia.org/wiki/Linker_(computing)[^].Main idea of behind a traditional linker is separate compilation. A separate units of code are...
23 Apr 2011 by Sergey Alexandrovich Kryukov
You can also add a sound file in resource. It will be embedded with a file.Create an new .resx resource file and use "add existing file". Look at the auto-generated C# file (created under your resource file node). Open it, locate a static class and a static property created; it will have a...
25 Apr 2011 by Manfred Rudolf Bihy
If you read the article you mentioned carefully you'd have run across this:"We must be careful when writing the header. If there is any small mistake, the merged file doesn't work, so we write "RIFF" as an array of char, not as string and use int type for storing 4 bytes and short type for...
25 Apr 2011 by Nish Nishant
Phil,I am not 100% sure this is the problem but when you mentioned that 1 byte difference for every single write, I just thought of it.The article is in C#. Your code is in VB.You have VB code like this:Dim byteWaveData(fsInput.Length - 44) As ByteThe matching C# code for...
27 Apr 2011 by Rick Shaub
It looks like a character (UTF) encoding issue. See if the code below works: Byte() bytes = brObject.ReadBytes(4) Format = ASCIIEncoding.ASCII.GetString(bytes) If Format "WAVE" Then IsWaveFile = False Exit Sub End If
9 Jul 2011 by Albert Holguin
There's no actual question and the number of topics covered is really broad in nature, but here's a push start.1. There's probably libraries that'll help you to do this, or you can use the Windows Wave IO API[^] to do it.2. See 1, that is sampling.3. If you know the math, do it yourself....
10 Jul 2011 by Espen Harlinn
Try compiling with Visual C++ 2010 express[^] - it's free too.It seems like there is something in the header that gcc don't likeUpdateYou probably need to "#include " before mmsystem.hYou need to make sure you are not creating a .Net project - you want native code...
15 Oct 2011 by André Kraak
Have a look at this Developing a Video Chat Application with high quality video streaming[^].
26 Jan 2012 by Sergey Alexandrovich Kryukov
In the data fields like the text box or a file dialog, all path names are read as is, with not backslash escaping or other foolishness. Such escaping is only needed in source code string literals, due to C, C++ or C# syntax.However, in the past I saw a lot of really brain-damage C and C++...
29 Feb 2012 by El_Codero
Hi, since Windows Vista/7 MS changed the access to control volume, mixers, etc. and it's called the coreaudio API.Here are some links, I'm sure you can work something out with it:http://msdn.microsoft.com/en-us/library/ms678715.aspx?ppud=4[^]Vista Core Audio API Master Volume...
28 Mar 2012 by TorstenH.
Just curious - why does it need to be 16khz/mono ?Sound in Java is very complicated, the Java Sound API is hardly not developed in the last couple of years.I would record in 44Khz and convert it afterwards:http://www.jsresources.org/faq_audio.html#convert_sample_rate[^]these libs...
18 Apr 2012 by Nilesh Patil Kolhapur
Hi, in asp.net a Literal control will help u to play video and Audiojust drag it in your page and in aspx.cs pagewrite following code string myobj = ""; myobj += ""; myobj += "
4 Jun 2012 by thatraja
If you're using VLC media player, then you could see the subtitle for audio files too.For example, you have two files like as belowRain Drops keep falling on my head.mp3Rain Drops keep falling on my head.srtNow open the mp3 file using VLC player & Select Audio - Visualizations -...
27 Jul 2012 by Christian Graus
The file you're getting is an HTML5 video. As such, all you really need to do, is get the file as it streams, and process the audio out of a known file format. Tons of sites do this, why does the world need another ?
28 Aug 2012 by Kenneth Haugland
Usually the input of a WAV file is represented as Octave band values for music etc. So your reprensentation should depend on what you are measuring. Hamming window is a lowpass filter that would smooth the signal out, and is in most cases used to create a continus signal insted of a descrete...
28 Nov 2012 by paul_b
Hey, I'm really stumped on this and it just seems like I'm missing something obvious.I'm trying to implement a feature in a C# windows store app that allows you to speak through the microphone and that sound to come out of the speakers in real-time.Recording sound to a file for later...
21 Dec 2012 by Brent Schooley
Plantronics Voyager PRO UC v2 Review
12 Apr 2013 by CPallini
Roughly speaking, I would first normalize the amplitude of the two graphs and then time-translate one of them until best superposition is reached.
20 May 2013 by Thanks7872
Refer to below linksNAudioAlvas Audio: C# audio library for .Net developers.
19 Jul 2013 by Sergey Alexandrovich Kryukov
You need to understand that dB is relative measure: http://en.wikipedia.org/wiki/Decibel[^].—SA
20 Jul 2013 by Dave Kreskowiak
It's still not possible without external and calibrated equipment. You're every day microphone is not calibrated and it's not just a simple matter of getting the digital data from the stream and running it through some algorithm.
27 Jul 2013 by mansurmojom
I want to play a sound(tone) at specified volumes and frequencies but want the duration of playback fixed say 2 seconds.My code is similar to one given here. double freq, volume; WaveTone tone = new WaveTone(freq, volume); stream = new...
26 Aug 2013 by Sergey Alexandrovich Kryukov
First of all, "sequential order" makes no sense at all. This is just a matter of practical and tactical considerations. Besides, we have no idea on your current knowledge level and skills. You can do it all in parallel, in certain chunks, taking into account some dependencies. But learning those...
12 Nov 2013 by Sergey Alexandrovich Kryukov
Apparently, you cannot control anything on the other computer if this computer does not run some process which communicates on the network and obeys your commands.First of all, you need to control audio on a local computer. One of the ready-to-use libraries to do it with .NET is NAudio:...
25 Nov 2013 by vg8open
Is there a way to programmatically specify which speakers is a full-range speaker? I get get the property of the PKEY_AudioEndpoint_FullRangeSpeakers using the following code:IPropertyStore *pStore;hr = pDevice->OpenPropertyStore(STGM_READ, &pStore);if (SUCCEEDED(hr)){ LPWSTR...
29 Jan 2014 by Pete O'Hanlon
Ooh, good luck with that. I have quite a bit of experience with speech recognition working with the spoken word, and I can tell you that just handling speech doesn't give you a great deal of accuracy. So, even if you manage to extract the speech component from audio, you will probably find that...
20 Feb 2014 by snakelecaps
When i write bwl.Write(buffer);my Subchunk2Size is bigger than the initial file... using (var wfr = new WaveFileReader(fs)) { var outputFormat = new WaveFormat(8000, 16, 1); using (var pcmStream = new...
20 Feb 2014 by Sergey Alexandrovich Kryukov
I recently developed and debugged this part of Wave writing, can share with you:namespace Wave { using System; using System.IO; using Encoding = System.Text.Encoding; public partial class WaveWriter : BinaryWriter, IDisposable { public WaveWriter(string...
14 Apr 2014 by Vidyasagar Machupalli
Hope this article guides you in a right directionhttp://channel9.msdn.com/coding4fun/articles/NET-Voice-Recorder[^]
16 May 2014 by CHill60
Google is your friend.These results for...
15 Jun 2015 by CPallini
You have several options:Study the WAV file format (you might start from Wikipedia[^]) and implement yourself the code for moving the stereo channels out.Use a library, you might find many of them available on the web.Use an external program, like, for instance audacity[^], to perform the task.
7 Sep 2015 by Dave Kreskowiak
Google for "javascript sound recorder". Keep in mind that browsers typically run code in a sandbox environment and access to the client machine hardware, including the microphone (if there is one), is heavily restricted. By default, your code will not have access to it. There is nothing you can...
7 Sep 2015 by Sergey Alexandrovich Kryukov
First question is completely unclear. "Gives then name" could be anything, but it may sounds like you wanted to recognize the music piece by the audio record and identify it in some hypothetical database. If so, you need to understand that it would be extremely advanced and complicated...
5 Oct 2015 by dan!sh
I think you should hire someone who knows how to create this application. If you are not aware of legalities, make sure you get some consultation on that too.
17 Dec 2015 by Matt T Heffron
Get a microphone and record it yourself.Hire someone to be the voice. Be sure to get an appropriate release (legal) to use the recordings as you intend.If you know someone (relative, friend, acquaintance, ...) whose voice meets your needs, just ask them to help!20 years ago a project I...
17 Dec 2015 by Richard Deeming
If you're using .NET, have you tried the built-in speech synthesizer[^]? On my W10 computer, the "Microsoft Hazel Desktop" voice seems to match your gender and accent requirements. You can download other voices[^] from Microsoft, and you can apparently use some third-party "SAPI-compliant...
14 Jan 2016 by Android on Intel
This document explains how Android low-latency audio is implemented on x86 devices starting with the Intel® Atom™ processor-based (codenamed Bay Trail) platform.
26 Mar 2016 by Sergey Alexandrovich Kryukov
Please see my article Practical Sound Recorder with Sound Activation[^].It is not a UWP but is in WPF, but it doesn't matter, because its audio part is tiny, clearly written in a separate file and class and can be used anywhere where you can use legacy Windows API. Actually, this part of API...
5 Mar 2017 by Jochen Arndt
The code is splitting the 32-bit number inputFileSize into 4 bytes stored to tempByte[] in reverse order. It is similar totempByte[0] = (inputFileSize >> 24) & 0xff;tempByte[1] = (inputFileSize >> 16) & 0xff;tempByte[2] = (inputFileSize >> 8) & 0xff;tempByte[3] = inputFileSize &...
22 May 2017 by Rick York
The usual technique for obtaining the spectrum of a signal to use a Fourier transform, most often the FFT. There is one example program at this page[^]. By the way, you might prefer to include math.h with the macro _USE_MATH_DEFINES defined. That file has definitions of most common...
5 Jul 2017 by Dave Kreskowiak
SSRS cannot play sounds, that's not it's job. Since the report is just HTML, you can embed javascript in the report to play the sound. Something like this example[^] that displays an alert box.
23 Nov 2017 by Kenneth Haugland
This is quite a complex task you are setting out to do, and you have still not explained in exact detail what you want. So my advice to you is to implement an FFT algorithm that you know works, then try and implement the code you want. If you get stuck you can improve your question. But you...
4 Dec 2017 by Jochen Arndt
Upon each action you are creating a new PausablePlayer instance. If you have started playing and activate then another button, that will use the new instance and not the one that has been used to start playing. You have to use a single global PausablePlayer instance instead (like your...
7 May 2022 by Jackson Jiang
Introduction to and development journey of a real-time transcription function
26 Sep 2022 by Dave Kreskowiak
That's a lot of code just to do this: byte[] buffer = File.readAllBytes(filepath); Yeah, I get it. The entire file is going to be pulled into memory and could run the machine out of RAM. But for a test project just to learn how to parse the...
27 Aug 2020 by Gen1us2k
Choose how to build your own solution for implementing Audio/Video Calls using WebRTC
6 Aug 2010 by biawak
hi.. my name temy okDear Fread I want to ask programing in VC++ about DSP signal , that i just begin withusing simple voice input mic on PC . Signal data I/O audio will convert with the other stable frequency (just like FM ) ,or Ultrasound carier frequency reversed to filtered ...
20 Aug 2010 by Sandeep Mewara
It looks like you want to ask this question to an author related to his/her article. I would suggest you to please use the forum present at the end of the article in order to reach author and get quick response. Rarely you will find authors reading this forum. Please post the same at the...
24 Sep 2010 by ryan20fun
Hi all, this is the first time post so fotgive me if I make a mistake,I would really like to know how to use directsound and directmusic in my game,As I. Am going to be playing sounds for gunshots etc and music,But I don't know how and I can't find an awnsour by using googleThanks in...
14 Oct 2010 by greenn54
hi i want to record audio from mic. if bitwBitsPerSample set to 8, it works perfectly, but when it's set to 16, the record file contain horrible noise, how can i solve this problem? source code;#include #include #include #include #include...
19 Oct 2010 by Be Yourself
Try reducing the WAV_SMP valueWhich is the samples per second ..:cool::cool::cool:
27 Nov 2010 by Mike Cor
I am looking for a .NET library and some direction into how I can compare 2 or more audio files to determine if they are the same even if in different formats (mp3 128CBR vs. 192 VBR,etc). I assume I need some kind of spectrum/frequency analysis. I would think I have to allow for...
28 Dec 2010 by greenn54
hi! i want to record audio from microphone. but i couldnt record audio correctly. my program is below. can anyone say what is my wrong?record is a buffer which is have audio data.void saveRecord(short *record){ FILE *f; int bitsPerSample = 16; int subchunk1size = 16; ...
28 Dec 2010 by tanakahitori
int sampleRate = 44100;fwrite((char*) &sampleRate, 1, 4, f); int byteRate = sampleRate*numChannels*bitsPerSample/8;fwrite((char*) &byteRate, 1, 4, f); int subchunk2size = bufnum * numChannels;fwrite((char*) &subchunk2size, 1, 4, f);I think problem it is same with answer1 ,...
28 Dec 2010 by greenn54
when i changed them what you suggest it results run time error;void saveRecord(short *record){ FILE *f; int bitsPerSample = 16; int subchunk1size = 16; int numChannels = 1; //int subchunk2size = size *numChannels; int subchunk2size = bufnum * numChannels; ...
28 Dec 2010 by tanakahitori
int bitsPerSample = 16; fwrite((char*) &bitsPerSample, 1, 2, f); //if you think sizeof(int) = 4 bytes //why you still only wrote 2 bytes for "bitsPerSample" and please tell me more where is your problem? you couldnt play the buffer after the recording is ready? or you cann't...
28 Dec 2010 by greenn54
in my project winmm functions are recording audio with buffersize. and i combine them in record array. and i want to save this total audio data in a wav file. my problem is its record but not correct data. its playing differt noises.
6 Jan 2011 by Slacker007
You probably already saw these then:See here[^]and here[^]and here[^]
9 Jan 2011 by nomani
can u suggest me how to compare two audio files orhow can i get the time series values of audio filelike the values of samples of audio file(mp3 format)???how can i get them , using c# or any other languagemy email id is knomix@gmail.comwaiting for your kind reply thanks :doh:
9 Jan 2011 by Kasson
Hope This[^] will give an idea.
21 Feb 2011 by afgkidy
I want to remove the singer's voice in audio or video files, remain the background voice of the audio.How can I implement this functionality?Could someone give me some advice?Thanks a lot.