Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

record system sound (stereomix) to a file


iam trying to record sound from an activex WMP control playing an internet radio stream, and because no simple way to do it, i decided to record the system sound or the so called "what you hear" (the stereomix, which is disabled in many PCs).

so, how can i record system sound and save it an mp3, wav... file, without enabling stereomix, or how to enable it programatically, without user interaction.

i have no experience with audio applications, so please dont say try

  1. BASS - www.un4seen.com
  2. NewAC - symmetrica.net/newac/
  3. WavePlayer - www.delphiarea.com/products/delphi-components/waveplayer/

without giving me code exemple, cause i already tried to understand how to use, but, if i did i wouldnt askin you here.

i'am new here, and this is my first question
[i hope i get good answers]

THANKS IN ADVANCE :]

like image 892
AgentAmine Avatar asked Jan 18 '12 00:01

AgentAmine


1 Answers

As we came up (in the question comments) with the conclusion that it might be better to record the radio stream instead of recording from the soundcard:

Have a look at Indy, Synapse or ICS. (Delphi comes with Indy out of the box)

There should be examples for each of these components that show how to read data from a HTTP/TCP server.

Be aware that the data is probably not just plain MP3 or WMV, but there is usually some kind of framing that inserts title information and divides the sound data into chunks.

There are many streaming servers (i.e. Shoutcast, Icecast and others) out there that have different ways to encode the audio data.

You should first find out what kind of streaming server your internet radio is running. The first thing that happens when you send a HTTP GET request is usually a response that has some identification information.

You could also end up with just a playlist file that has the real URL inside.

PS: You might want to search for (or ask) additional questions on SO to get more information about the topics I mentioned.

Hope that helps.

like image 134
Jens Mühlenhoff Avatar answered Nov 15 '22 03:11

Jens Mühlenhoff