Starting Microphone failed. result=25 (Unsupported file or audio format.)

Hi Guys,

I seem to be getting this error while starting to record from a Microphone.

Starting Microphone failed. result=25 (Unsupported file or audio format.)

Couldn’t find any help on it online.Recording code is fairly standard

audio.clip = Microphone.Start(selectedDevice, true, 10, maxFreq);//Starts recording

Works fairly fine on most computers. Having an issue with a couple of laptops, Windows based. Any idea why this might occur?

Thanks in advance.

1 Like

Anybody?

1 Like

If you have a Mac CPU you can always record it on Garage Band, copy the sound (Command + C or file Command C) put it on Text Edit, (Command + V) save it to downloads, create a new component, (on the object you want the sound to be on which could be the camera) click on audio, then audio source, and you will see audio source in the inspector.Then drag the sound to the audio clip, (in the audio source) you can edit you sound their to make it activate when you want it to, to an extent. I hope this helps.

If you have a PC see if you can record it on something else. Copy the sound using ctrl + c and paste ctrl + v I dont know if their is something like text edit on or for a PC but you can look. And save it on documents instead of downloads, the rest is the same.

I get the same problem… And I don’t think BlastOffProduct is too sure of what he’s talking about… Help pls?

1 Like

Try to set your default recording device in sound settings

Your current active microphone is probably not your default microphone, therefore when the voice tries to get the default microphone, it isn’t active. To fix - set your current active microphone to the default.

As I happened to stumble this old thread while having same error, I found a fix and thought to add my solution. Maybe somebody browsing the interwebs finds this useful. I did what @McSwan mentioned “choosing default mic” but…

In my case I have 2 microphones. One sound card, one web cam microphone.

For some reason sound card microphone did not work.

I changed web cam microphone to be default and voice started to work.

1 Like