The scenario: a queue token is not an ordinary number
A display may show A012 while a generic text-to-speech engine interprets the digits as twelve or treats the whole token as a word. Leading zeros and letter groups identify a queue item, so the application needs a deliberate spoken-text representation. Generating that representation is one step before choosing a voice and checking whether people can understand the actual sound.
The pinned Movo-X display separates token spelling, sentence templates, language ordering, locale selection and audio playback. Twelve existing JVM cases passed against synthetic tokens, injected voice availability and generated sample arrays. They establish selected text and helper decisions without playing a sound or evaluating a real language voice.
Preserve leading zeros and distinguish letter groups
The selected speller handles ASCII digits individually and groups them separately from letters. Existing examples preserve A012 as a letter followed by zero, one and two, handle a lower-case input letter and retain the repeated zeros in another token. Other fixtures cover multiple letters, separators, trailing letters and blank input.
This is a specific token-to-text policy, not general number-to-words conversion or arbitrary Unicode digit support. A queue service should define the input token alphabet and length independently. These output-string cases also do not prove that a listener can distinguish every letter, digit or similar-sounding token over a particular speaker.
Separate digit vocabulary from the surrounding phrase
Selected fixtures check English and Malay digit words and representative Chinese, Tamil, Urdu and Hindi outputs. The source contains additional vocabulary tables. An unknown language in the tested example falls back to English digit words rather than making up a new transcription.
The primary-language helper normalizes selected language tags for vocabulary lookup, while sentence wording is selected separately. A correct string comparison shows that the implementation follows its recorded table; it is not a linguistic review of every table entry. Human review should cover the supported vocabulary, punctuation, accents and the actual voice used for each operating location.
Make remote-template precedence inspectable
The phrase helper first considers the exact configured language key, then its primary-language key, then a built-in primary-language template and finally the English default. An existing fixture supplies an English template and separately observes the selected Malay and Chinese fallbacks. Token and room substitution remain string construction, not a remote script or generated clinical instruction.
An implementation handover should record who may change the remote template and how those edits are reviewed and delivered. These helper cases do not exercise administration, authorization, configuration versioning or server/client template agreement. Review those boundaries before assuming a locally valid phrase means every deployed display uses the intended wording.
Do not drop the token when a template is incomplete
A selected fixture supplies a template without a token placeholder. The helper prefixes the spelled token before the room phrase rather than silently omitting the queue identifier. Separate roomless examples return the selected token-focused wording instead of a dangling request to go to an absent room.
Those examples cover the intended normal template shapes. They do not validate every arbitrary arrangement of placeholders, a misspelled variable or a contradictory room label. Keep approved template fixtures alongside localization review and test actual remote configurations, rather than treating one fallback as a general-purpose template validator.
Retain language order without confusing text and voice fallback
The script fixture requests Malay, English, Chinese and a repeated Malay entry. The resulting lines preserve the selected order and drop the literal duplicate. Source defines an English line when the language list is empty. The script’s decisions are distinct from whether an installed engine can speak each resulting line.
The locale helper constructs ordered candidates and selects the first accepted by an injected availability function. Existing cases simulate a box with English and Chinese voices, an unavailable Malay voice and selected explicit regional tags. A separate fixture makes availability checks throw and observes an unavailable result instead of treating the exception as voice success.
Treat cross-language locale fallback as a product decision
The selected locale candidate list includes regional variants and, for certain Malay/Indonesian requests, an alternate language candidate. An existing fixture checks that a configured Malay request can select an injected available Indonesian locale. That is a recorded fallback policy, not proof that the original phrase will sound natural in that voice.
A deployment plan should distinguish preferred voice, fallback voice and unavailable language. Human acceptance must decide which fallbacks are appropriate for the intended listeners. Neither a non-null Java Locale nor the helper’s successful selection establishes pronunciation quality, installed offline capability or the absence of a vendor voice download.
A generated chime is an audio artifact, not a listening result
The selected chime helper synthesizes sample arrays with different note patterns for a first call and a recall. Its existing case checks nonempty output, a longer recall array and different note definitions. This proves selected data-generation properties; it does not show a working AudioTrack, connected speaker or recognizable recall cue.
The inspected Android player source attempts a chime before its language lines, handles missing voice choices and bounds selected waits. Those device APIs were not invoked by these JVM cases. Actual volume, clipping, intelligibility, background noise, hearing access and user recognition remain part of hardware and human acceptance.
A practical multilingual-display release package
Keep the twelve local cases as a reproducible software contract. Add reviewed fixtures for each approved remote template and real supported token shape, then inspect configuration delivery and missing-language reporting. Use controlled failure cases for unavailable engines, failed language checks and incomplete playback without claiming that an attempt means a phrase was heard.
On approved display hardware, record synthetic-token listening results for each language, preferred/fallback voice and first-call/recall cue. Include people who can assess the intended languages. For a CTO commissioning a public clinic display, this separates deterministic text construction from device capability and listener understanding, giving each release decision its own evidence.
Compare the reviewed boundaries
Text correctness does not replace listening acceptance
On smaller screens, scroll across to compare every column. Keyboard users can focus the table and use the arrow keys.
| Boundary | Selected evidence | Independent acceptance |
|---|---|---|
| Token spelling | Leading zeros and representative notation strings | Supported token alphabet and intelligibility |
| Templates | Selected precedence and missing-placeholder examples | Approved remote wording and configuration delivery |
| Voice selection | Injected availability and exception fixtures | Installed voices and linguistic suitability |
| Chime and speech | Generated arrays and player source | Actual speaker, room and listener outcomes |
Illustrative control flow
Pseudocode summarizing the decision boundary. It is not copied production code or a deployment instruction.
spelled = spell_supported_queue_token(token, language)
text = fill_reviewed_template(spelled, optional_room)
locale = choose_available_candidate(language)
if locale is available:
attempt_speech(text, locale)
# Deterministic text and locale selection do not establish pronunciation or audibility.About this engineering series
Written by Omer Muneer Qazi from a review of Movo-X implementation and dated engineering records. This article explains source behaviour and historical observations; current production, clinical outcomes and store availability require their own verification. Examples are synthetic and proposed test cases are identified as such.
Explore the Movo-X engineering series → · Related implementation experience →
Discuss a similar engineering problem
Send the workflow, current platform and the decision your team needs to make. I can help define an implementation or review scope with concrete acceptance evidence.
Discuss your project on WhatsApp ↗