Voice Avatar Microphone Not Working? Check the Page Before the Model
The avatar loads. Its face animates. The Start button responds. But when a visitor speaks, nothing happens.
Before changing prompts or switching speech services, find out whether the page obtained microphone access at all. A failure before audio capture needs a different investigation from a conversation that receives sound but produces the wrong answer.
This guide gives developers a practical diagnostic workflow for browser-based voice experiences, especially those embedded in another website. It describes browser behaviour and proposed checks, not verified capabilities or test results for an Avatarium release.
Record the smallest useful reproduction
Write down the browser and version, device, page URL, whether the avatar is embedded and what happened after Start. Include whether a permission prompt appeared and the exact error name reported by the application. Avoid collecting a visitor's audio or conversation content just to investigate an access problem.
Use one synthetic test phrase and the same device while comparing two cases. If your integration supports both, try its approved standalone page and its embedded version. A difference between them is a clue about the page environment; it does not yet identify the cause.
A useful report says, “The standalone page requests permission; the embedded page returns an access error before a prompt.” “Voice is broken” gives the next person much less to investigate.
Check capture before conversation
Browser microphone capture commonly uses getUserMedia(). MDN documents that it requires a secure context and user permission. The request can also remain pending if the user ignores the prompt. An access error can have several causes, so it is not proof that the visitor clicked Deny. MDN: getUserMedia
For your own application, identify the last confirmed stage: Start was pressed, capture was requested, a stream was obtained, or a later conversation step began. Use existing diagnostics where available. Do not make the screen say “Listening” merely because a button was clicked.
On a public website, check the actual loaded address and secure-context status rather than assuming a redirect or preview link behaved as expected. Keep local development observations separate from the deployed page: success in one environment does not establish success in the other.
If it is embedded, inspect the containing page
A page can restrict microphone access through Permissions Policy. MDN's microphone-directive reference says that a blocking policy causes capture requests to reject with NotAllowedError; it also flags browser-support limitations. Check compatibility for the browsers you intend to support rather than assuming identical policy behaviour everywhere. MDN: microphone Permissions Policy
Inspect the response headers delivered to the containing page and the iframe element the browser actually received. Compare the deployed result with your intended configuration, then make one scoped change at a time in an authorised test environment.
The iframe's allow attribute does not override a more restrictive policy from the containing page. MDN describes it as an additional restriction on top of the response header's policy. That is why adding an iframe attribute alone may not resolve the problem. MDN: iframe allow attribute
Do not remove all restrictions or allow every origin as a troubleshooting shortcut. Identify the intended frame origin and review the narrow change with whoever owns the containing website. If the avatar sits inside several layers of embedded content, include those layers in the investigation instead of inspecting only the innermost frame.
Preserve the error name, but avoid a premature diagnosis
The browser's error helps organise the next check. MDN distinguishes missing matching devices (NotFoundError), failure to access a device despite permission (NotReadableError) and constraints that no available device can satisfy (OverconstrainedError). These are different from an access refusal. MDN: capture exceptions
Keep the diagnostic detail in a developer report. Give visitors a short explanation and a usable next step, such as checking the selected microphone or using a supported alternative contact route. Avoid blaming them for a blocked embed or asking them to change unrelated security settings.
For a controlled reproduction, change only one variable: the selected input device, a constraint requested by your code or the page context. Record the result before moving to the next variable. If the issue disappears after several simultaneous changes, you have a workaround but little evidence of which change mattered.
Give waiting and failure their own screen states
A visitor should be able to distinguish a pending permission decision from active capture and a failed request. As a design exercise, write the message for each state before changing the implementation:
| Observed state | Proposed visitor message | Check before showing it |
|---|---|---|
| Waiting for a permission decision | “Choose whether to allow microphone access in your browser.” | The request is still pending |
| Capture failed | “We couldn't access your microphone.” | A capture failure was observed |
| Capture succeeded | “Your microphone is connected.” | A stream was obtained; this does not prove conversation success |
| Visitor chooses another route | “Continue using this contact option.” | The destination exists and is usable |
These are examples to adapt, not universal browser messages. Include a way to leave a pending or failed flow. Repeatedly requesting permission without explaining what changed is unlikely to help someone understand the next step.
Retest the actual route visitors will use
Once a scoped fix is ready, repeat the original reproduction and check a first visit, a previously denied request and a visitor who leaves the prompt unanswered. Test the real containing website on the target browser and device, not only a convenient standalone preview.
Then continue past capture. Confirm that the approved test phrase reaches the intended conversation path and that Stop ends the application's session as designed. Keep those later checks separate in your report: microphone access is one milestone, not proof that recognition, response generation, playback and session cleanup all work.
For Avatarium, use the integration guidance for the environment and version you have been given. Do not copy an old widget snippet or assume development-only embedding is publicly available. Bring the exact reproduction, observed capture stage and containing-page details to the implementation owner. That turns an ambiguous “the avatar can't hear me” report into a problem the team can investigate without guessing.