Page 1 of 1

Share dictionary?

PostPosted: Tue Feb 19, 2008 12:19 am
by kremesch
Is there a way to have all the voices share one dictionary?

PostPosted: Thu Mar 06, 2008 12:46 pm
by Alex
This can be done a number of ways, depending on your operating system and needs. As you may know, custom pronunciations are managed by placing lexicon.txt files in the desired voices.

Under *nix systems, one could create a symbolic links in each of voice directories to one shared lexicon.txt file

Theoretically this should work on Windows also with shortcuts.

If you are using command-line swift to synthesize, this can also easily be done by specifying the lexicon with the -l flag, like so:

Code: Select all
swift -l  path_to_shared_lexicon.txt  "Test"


I hope this helps!

-Alex