Quantcast
Channel: GPS Power Forum: tech support and help desk
Viewing all articles
Browse latest Browse all 17703

ANDROID ux_TTSDebug - Tool to debug TTS Voice files

$
0
0
This is a small ux that targets TTS voice developers.
Translating & testing different options for skins, UXs, or other voice options takes alot of time
The idea behind this UX is to cut time with TTS testing.

This is a developer tool and usual users don't need it.

Code:

How to use ux_TTSDebug

* Add to your TTS voice file (in dictionary.voice ) following line:
Translation:="<set to what ever you want>"

* Copy to the ux to app ux folder

* In Settings menu 2 other options will be added: "TTSDbg Enter Text" and "TTSDbg Play Last"

* In first option "TTSDbg Enter Text" you can set testing string / text. After you press OK button you'll hear the app speaking what you have entered.
Second option it's just a "quick play" button for the last entered string. The ux will save last text between restarts.

* Now, based on entered text are 2 cases:
1) IF text you have entered it's a term defined in your voice file, you'll hear : "Translation: " + <translation of introduced term>
Example:
Suppose you debug a TTS French language and you have in your French voice file the term "2nd to right" defined,
entering "2nd to right" you'll hear "Traduction: 2ème à droite"

2) IF text you have entered it's NOT a term defined in your voice file, you'll hear text you have entered.
Suppose you debug a TTS French language and you enter "2ème à gauche" it will just use TTS engine to pronounce that text.

UX doesn't translate terms that are not in voice file.
Suppose you debug a TTS French language and you enter "2. nach links" don't expect to hear either French or German. :)))

Tested on iGO / Android.
It might work on other versions too; needs some testing
Attached Files

Viewing all articles
Browse latest Browse all 17703

Trending Articles