Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

recording from soundcard output with tmediaPlayer

Status
Not open for further replies.

stowelly

Programmer
Nov 8, 2004
5
US
ok im building a program which will let the user open and play a sound file... this works fine

but what i want to be able to do with it is allow the user to record a 30 second clip of this audio and save it as a seperate .wav. now this works fine if they have the output of soundcard going into the microphone, but not every user is going to be capable of that (i can only do it due to my pc going through a DJ mixer).


also is there any way of saving this clip as an mp3

thanks alot
 
You will need to convert the wav to mp3. See if these sites help:


James P. Cottingham
-----------------------------------------
To determine how long it will take to write and debug a program, take your best estimate, multiply that by two, add one, and convert to the next higher units.
 
cool thanks alot, any idea about actually recording the sound from the sound card or letting the user choose a time and having it extract 30 seconds of sound from that point onward??
 
Q: [A]ny idea about actually recording the sound from the sound card?
A:You say you can record "the output of soundcard going into the microphone". Are you using the TMediaPlayer component? If so, you should be able to select which device to use. If you are using something else, you will have to look at that component's documentation.

Q: [L]etting the user choose a time and having it extract 30 seconds of sound?
A: If I understand you correctly, you want to let the user set a time in your program. When the time is up, your program will record 30 seconds of sound. I don't know how involved you want to go, but you would get use a couple of TTimer components.

The first timer would poll the system clock every minute. If the system clock equals the time the user set, the program opens the recording mechanism and sets the second timer. After 30 seconds the second timer would stop the recording.

James P. Cottingham
-----------------------------------------
To determine how long it will take to write and debug a program, take your best estimate, multiply that by two, add one, and convert to the next higher units.
 
Q: [A]ny idea about actually recording the sound from the sound card?
A:You say you can record "the output of soundcard going into the microphone". Are you using the TMediaPlayer component? If so, you should be able to select which device to use. If you are using something else, you will have to look at that component's documentation.


yeh the tmedia component only seems to let you choose between a type of device i.e wav video cd etc etc, any idea how to set this to the soundcard output i couldnt find anything in the docs


thanks alot
 
When you want to use the sound card, exactly how are trying to record sound? For example, my sound card has inputs for a mic and external sound. Once the sound card is set up in Windows, my media player sees them.



James P. Cottingham
-----------------------------------------
To determine how long it will take to write and debug a program, take your best estimate, multiply that by two, add one, and convert to the next higher units.
 
im trying to play the sound with one media component and record the sound with another

but i have to avoid the user needing to have a cable going from soundcard out to line in or microphone

i.e just record whatever is playing
 
Well, see if these components are what you need then:
James P. Cottingham
-----------------------------------------
To determine how long it will take to write and debug a program, take your best estimate, multiply that by two, add one, and convert to the next higher units.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top