Chanh Trinh

Embed

The say-the-name widget

One snippet that stops a name being mispronounced on anyone's page.

The say-the-name widget

What it is

A small card that reads a Vietnamese name aloud in the visitor's own browser, with the Vietnamese spelling and a link back here. Publish it on a personal site, a team page or an event page, and the name is never mispronounced again.

Put it on your page

Copy this snippet and paste it into your HTML. It works anywhere that allows an iframe — a blog, a staff directory, a conference profile.

<iframe src="https://chanhtrinh.com/embed/card.html?g=Chanh&f=Trinh&v=Tr%E1%BB%8Bnh" width="380" height="190" style="border:0;max-width:100%" title="Chanh Trinh — say the name"></iframe>

Live preview

This is the card exactly as it will render:

Change the name

Three parameters: g for the given name, f for the family name, v for the Vietnamese spelling with its tone mark. Everything is URL-encoded, so Trịnh becomes Tr%E1%BB%8Bnh.

Why a widget

Because the people this helps most are the ones with their own page — a faculty profile, a clinic page, a conference bio. A card that fixes the pronunciation travels further than an article about pronunciation, and every placement links back.

What it does not do

It does not record anyone, does not set cookies, and does not load anything from a third party. If the visitor's browser has no speech engine, the button says so rather than failing silently.

Who it is for

The widget is for anyone who has to say the name out loud and wants a second opinion before they do: a receptionist taking a booking, a registrar at a counter, a teacher on the first day, a conference organiser printing badges. It is deliberately small because the moment it is needed is a moment when nobody has time to read a page.

It is also for people who carry the name and are tired of correcting the same two syllables. Handing someone a button is easier than repeating yourself.

Running it without a server

The whole thing is a single block of markup. There is no account, no key and no call back to this site at run time, so it keeps working on an intranet or on a page that is opened from a disk. If the styling clashes with the host page, the colours are set in one place and can be changed without touching the logic.

Nothing is logged. Nothing is stored. The visitor presses a button and hears a voice; that is the entire transaction, which is also why it can be embedded anywhere without a consent banner.

What it will not do

It will not tell you which of several people with the name you are looking at, and it will not settle a spelling. Those are directory questions, and the directory answers them on other pages. The widget only fixes the smallest and most repeated problem: the sound.

Accessibility and the spoken sample

A recorded sample solves a problem that text cannot: an assistive technology can read a spelling but cannot reliably produce the sound a family expects. Where a screen reader announces the name as an English word, the listener hears something that is not the name at all, and no amount of correct spelling fixes that.

The audio is therefore the accessible half of the widget rather than an extra. It should be reachable by keyboard, labelled so that a screen reader announces what pressing it will do, and it should not autoplay, because a sound that begins without a request is a barrier rather than an aid.

Where to place it on a page

Placement follows the moment of use, not the aesthetics of the layout. On a booking form it belongs next to the name field. On a school page it belongs with the staff list. On a page that explains the name it belongs wherever the reader first wonders how to say it.

Placed at the top of every page it becomes decoration and gets tuned out. Placed at the single point where someone has to speak the name, it gets used.

Keeping it honest

The sample is one voice with one accent, recorded once. It is a reference, not the reference: a speaker from another region will sound different and will not be wrong. The page should say so, and this one does, because the quickest way to make a useful tool useless is to present it as the only correct answer.

Chanh Trinh logo Chanh Trinh banner — Las Vegas, Nevada Chanh Trinh image

Look and watch