diff --git a/src/room/AudioPreview.jsx b/src/room/AudioPreview.jsx
index 1472695..f0b4bdf 100644
--- a/src/room/AudioPreview.jsx
+++ b/src/room/AudioPreview.jsx
@@ -53,8 +53,12 @@ export function AudioPreview({
onSelectionChange={setAudioInput}
className={styles.inputField}
>
- {audioInputs.map(({ deviceId, label }) => (
- - {label}
+ {audioInputs.map(({ deviceId, label }, index) => (
+ -
+ {!!label && label.trim().length > 0
+ ? label
+ : `Microphone ${index + 1}`}
+
))}
{audioOutputs.length > 0 && (
@@ -64,8 +68,12 @@ export function AudioPreview({
onSelectionChange={setAudioOutput}
className={styles.inputField}
>
- {audioOutputs.map(({ deviceId, label }) => (
- - {label}
+ {audioOutputs.map(({ deviceId, label }, index) => (
+ -
+ {!!label && label.trim().length > 0
+ ? label
+ : `Speaker ${index + 1}`}
+
))}
)}