Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting TTS Voices in a Combo or Listbox

Status
Not open for further replies.

Apata

Programmer
Apr 5, 2006
52
US
Hi:

How can I get all the TTS voices installed on a computer into a combobox or listbox and then set the voice to be used to the one selected from the list? Thanks for your help.
 
Got it!

Code:
*PUBLIC objVoice
objVoice = CreateObject("SAPI.SpVoice")	

n=0
FOR i=1 TO objVoice.GetVoices.Count	  && Total of voices installed
   WAIT WINDOW objVoice.GetVoices().Item(n).GetDescription
   n=n+1
ENDFOR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top