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

COMPONENT FOR VOICE RECORDING!

Status
Not open for further replies.

selena1

Programmer
Apr 7, 2003
69
Hi!

I've been looking on the internet for some time for free component which with I could be able to record voice from microphone from my application made in Delphi 7.

Can anybody get me same info abot this or some useful links for download?

Thanks!
 
Hi.
Try this snippet.
(And please, Mind your Caps lock)

Code:
uses
  MMSystem;

procedure TForm1.Button1Click(Sender: TObject);
begin
  // Record
  mciSendString('open new type waveaudio alias anyname', 0, 0, 0);
  mciSendString('record anyname to 20000', 0, 0, 0);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  // Stop
  mciSendString('stop anyname', 0, 0, 0);
end;

procedure TForm1.Button3Click(Sender: TObject);
begin
  // Play
  mciSendString('play anyname from 1 wait', 0, 0, 0);
end;

procedure TForm1.Button4Click(Sender: TObject);
begin
  // Save
  mciSendString('save anyname c:\wave.wav', 0, 0, 0);
  mciSendString('close anyname', 0, 0, 0);
end;

KungTure-RX.jpg

//Nordlund
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top