I am running the following script against a test.wav file.
' Wave Converter
Set objArgs = WScript.Arguments
For I = 0 to objArgs.Count - 1
filepath = filepath & objArgs(I) & " "
Next
' Set Mp3Settings = CreateObject("dMCScripting.Mp3Settings") ' Create Mp3 Object
' Call Mp3Settings.Set (128, 44100, 0, 0) ' 160kbps 44.1Khz Stereo CBR
' Create dMC Object
Set dMC = CreateObject("dMCScripting.Converter")
' A Returned Compression Codec can be passed onto GoConversion
cc = dMC.GetCompressions(2) ' Return a Compression Codec (position 0)
' Set My options (Volume norm off, ID Tag Preservation On, No delete Source files)
dMC.VolumeNormalize = False
dMC.PreserveTags = True
dMC.DeleteSourceFiles = False
' Puts converted file into same folder
dMC.ConvertToFolder = False
' Add My Files to Convert
Call dMC.AddFromFile(filepath)
' Convert To Wave (No option page, Want Overwrite page, Want finished, Want Errors)
Call dMC.GoConversion("Wave", True, True, False, False)
I get the following error.
Support for the audio type '.wav' might be obtained at 'Codec Central' ....
Does anyone know how to fix this error?
Thanks
' Wave Converter
Set objArgs = WScript.Arguments
For I = 0 to objArgs.Count - 1
filepath = filepath & objArgs(I) & " "
Next
' Set Mp3Settings = CreateObject("dMCScripting.Mp3Settings") ' Create Mp3 Object
' Call Mp3Settings.Set (128, 44100, 0, 0) ' 160kbps 44.1Khz Stereo CBR
' Create dMC Object
Set dMC = CreateObject("dMCScripting.Converter")
' A Returned Compression Codec can be passed onto GoConversion
cc = dMC.GetCompressions(2) ' Return a Compression Codec (position 0)
' Set My options (Volume norm off, ID Tag Preservation On, No delete Source files)
dMC.VolumeNormalize = False
dMC.PreserveTags = True
dMC.DeleteSourceFiles = False
' Puts converted file into same folder
dMC.ConvertToFolder = False
' Add My Files to Convert
Call dMC.AddFromFile(filepath)
' Convert To Wave (No option page, Want Overwrite page, Want finished, Want Errors)
Call dMC.GoConversion("Wave", True, True, False, False)
I get the following error.
Support for the audio type '.wav' might be obtained at 'Codec Central' ....
Does anyone know how to fix this error?
Thanks
Comment