L
Li Chen
Hi all,
I try to do some 'text to speach' stuff using win32-sapi.
I run the example from the rdoc but I get the error info. I wonder how
to fix it.
Thanks,
Li
C:\Users\Alex>irb
irb(main):001:0> require 'win32/sapi5'
=> true
irb(main):002:0> include Win32
=> Object
irb(main):003:0>
irb(main):004:0* v = SpVoice.new
=> #<Win32::SpVoice:0x337212c>
irb(main):005:0> v.Speak("Shall we play a game?")
WIN32OLERuntimeError: Speak
OLE error code:80040154 in <Unknown>
<No Description>
HRESULT error code:0x80020009
Exception occurred.
from (irb):5:in `method_missing'
from (irb):5
irb(main):006:0>
I try to do some 'text to speach' stuff using win32-sapi.
I run the example from the rdoc but I get the error info. I wonder how
to fix it.
Thanks,
Li
C:\Users\Alex>irb
irb(main):001:0> require 'win32/sapi5'
=> true
irb(main):002:0> include Win32
=> Object
irb(main):003:0>
irb(main):004:0* v = SpVoice.new
=> #<Win32::SpVoice:0x337212c>
irb(main):005:0> v.Speak("Shall we play a game?")
WIN32OLERuntimeError: Speak
OLE error code:80040154 in <Unknown>
<No Description>
HRESULT error code:0x80020009
Exception occurred.
from (irb):5:in `method_missing'
from (irb):5
irb(main):006:0>