-6

How would you implement word pronounciation functionality in an online dictionary site ? for example lets say, oxforddictionaries.com. they have this functionality where you can listen to how the given words are being pronounced. Well, do I have to record each word and save it in a folder and then link it up with the database? If that's the case then probably I would have to create a million .wav or any sound files for the million words in the database. or how would I sort this out ? How do u think oxforddictionaries.com implemented this functionality ?

XoR
  • 132
  • 1
  • 1
  • 10

1 Answers1

3

There are two approaches

  • Record each word (wav/mp3)
  • Synthesize the sound based on the phonetic spelling.

The latter one feels quite unnatural, but a cheap solution. I know only about the Longman dictionary, they definitely record each word (and even whole sentences), with a couple of speakers, so you don't get bored..

Unless you want to do the synthesis in a plugin/widget, you probably end up with sound files with both approaches. You can simply play them with html/html5/flash players.

Karoly Horvath
  • 94,607
  • 11
  • 117
  • 176