Is it possible to edit/correct navigation messages?

Ari Laitinen shared this question 20 days ago
Answered

I am using Text To Speech navigation in Finnish language. I would like to modify the content. Is it possible?

For example, the message that should mean that I am lost from the planned route is wrong. It must be some error because se text has no sensible meaning in that situation.

I also would like to remove some words that are not required and are syntactically wrong.

For example: In finnish it is syntactically wrong to start navigation message with word that means "After". It would be better if there is no word before the distance.

Replies (2)

photo
1

Look for the tts file in the Locus directory /data/tts

The English file is called en_latest.tts, the German one de.tts (I’ve tweaked mine a bit).

You’ll have a Finnish one. You can edit the instructions in it using a text editor. Be careful: only edit the instruction texts, otherwise you’ll easily mess up the syntax and the file won’t work anymore.

This comment is in trash! Restore
photo
1

Thank you for this info. Unfortinately I can see only the "en_latest.tts" in this folder. Should I try to update it or do something so it would appear here?

This comment is in trash! Restore
photo
1

If you’re hearing instructions in Finnish, you’ll need a Finnish TTS file as well. Perhaps it’s in a different folder? Have a look using a file manager to see if you can find a *.tts file somewhere.

I downloaded the German TTS file from somewhere at some point, but I can’t remember where.

This comment is in trash! Restore
photo
1

I found some tts files from Github

https://github.com/asamm/locus-map-tts-commands/tree/master/src/main/assets/tts_commands

Unfortinately finnish is not listed, I suspect that it is included in the APK

I managed to upload the en version renamed to fi and the speech changed. accordingly At least now I can manually translate the tts to finnish if the source is too difficult to access.

This comment is in trash! Restore
photo
1

Unfortunately, I haven’t been able to find a Finnish TTS file either. You could try the following: Save the English TTS file (en_latest.tts) as fi.tts in the same directory. Then edit the voice prompts or translate them into Finnish yourself; that way, you can also tailor the wording to your own preferences straight away. I’d start by trying it out with just a few key instructions before translating everything, to see if it works. For example,

edit “straight”: “continue straight” to “straight”: “jatka suoraan”. 🙂


As I said, only edit the instruction texts (i.e. what is spoken aloud); be sure to leave everything else untouched. Including all punctuation marks, etc.

Right at the very start of the file, I would change "language": "en" to "language": "fi".


If a fi.tts file is in the same directory, Locus should use it automatically. At least, that’s how it works with other languages.

This comment is in trash! Restore
photo
1

Hi, to create your own voice, a simple method is supported:

Copy any *.tts file into the /Locus/data/tts/ directory. When creating a TTS engine inside the app, Locus first checks whether a matching file exists there and uses it if so.

We always update en.tts first, so use it as the canonical sample of what is currently supported. We also maintain cs.tts, which is a good example of how to handle languages more complex than English.

The format used in .tts files is JSON; it is very sensitive to syntax errors, so please double-check before inserting into the app's folder.

This comment is in trash! Restore
photo
1

I succeeded to translate my own TTS. The file needs to be UTF-8 without BOM to be accepted.

Thanks for everyone!

This comment is in trash! Restore
photo
Leave a Comment
 
Attach a file
You can't vote. Please authorize!