PDA

Click to See Complete Forum and Search --> : Sound


comitsi
Jul 2nd, 2001, 08:38 AM
I would like to record voice and save in .wav format in a specified directory as well as play the file back again. Any pointers on how to do this in VB? Are there any commercially available components?

TheBao
Jul 2nd, 2001, 06:14 PM
You can use the Multimedia MCI Control

Private Sub File_Open()
MMControl1.Command = "close"
MMControl1.DeviceType = "WaveAudio"
MMControl1.FileName = "c:\temp\" & "Test.wav"
MMControl1.Command = "open"
End Sub

Private Sub Form_Load()
File_Open
End Sub

Private Sub MMControl1_RecordClick(Cancel As Integer)
MsgBox "Start recording"
End Sub

Private Sub MMControl1_StopClick(Cancel As Integer)
MsgBox "Stop playing/recording"
End Sub

comitsi
Jul 8th, 2001, 06:52 AM
Hi TheBao


Thanks a lot for the reply. Yes it works sorry for the delay.

I have another question, the sound quality of the recording is very poor i.e noicy and also at very low amplitude.

Are there any tips to improve the quality fo recording and play?

Can you suggest me any commercial or freeware which can give me good quality recording.

Thank you once again

comitsi