No, it's not. Consider the case that you have a mic plugged in via the 3.5mm mic port on the front of the computer, instead of a USB mic. The only thing that goes over that wire is the audio data; no metadata. It could be a headset, a handheld mic, or a line in from a record player.
You can make your best guess first (e.g. might be your current method, or just assume "headset" if that's the most common), but then you should let your user configure it to work how they want it to work. This is the only definitive way to do this "correctly".