2009年9月1日星期二

How to Setting System Property in Eclipse ?

In this project, when need use different voice to read, need this cmd:
java -Dmbrola.base=/home/jim/mbrola -jar bin/FreeTTSHelloWorld.jar mbrola_us1

how to realize it in java frame with eclipse?
1. set Setting System Property
Run / Run... -> Java Application -> [New] -> Arguments tab -> VM arguments
2. change voice source
voice = VoiceManager.getInstance().getVoice("mbrola_us1");
from
voice = VoiceManager.getInstance().getVoice("kevin");