From: Daniel Berger Date: 2006-03-08T15:43:42+09:00 Subject: Problem with win32ole, sapi5 Hi all, Ruby 1.8.4 (both installer and hand built) win32-sapi 0.1.3 Why does my attempt to set the voice fail? C:\eclipse\workspace\win32-sapi>c:\ruby184\bin\irb irb(main):001:0> require 'win32/sapi5' => true irb(main):002:0> include Win32 => Object irb(main):003:0> v = SpVoice.new => # irb(main):004:0> hash = {} => {} irb(main):005:0> v.getvoices.each{ |voice| hash[File.basename(voice.Id)] = voice } => nil irb(main):006:0> hash => {"MSMary"=>#, "MSSam"=>#, "SampleTTSVoice"=>#, "MSMike"=> #} irb(main):007:0> v.voice = hash["MSMary"] WIN32OLERuntimeError: OLE error code:0 in HRESULT error code:0x80020003 Member not found. from (irb):8:in `method_missing' from (irb):8 I also tried v.setproperty("voice",hash["MSMary"]) but got the same result. Any ideas? Thanks, Dan