Had the same issue when running Preview Canvas with Xcode 12.5.1.
Fixed it with going to System Preferences -> Sound -> Input -> Change it to Macbook Pro Microphone (Basically internal mic of your device).
Hope this helps you.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: