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