| | |
How to convert wav to mp3 using VB?
![]() |
•
•
Join Date: May 2004
Posts: 4
Reputation:
Solved Threads: 0
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
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
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)
Private Sub cmdSave_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles cmdSave.Click Dim sName As String counter = counter + 1 sName = "Test" & counter WaveSaveAs((VB6.GetPath & "\" & sName & ".wav")) cmdRecord.Enabled = True cmdStop.Enabled = True cmdPlay.Enabled = True cmdSave.Enabled = False cmdReset.Enabled = False Exit Sub 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
•
•
Join Date: Jul 2004
Posts: 17
Reputation:
Solved Threads: 0
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.
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.
Try this link http://www.vbcodesource.com/downloads/encoderex.zip
Mark Nemtsas
Time and Billing Software - Time Tracking Software - Roller Shutters - Roller Blinds -
Baby Books
Time and Billing Software - Time Tracking Software - Roller Shutters - Roller Blinds -
Baby Books
•
•
Join Date: Aug 2005
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by mnemtsas
Try this link http://www.vbcodesource.com/downloads/encoderex.zip
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
![]() |
Similar Threads
- Convert .wav file into bytes (HTML and CSS)
- WAV To MP3 Converter with Error Checking (Windows NT / 2000 / XP)
- command line utility to convert wav to mp3? (Windows Software)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: printing a form
- Next Thread: sql query updating problem
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





