I created an application that uses the TTS engine to send feedback to the user. With the aim to improve the performance, I used the synthesizeToFile and addSp
synthesizeToFile
addSp
You can give them all (while defining) the resource name as "prefix"+(1..n). And in the code use,
"prefix"+(1..n)
int resid=; for(i=1;resid!=0;i++){ resid = this.getResources().getIdentifier("prefix"+i, "strings", this.getPackageName()); }