Results 1 to 3 of 3

Thread: Sound

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    2

    Question Sound

    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?

  2. #2
    Fanatic Member
    Join Date
    Jan 2001
    Location
    Vietnam
    Posts
    613
    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    2

    Thanks

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width