How to convert wav to mp3 using VB?

Reply

Join Date: May 2004
Posts: 4
Reputation: janice_2k is an unknown quantity at this point 
Solved Threads: 0
janice_2k janice_2k is offline Offline
Newbie Poster

How to convert wav to mp3 using VB?

 
0
  #1
Jul 5th, 2004
Dear gurus and members,
I am a newbie in VB and programming. I have created an exe that allows to record, play and save user's speech onto his computer. The file is saved as wav. I wonder is it possible to convert the files to mp3 format when user clicks on Save button? I use VB6 to create the MCI and currently stucked in the convertion of wav to mp3. The following is the code of my Save button

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Private Sub cmdSave_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles cmdSave.Click
  2.  
  3. Dim sName As String
  4. counter = counter + 1
  5. sName = "Test" & counter
  6.  
  7. WaveSaveAs((VB6.GetPath & "\" & sName & ".wav"))
  8. cmdRecord.Enabled = True
  9. cmdStop.Enabled = True
  10. cmdPlay.Enabled = True
  11. cmdSave.Enabled = False
  12. cmdReset.Enabled = False
  13. Exit Sub
  14.  
  15. End Sub

I would be very glad if someone could share the knowledge and expertise in this area with me. Looking forward to some replies soon.

Thanks in advance,
Janice
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 17
Reputation: cypher is an unknown quantity at this point 
Solved Threads: 0
cypher cypher is offline Offline
Newbie Poster

Re: How to convert wav to mp3 using VB?

 
0
  #2
Jul 8th, 2004
The short answer is "You can't". It *is* possible, but the MP3 format is proprietary, so if you created an MP3 you could be facing a lawsuit. There are plugins and libraries that offer MP3 export functions, but you'll probably pay quite a bit for them, since they also had to pay for a license to use the MP3 format.

I can't help you with this either, but you might consider OGG (Ogg Vorbis) format. It's a smaller file, and slightly better quality than MP3. Plus it's OGL, so it's free.
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 200
Reputation: mnemtsas is an unknown quantity at this point 
Solved Threads: 1
mnemtsas's Avatar
mnemtsas mnemtsas is offline Offline
Junior Poster

Re: How to convert wav to mp3 using VB?

 
0
  #3
Jul 13th, 2004
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 1
Reputation: dennis651 is an unknown quantity at this point 
Solved Threads: 0
dennis651 dennis651 is offline Offline
Newbie Poster

Re: How to convert wav to mp3 using VB?

 
0
  #4
Aug 8th, 2005
Originally Posted by mnemtsas
Try this link http://www.vbcodesource.com/downloads/encoderex.zip
Hi there,
I downloaded and i tried to run that but i got this message("File not found"MEncoder.dll) then i tried to register that :Regsvr32 "c:\windows\system32\MEncoder.dll") but got this message"
Loadlibrary(c:\windows\system32\MEncoder.dll)failed-The specified module could not be found
I am using windows xp but i tried on windows2000 advanced server and it was the same problem.Could you please help me ?

thanks,

Dennis
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC