Voice widgetComing soon
Let visitors talk to your avatar by voice, in the browser, with spoken answers.
Coming soon
Voice is not available in production yet. This page describes how it will work; ask Tolky support about early access.
With voice, the visitor starts a call from the Tolky chat and talks to the avatar out loud. The avatar answers by voice, in the same conversation as the text messages, and the conversation appears in Conversations.
During a call:
- Links and images in the answer appear on the screen instead of being read aloud.
- The visitor can type numbers, e-mails or document numbers that are hard to dictate. Typed text is used exactly as written.
- The visitor can mute the microphone or end the call at any time.
Before you start
- Voice enabled on your Tolky account. Voice is a separate module: without it, the chat does not offer the call button. Ask Tolky support to enable it.
- To offer voice on your own website: the site served over
httpsand its domain authorized by Tolky. - For the visitor: a microphone and permission for the browser to use it.
Start a call
Open the chat
Open your avatar's chat and send a first message. The call button only works once a conversation exists.
Call
Click Call. The status shows Connecting… and then Calling….
Allow the microphone
When the browser asks, allow microphone access.
Talk
When You can speak — tap to end appears, speak normally. The avatar answers by voice.
End
Click End call to hang up.
Test
Make a short call, ask something the avatar knows and hang up. Open Conversations: the call appears in the same conversation as the text messages.
Common problems
| Message | What to do |
|---|---|
| "Send a message before starting a call" | Send a text message first, then click Call. |
| "Allow microphone access to use voice." | Allow the microphone in the browser's site settings and try again. |
| "No microphone found." | Connect a microphone, or check that the system recognizes it. |
| "The microphone is in use by another app." | Close the other app that uses the microphone (another call, a recorder) and try again. |
| "Voice unavailable in this browser" | Use an up-to-date desktop or mobile browser. |
| "Call dropped" | Click Reconnect. If it happens often, check the network (see Advanced). |
| "The AI didn't pick up. Try again." | Wait a few seconds and click Call again. |
| The Call button does not appear | Voice is not enabled for your account. Ask Tolky support. |
How voice worksTechnical details
- Audio travels over WebRTC through LiveKit. Each call opens its own room, tied to the conversation.
- Tolky transcribes the visitor's speech, runs the avatar and turns the answer into speech. The first part of the answer is spoken as soon as it is ready; a short complement may follow when more information arrives.
- Typed text during a call goes to the avatar as an exact turn, not as dictation.
- Browsers only give microphone access on secure pages (
https). - When the chat runs inside an
<iframe>on your site, the iframe needsallow="microphone", and your site's domain must be authorized by Tolky. - Corporate networks: the call needs outgoing WebRTC traffic and secure WebSocket (
wss) connections to Tolky's voice servers. If calls drop or never connect behind a firewall, ask Tolky support for the hosts and ports to allow.