# Win32ole & sapi

**URL:** <https://www.ruby-forum.com/t/win32ole-sapi/112577>\
**Category:** Ruby\
**Created:** [August 21, 2007, 2:04am UTC](https://www.ruby-forum.com/t/win32ole-sapi/112577 "2007-08-21T02:04:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a698b9/32.png) [@eder](https://www.ruby-forum.com/u/eder)\
**Post date:** [August 21, 2007, 2:04am UTC](https://www.ruby-forum.com/t/win32ole-sapi/112577/1 "2007-08-21T02:04:09Z")

</div>

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

```auto
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

---

<div class="post-metadata">

**Author:** ![eder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a698b9/32.png) [@eder](https://www.ruby-forum.com/u/eder)\
**Post date:** [August 21, 2007, 4:04pm UTC](https://www.ruby-forum.com/t/win32ole-sapi/112577/2 "2007-08-21T16:04:35Z")

</div>

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.
