delphi - Localizing SAPI Text-To-Speech to spanish -


i have managed use sapi text-to-speech in delphi/lazarus using following code:

procedure tform1.button1click(sender: tobject); var   spvoice: variant; begin   spvoice := createoleobject('sapi.spvoice');   spvoice.speak('hello world!', 0); end;   

this code automatically chooses english standard voice. since need localize spanish investigated if system (windows xp standard spanish) had spanish voice or needed install it, , how change default voice, no luck far. therefore questions are:

  1. how can know if system has spanish voice installed or need install it?
  2. supposing have voice need installed, how can make sapi use voice instead of standard one?

i guessing can spanish voice using following code (c0a code spanish language):

spvoice.getvoices('','language=c0a').item(0) 

but not know how set voice used.

edit: avoid confusions, need make compatible delphi , lazarus, being last 1 primary development tool.

no freely available version of sapi comes packaged spanish voice. sapi 5.1 xp comes chinese , english voice; sapi 5.3 , sapi 5.4 have english voices installed.

you can purchase spanish voice cepstral (among other vendors) work version of sapi 5. (i have not used these voices, cannot vouch quality of these voices.)


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -