I'm resampling wav file for my web app using ResamplerDmoStream. This works fine running locally, but I'm getting a registration error when deployed to Azure:
Exception thrown = System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {F447B69E-1884-4A7E-8055-346F74D6EDB3} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
at NAudio.Dmo.Resampler..ctor()
at NAudio.Wave.ResamplerDmoStream..ctor(IWaveProvider inputProvider, WaveFormat outputFormat)
I'm using version 1.5.4 of NAudio.dll. Thanks!
Comments: this is because the DMO resampler COM object does not exist on Azure. You could try using the WaveFormatConversionStream instead
Exception thrown = System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {F447B69E-1884-4A7E-8055-346F74D6EDB3} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
at NAudio.Dmo.Resampler..ctor()
at NAudio.Wave.ResamplerDmoStream..ctor(IWaveProvider inputProvider, WaveFormat outputFormat)
I'm using version 1.5.4 of NAudio.dll. Thanks!
Comments: this is because the DMO resampler COM object does not exist on Azure. You could try using the WaveFormatConversionStream instead