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?
Printable View
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?
You can use the Multimedia MCI Control
Code: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
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