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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recording Sound.

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
What should the procedures be for recording audio from a microphone at run-time using Delphi6? Will the output be saved as .wav?

 
Place a Mediaplayer on a form.
Select Devicetype dtWaveAudio.
Set AutoOpen to true.
Set Filename to an existing wav file (create with explorer/new/WaveAudio)
Place a Button with caption set to "Save" on the form. Write on its OnClick:
MediaPlayer1.Save

compile and run the Program
Press the "record"-Button
Use your microphone
Press the "stop"-Button

Press your save-button.
Now you have recorded it to your created wave-file
 
Thanks for your help!

The recording did not success when I selected the Device Type to be "dtwaveaudio", but it worked when I set it to dtAutoSelect". However, thanks a lot for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top