Safari: Safari menu → Settings… → Websites → Microphone → set this site to Allow. Then on macOS:
System Settings → Privacy & Security → Microphone → turn Safari ON (use the quick link above). Chrome (recommended): click the lock / 🎤 icon in the address bar → Microphone → Allow → reload.