Win32ole & sapi

Hi, Does anyone knows how to set the language to Spanish in SAPI, This
is what I Have:

require 'win32ole'

@obj_voice = WIN32OLE.new("SAPI.SpVoice")
@obj_get_voices = @obj_voice.GetVoices

@obj_get_voices.each { |voice| puts voice.GetDescription }

@obj_voice.speak "Hola Mundo!"

Any help would be highly appreciated

Head on over to the MSDN pages for SAPI, whatever object method you
use there to set it to Spanish will probably be the same one you need
to specify here.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs