4

I found many databases with most of the german words, but non of them contained the pronunciation of the words. (In Phonetic spelling) Something like:

Hund - Húnd OLivenbaum - oˈliːvn̩ba͜um

would be great.

Wiktionary is also not suffient, as it can not be easily parsed by a computer. Best case would be if the dataset would be free, but it does not have to be.

2

2 Answers 2

10

Wiktionary is also not suffient, as it can not be easily parsed by a computer.

Umm, I beg to differ. It's a one-liner.

$ curl 2>/dev/null -o- https://de.wiktionary.org/wiki/Hund|grep -m1 'IPA'|sed 's/<\/span>\]<\/dd>//;s/.*>//'
hʊnt

$ curl 2>/dev/null -o- https://de.wiktionary.org/wiki/Olivenbaum|grep -m1 'IPA'|sed 's/<\/span>\]<\/dd>//;s/.*>//'
oˈliːvn̩ˌbaʊ̯m

If you don't know how to do it yourself from that example, give me your word list and I let my computer do it for you.

5
  • Good answer, but wrong SE :D Commented Dec 10, 2022 at 16:06
  • Thanks for your answer! My current word list has approximately 1.2 Million entries. Is there a possibility of getting Ip-banned from wiktionary if i generate too many requests?
    – LenzAbi
    Commented Dec 11, 2022 at 16:09
  • But seeing that the required information can be extracted by just one line of code, makes me think it is maybe better just to download the wiktonary dump, to avoid sending to many requests.
    – LenzAbi
    Commented Dec 11, 2022 at 16:12
  • The dump is in the Mediawiki format, it's even easier to parse.
    – Janka
    Commented Dec 12, 2022 at 2:23
  • @Janka Die Frage wurde hier noch einmal auf Deutsch gestellt, falls Du deine Antwort übersetzen möchtest.
    – xyldke
    Commented Dec 12, 2022 at 15:29
4

Yes, there is:

The Deutsche Aussprachedatenbank ('German pronounciation database', short DAD) is a free scientific online database by the University of Halle-Wittenberg with over 130.000 entries based on the Deutsches Aussprachewörterbuch.

It contains your examples:

1
  • $ curl 2>/dev/null -o- https://dad.sprechwiss.uni-halle.de/dokuwiki/doku.php/de/O/Olivenbaum|grep -m1 "de.ipa"|sed 's/\]<\/td>//;s/.*>\[//' if anyone wants to harvest that.
    – Janka
    Commented Dec 14, 2022 at 19:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.