French text to speech and the dot inside a number: version numbers, norms and English-style decimals
French writes decimals with a comma, so a dot inside a number is ambiguous: a software version, a decimal copied from an English source, a German-style thousand, or a shortened date. How our French text preparation decides, with eighteen measured examples, including the three it still gets wrong.
If you publish in French, or you publish content that gets translated into French, here is a detail that trips up speech engines constantly. French decimals use a comma (3,5) and thousands use a space (10 000). The dot has no official job inside a French number. So when one shows up, it can mean four quite different things:
- a version number: "iOS 17.1", "WCAG 2.2", "release 1.2.0";
- an English-style decimal: "3.5 tonnes", copied from a wire story or a translated press release;
- a German-style thousand: "10.000 personnes", "2.500.000 habitants";
- a shortened date or time: "le 12.10" (12 October), "de 14.07 à 21.00".
The digits alone do not say which one it is. A speech engine that guesses will sometimes say "three point five tonnes" in the middle of a French sentence, or read a version number as a decimal.
This is not a theoretical problem. When we went through our own production content, forty-nine French articles contained at least one of these, including every one of our release notes. Before the rule described below, "la 1.2.0" came out as "la un.2.0": the voice engine received a half-converted word and pronounced it as best it could.
How the rule decides
WeDispatch's French text preparation does not guess. It looks at what surrounds the number, and it gives up when the context is not enough. That is a deliberate stance, explained more broadly on our French text to speech page: a confident wrong reading does more harm than an honest hesitation.
The cues are simple to state:
- a name in front ("iOS", "WCAG", "OAuth", "Android", or the word "version") makes it a version number, read with "point";
- three or more groups ("1.2.0") can only be a version, unless they have the shape of a German thousand ("2.500.000");
- a zero after the dot ("2.0", "4.0") is a version even with no name in front, since nobody writes a zero decimal;
- three digits after a single dot, followed by a word ("10.000 personnes") is a German-style thousand, because French journalism practically never writes an English decimal that way;
- one digit after the dot, followed by a word ("3.5 tonnes") is a decimal, read with "virgule", the French word for the decimal comma;
- a dot in front of a quantity ("4.25 %", "2.5 millions") is converted to the French form.
Eighteen phrases, measured
Here is what comes out today when each French phrase goes through the text preparation, which is exactly what the voice engine then receives. The output is in French, as the listener will hear it.
| Written | Sent to the engine | Result |
|---|---|---|
| iOS 17.1 | iOS dix-sept point un | correct |
| WCAG 2.2 | WCAG deux point deux | correct |
| OAuth 2.1 | OAuth deux point un | correct |
| Android 14.0 | Android quatorze point zéro | correct |
| le Web 2.0 | le Web deux point zéro | correct |
| l'industrie 4.0 | l'industrie quatre point zéro | correct |
| la version 1.2.0 | la version un point deux point zéro | correct |
| le moteur 1.2 PureTech | le moteur un point deux PureTech | correct |
| 3.5 tonnes | trois virgule cinq tonnes | correct |
| 2.5 millions de vues | deux virgule cinq millions de vues | correct |
| 4.25 % | quatre virgule vingt-cinq pour cent | correct |
| 10.000 personnes | dix mille personnes | correct |
| 2.500.000 habitants | deux millions cinq cent mille habitants | correct |
| la norme ISO 27001 | ISO vingt-sept mille un | correct |
| 1.200 sans explication | mille deux cents | likely, not certain |
| le 12.10 au soir | douze.10 | wrong |
| de 14.07 à 21.00 | quatorze.07 à vingt et un.00 | wrong |
| un score de 0.75 | zéro.75 | wrong |
The last three rows are current limits, and we would rather show them than hide them. In "le 12.10 au soir", nothing tells the rule whether the writer meant 12 October or 12:10. In "0.75", the rule will not take a two-digit decimal with no quantity after it, for fear of mistaking a date. In all three, the rule steps back and the engine receives a half-converted number. What the listener hears is then not guaranteed.
The "1.200" row deserves a note too. It is read as one thousand two hundred because a lowercase word follows, which is nearly always right in a French news text. If the author actually meant one point two, it will be wrong, and no rule can know that.
What the reading sheet shows, and what it misses
The reading sheet lists, before any audio is produced, the passages that will be said differently from how they are written. For "iOS 17.1" it files "17.1 → dix-sept point un" under versions. For "le 12.10", however, it only lists "12 → douze" as an ordinary number and does not flag it as doubtful. That is a known gap: today the sheet does not detect a dotted number left half-converted. These cases still need a human read, especially in text that came from a foreign source.
What to write instead
The reliable fix is to write these numbers the French way, which also helps people reading the page:
- a date: "le 12 octobre" or "le 12/10", which the date rules handle;
- a time: "14 h 07", never "14.07";
- a decimal: "0,75", "3,5 tonnes";
- a thousand: "10 000 personnes".
Version numbers keep their dot: that is their normal form, and the rule reads them the way people say them. The trouble almost always comes from translated or pasted text, which is covered in detail in the article on French text translated from English. For other number formats (times, percentages, ordinals), the general table is in reading numbers aloud in French.
Give your articles a voice with WeDispatch
This blog is itself voiced by WeDispatch. Curious how it sounds on your content?
Book a demo