Consonants
The remaining 18 letters of the 30 main letters are the consonants which can be classified into three types based in their strength of pronounciations:
வல்லினம்「valliṉam」 — strong character
மெல்லினம்「melliṉam」 — soft character
இடையினம்「iṭaiyiṉam」 — middle character
Let's go through each of the characters if these categories:
வல்லினம்
க்「k」 is the typical k-sound like in the English word "to cook"
ச்「c」 is a sound like the 「tch」 in patch. Another example would be the 「ch」 in the word chai
However, you will only use this pronounciation for the consonant itself and for syllables of this row that directly follow the consonant. In all other cases the sound is a regular 「s」.
Let look at a small example: பச்சை (green) will be pronounced 「paccai」 using 「tch」, but in பசை「pacai」 (glue) the 「c」 will be pronounced as an 「s」.
ட்「ṭ」 is the same sound as you know from English words like dollar
த்「t」 — This consonant is similar to the 「th」 in English. However, it is pronounced in a stronger way. Put your tounge in a position like you would do when saying "that", but then say "tat" instead.
ப்「p」 is the again a sound that you already know from English. Sounds exactly like the 「p」 in words like to keep or cap.
ற்「ṟ」 as a consonant is pronounced differently than in combination with a vowel. The consonant itself sounds like a 「t」 but all the syllable of this row sound like the Spanish rolled 「r」.
கற்க「kaṟka」 — to learn
அறை「aṟai」 — room
மெல்லினம்
ங்「ṅ」 is the first letter of the soft characters. Its pronunciation is pretty similar to the 「ng」 sound in the word thing or English. But while the consonant is easily pronounced, the syllables of this row are a bit more difficult.
I would describe it as the sound of the 「ngi」 in singing in a few English accents. To have a better explanation on how to pronounce this sound properly, have a look at the meaning of velar nasal.
ஞ்「ñ」 sounds like the 「ñ」 you might know from Spanish. In English it is similar to the 「ny」 in the word canyon. The consonant itself can also be pronouned as 「nch」 as in punch.
ண்「ṇ」 and ன்「ṉ」 are the second most difficult sounds in Tamil. Both represent the character 「n」 you know from English, but while ன் 「ṉ」 with a single curl sounds like the regular English 「n」 like in night, ண்「ṇ」 is a stronger version.
For ன்「ṉ」 like for the 「n」 in night, your tongue starts behind your teeth, but for ண்「ṇ」 you roll your tongue backwards (similar to the rolling 「r」).
Make sure that you get the difference between those two characters. A different sound can lead to an entirely different word.
For example
மனம்「maṉam」 means "mind" while
மணம்「maṇam」 is translated as "bad smell".
To make the sound a bit more complex, the syllables of ந்「n」 do sound like 「n」 as well, like the 「n」 of ன்「ṉ」. But there is an easy rule to decide which of the two characters you use when:
Except for the consonant itself, ந்「n」 the entire row can never appear within a word (unless it is a compound word that be seen as multiple words). At the same time ன்「ṉ」 can never appear at the beginning of a word.
And yes, ண்「ṇ」 can not appear in at the beginning of a word neither.
After all the complexity the consonant ம்「m」 is the last sound of the soft consonants. It sounds exactly like the English sound 「m」 like in mom or moon.
இடையினம்
The first consonant ய்「y」 of the middle characters sounds the same as the vowel இ「i」. In all the other cases you pronounce it as the English 「y」 like in yes, you or yummy.
The letter ர்「r」 is another interesting one. In the list of the strong consonants we had ற்「ṟ」. Well, ர்「r」 is the opposite to it. As a single consonant ர்「r」 sounds like a rolled 「r」. In all other cases it sounds like a 「t」.
For example, in பார்க்க「pārkka」 (to see) the is pronounced as a 「r」, but in மரம்「maram」 (tree) it is pronounced as a 「t」
The character வ்「v」 is the same as the English pendant. It is pronounced as the 「v」 in the word visa.
The last three consonants are the most difficult one for those who only speak Germanic or Romanance languages. Why?
Because in Tamil ல்「l」, ள்「ḷ」 and ழ்「ḻ」 are just three different sounds of 「l」. But let's go through each of them.
ல்「l」 is the same 「l」 sound that you know from English, like in the word list.
ள்「ḷ」 is the retroflex version of the 「l」. Similar to ண் 「ṇ」 and ன்「ṉ」, the sound of is ள்「ḷ」 is the stronger version of ல்「l」 and can be reached by rolling your tongue backwards.
The French word belle sounds pretty similar to that retroflex 「l」. The English word hall in some dialects also sounds pretty close to ள்「ḷ」.
The third sound ழ்「ḻ」 is the most difficult one since it is a unique sound in Tamil (and Malayalam which is a language pretty close to Tamil). The sound is similar to the retroflex approximat, but not exact the same.
I suggest that you just pronounce it the same as the retroflex ள்「ḷ」 in the beginning. The more words you learn and the more you get in touch with the spoken Tamil, you will start hearing and using the different sounds.
As for the two different sounds of 「n」, be also careful about the 「l」 sounds since each of them can lead to a different meaning.
ஒலி「oli」 means sound,
ஒளி「oḷi」 means light and
ஒழி「oḻi」 is the imperative form of to hide
Grantha characters
In addition to the regular consonants, there are also a few letters taken over from the Grantha script.
They were added to be able to pronounce a few sounds that did exist in Sanskrit, but not in Tamil. Normally you won't need them, but I'm adding them to make sure that you are not too surprised when seeing them.