navit-gps / navit

The open source (GPL v2) turn-by-turn navigation software for many OS
http://www.navit-project.org
Other
559 stars 175 forks source link

Speech output on WinCE not working #1271

Closed justanothergithubuserNr2 closed 1 month ago

justanothergithubuserNr2 commented 3 months ago

I'm using navit on WinCE: https://github.com/navit-gps/navit/releases/download/v0.5.6/navit-wince-0.5.6.zip

How can I enable espeak output? There is an espeak-data folder. But an espeak.exe or something similar is missing.

The configuration in the default navit.xml doesn't seem to be fitting to the WinCE platform because of using a powershell command that doesn't seem to work:

                 <!--
        Navit provides speech output in text format.
        If you have a speech synthesizer like festival lite installed, you can get turn by turn directions out of navit. Please set the "cps"-value to how many characters your tts engine approximately speaks per second.
        The default is text output to the shell
        -->
        <speech type="cmdline" data="PowerShell -Command &quot;Add-Type &#x2013;AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak(%s);&quot;"/>
        <!--
        Instead of using a speech synthesizer, navit can also play pre-recorded samples for each word.
        See http://wiki.navit-project.org/index.php/Configuration for details.

        <speech type="cmdline" data="aplay -q %s"
        sample_dir="/path/to/sampledir" sample_suffix=".wav" flags="1"
        vocabulary_name="0" vocabulary_name_systematic="0" vocabulary_distances="0"/>
        -->

If I would have an espeak.exe for WinCE, I could set a working cmdline myself, but I do not know where to download.

Or is espeak compiled into the navit.exe and I am just missing some settings?

justanothergithubuserNr2 commented 1 month ago

OK, after searching in documentation of Navit, I found the claim that on some platforms, espeak is included in the binary. In the source code of Navit for WinCE, I found the correct setup to use this on the WinCE/PocketPC-Platform:

<speech type="espeak" cps="15">