For websites
Widget
A ready-made practice box you add to your own pages, with no screens to build.
#What it does
- Shows a sentence, records the learner and plays an example.
- Marks every word and every sound, and shows the mouth shape for each sound.
- Light or dark: you choose, or it follows the visitor’s device.


#Set it up
- On the Overview of your console, list the websites that will show the widget and issue a widget key.
- Copy the code the console gives you and paste it into your page.


HTML
<iframe
src="https://spelly.ch/widget?pk=pk_live_…&lang=en-GB&text=The%20quick%20brown%20fox."
allow="microphone"
style="width:100%;height:560px;border:0">
</iframe>Keep allow="microphone": without it the browser will not let the widget record.
Recordings scored and model voices played in the widget use your account’s units, exactly like API calls: 1 unit per recording, 0.5 per voice.
#Options
- pk
- Your widget key. Required.
- text
- The sentence to practise. At most 100 characters. Leave it out and the learner types their own.
- lang
- Language of the sentence, exactly as the API names it: en-GB, en-US, es-ES, de-DE, fr-FR, it-IT, ca-ES. Required: en-GB is British English, en-US American English. Left out or any other value, the widget shows an error.
- theme
- light, dark or system. system, the default, follows the visitor’s device setting.
#Only on your websites
Browsers show the widget only on the websites listed for its key. Anywhere else it stays blank. Each address is exact, like https://learn.example.com: list every subdomain you use. While testing, list your local address with its port, like http://localhost:5173. You can change the list at any time, and revoking a key stops it everywhere at once.
The key is visible in your page, like any key a browser uses. The website list stops other sites from showing your widget, but someone could still copy the key into their own program. To cap what a copy can spend, each widget key sends at most 30 recordings and 60 model voices a minute; beyond that it answers 429. Your console shows each key’s last use; if one looks wrong, revoke it and issue a new one.
Questions?
Tell us what you have in mind and we will get back to you.