How to type Hindi for text to speech

Hindi voices read Devanagari most reliably. This guide shows how to type it on any device and which small marks change how a word is spoken.

Updated

Why Devanagari works best

In Devanagari each letter stands for a known sound, so the voice does not have to guess. Hindi typed in English letters, such as "aap kaise ho", can be read more than one way. Convert it to Devanagari before you generate.

Type Devanagari on your phone

  • Android or iPhone: install Gboard, add Hindi, and choose the layout that converts English letters. Typing "namaste" gives नमस्ते.
  • iPhone without Gboard: add the Hindi Transliteration keyboard in Settings, under General and then Keyboard.
  • Check the word suggestions as you type. The first suggestion is not always the spelling you want.

Type Devanagari on a computer

  • Windows: add Hindi under Language settings and choose the Hindi Phonetic keyboard, which turns English-letter typing into Devanagari.
  • Mac: add the Hindi Transliteration input source under Keyboard settings.
  • Any browser: write on your phone and paste the text into the studio.

Check the nuqta

The dot under a letter, called the nuqta, marks sounds that came into Hindi from Persian, Arabic and English. Leaving it out changes how the word is said.

ज़रूर / जरूर
"zaroor" with the nuqta, "jaroor" without
फ़िल्म / फिल्म
"film" with the nuqta, a harder "ph" without
ख़ुश / खुश
a softer "kh" with the nuqta
पढ़ना
ड़ and ढ़ use the same dot for the flapped sound in everyday Hindi words

Chandrabindu and anusvara

The chandrabindu (ँ) makes a vowel nasal, while the anusvara (ं) often adds an "n" or "m" sound. Many people type one for the other, and sometimes the meaning changes.

हँसना / हंस
"to laugh" and "swan"

Punctuation shapes the reading

  • End sentences with a purna viram (।) or a full stop so the voice pauses.
  • Use a comma where a speaker would take a short breath.
  • End questions with a question mark so they sound like questions.
  • Put quoted speech in quotation marks.

Before you generate

  • Read the script once aloud yourself.
  • Generate one short test line containing the hardest words.
  • Fix spelling or punctuation, then generate the full script.

Related