Translations

From Navit's Wiki
Revision as of 22:06, 2 November 2010 by Korrosa (talk | contribs) (Removed vandalism in revision 4322 by Valera (Talk))
Jump to: navigation, search

Using the web-based tool

We are currently using Launchpad : https://translations.launchpad.net/navit/trunk If you want to update a translation, or add a new one, please try using launchpad. Translations are usually updated once a week.

Configuring Speech in your language

To test results and for normal operation you should configure a speech program in navit.xml to listen the sentences, for example in spanish you could substitute the default speech definition:

<speech type="cmdline" data="echo 'Fix the speech tag in navit.xml to let navit say:' '%s'" />

with an appropiate one, that uses festival:

<speech type="cmdline" data="echo '%s' | festival --tts --language spanish" />

Here's how to use espeak:

<speech type="cmdline" data="espeak -s 150 -v german '%s' &amp;" />

where -s is the "Speed in words per minute" (150 seems to be quite good for german) and -v specifies the language to use. Please refer to espeak to see which languages you can use on your system and which other command-line-options are useful. The &amp; is replaced by & when the file is parsed and makes the call to espeak asynchronus. This is for not to freeze the GUI while espeak is speaking to you.

If you are running multiple programs with audio output, it is possible that /dev/dsp is locked (the default DSP for both festival and espeak). Use the following command to re-route the sound to ALSA. (To be exact, the Wave channel on the default sound card).

<speech type="cmdline" data="espeak -s 150 -v english --stdout '%s' | aplay > /dev/null &amp;" />

Note on the Dutch language

I had good success with the dutch extensions for festival. nextens

Especially the spoken dutch streetnames are much more clear this way.

It takes a bit of work to compile it, but i think it is worth the effort.

Letting Navit speak through KDEs kttsd in German

When you get textsynthesis in KDE running with KDEs kttsd, you can also let Navit speak through kttsd. Use this line for it (using german as language):

<speech type="cmdline" data="dcop kttsd KSpeech sayText '%s' 'de'" cps="15"/>

When the kttsd is running, Navit will now speak with your configured language/voice from kttsd (run kttsmgr to configure it). Because kttsd can be made to speak german, you can let Navit now speak german, which is quite an improvement when it comes to pronouncing german words.

There is a good howto about setting kttsd up to speak german: deutsche-sprachausgabe-in-kde

Running Debian Lenny, the mbrola-packages can be installed with apt-get (or synaptic, or aptitude, ...). I have just installed all the stuff with "apt-get install kttsd kttsd-contrib-plugins kmouth ksayit mbrola mbrola-de6 mbrola-de7" and installed and configured the "txt2pho" like described in the howto and got a full functioning, german speech synthesis in KDE. Which Navit (with the <speech type="cmdline" data="dcop kttsd KSpeech sayText '%s' 'de'" cps="15"/>) uses without problems.