[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] win32-sapi 0.1.0

djberg96

10/13/2004 4:37:00 AM

Hi all,

I'm happy to announce the release of win32-sapi 0.1.0.

What is it?
===========
A simple OLE wrapper for the MS Sound API (5.0 or later). You can
download MS SAPI at http://www.microsoft.....

This is based on the Perl module Win32::SAPI5 by Jouke Visser.

Where is it?
============
You can find it on the RAA or Rubyforge at
http://www.rubyforge.org/projects/....

Quick Example
=============
require "win32/sapi"
include Win32

SAPI5.new.speak("Shall we play a game?")

Enjoy!

The Win32Utils Team
3 Answers

Joey Gibson

10/13/2004 12:17:00 PM

0

Daniel Berger wrote:

>Hi all,
>
>I'm happy to announce the release of win32-sapi 0.1.0.
>
>

I just downloaded it and followed the instructions in README. Here's
what I got:

Loaded suite tc_sapi5
Started
...F.........F......
Finished in 0.23 seconds.

1) Failure:
test_SpInProcRecoContext(TC_Win32_SAPI5) [tc_sapi5.rb:41]:
Exception raised:
Class: <WIN32OLERuntimeError>
Message: <"failed to create WIN32OLE object from
`{73AD6842-ACE0-45E8-A4DD-8795881A2C2A}'\n HRESU
LT error code:0x8004503a\n ">
---Backtrace---
E:/New/win32-sapi-0.1.0/lib/win32/sapi5.rb:28:in `initialize'
E:/New/win32-sapi-0.1.0/lib/win32/sapi5.rb:28:in `initialize'
tc_sapi5.rb:41:in `new'
tc_sapi5.rb:41:in `test_SpInProcRecoContext'
tc_sapi5.rb:41:in `assert_nothing_raised'
tc_sapi5.rb:41:in `test_SpInProcRecoContext'
---------------

2) Failure:
test_SpSharedRecoContext(TC_Win32_SAPI5) [tc_sapi5.rb:81]:
Exception raised:
Class: <WIN32OLERuntimeError>
Message: <"failed to create WIN32OLE object from
`{47206204-5ECA-11D2-960F-00C04F8EE628}'\n HRESU
LT error code:0x8004503a\n ">
---Backtrace---
E:/New/win32-sapi-0.1.0/lib/win32/sapi5.rb:88:in `initialize'
E:/New/win32-sapi-0.1.0/lib/win32/sapi5.rb:88:in `initialize'
tc_sapi5.rb:81:in `new'
tc_sapi5.rb:81:in `test_SpSharedRecoContext'
tc_sapi5.rb:81:in `assert_nothing_raised'
tc_sapi5.rb:81:in `test_SpSharedRecoContext'
---------------

20 tests, 20 assertions, 2 failures, 0 errors

This is a WindowsXP Pro system, SP1, ruby 1.8.2 (2004-07-29) [i386-mswin32]

I ran my own test from within IRB, and it does, in fact, speak the
words. So it works despite the test failures. I just thought I'd let you
know.


Joey


--
She drove a Plymouth Satellite
Faster than the Speed of Light...

http://www.joeygibso...
http://www.joeygibso.../life/Wisdom.html
Atlanta Ruby User Group http://www....




Chad Fowler

10/13/2004 3:17:00 PM

0

On Wed, 13 Oct 2004 13:39:34 +0900, Daniel Berger <djberg96@hotmail.com> wrote:
> Hi all,
>
> I'm happy to announce the release of win32-sapi 0.1.0.
>

Wow, that was fast (I remember you talking about doing this while at RubyConf)!

I've got this running at work and it will be part of a monitoring
system we have by the end of the day.

Awesome stuff.

Thanks,
Chad

P.S. I got the same unit test failures that Joey reported.


djberg96

1/7/2005 3:40:00 PM

0

Joey Gibson wrote:
> Daniel Berger wrote:
>
> >Hi all,
> >
> >I'm happy to announce the release of win32-sapi 0.1.0.
> >
> >
>
> I just downloaded it and followed the instructions in README. Here's
> what I got:
>
> Loaded suite tc_sapi5
> Started
> ..F.........F......
> Finished in 0.23 seconds.
>
> 1) Failure:
> test_SpInProcRecoContext(TC_Win32_SAPI5) [tc_sapi5.rb:41]:
> Exception raised:
> Class: <WIN32OLERuntimeError>
> Message: <"failed to create WIN32OLE object from
> `{73AD6842-ACE0-45E8-A4DD-8795881A2C2A}'\n HRESU
> LT error code:0x8004503a\n ">
> ---Backtrace---
> E:/New/win32-sapi-0.1.0/lib/win32/sapi5.rb:28:in `initialize'
> E:/New/win32-sapi-0.1.0/lib/win32/sapi5.rb:28:in `initialize'
> tc_sapi5.rb:41:in `new'
> tc_sapi5.rb:41:in `test_SpInProcRecoContext'
> tc_sapi5.rb:41:in `assert_nothing_raised'
> tc_sapi5.rb:41:in `test_SpInProcRecoContext'
> ---------------
>
> 2) Failure:
> test_SpSharedRecoContext(TC_Win32_SAPI5) [tc_sapi5.rb:81]:
> Exception raised:
> Class: <WIN32OLERuntimeError>
> Message: <"failed to create WIN32OLE object from
> `{47206204-5ECA-11D2-960F-00C04F8EE628}'\n HRESU
> LT error code:0x8004503a\n ">
> ---Backtrace---
> E:/New/win32-sapi-0.1.0/lib/win32/sapi5.rb:88:in `initialize'
> E:/New/win32-sapi-0.1.0/lib/win32/sapi5.rb:88:in `initialize'
> tc_sapi5.rb:81:in `new'
> tc_sapi5.rb:81:in `test_SpSharedRecoContext'
> tc_sapi5.rb:81:in `assert_nothing_raised'
> tc_sapi5.rb:81:in `test_SpSharedRecoContext'
> ---------------
>
> 20 tests, 20 assertions, 2 failures, 0 errors
>
> This is a WindowsXP Pro system, SP1, ruby 1.8.2 (2004-07-29)
[i386-mswin32]
>
> I ran my own test from within IRB, and it does, in fact, speak the
> words. So it works despite the test failures. I just thought I'd let
you
> know.
>
>
> Joey

I didn't forget you Joey!

I just tried this on my Win XP Pro SP1 box with SAPI 5.1 and did not
encounter this. So, either it's a SAPI 5.0 vs 5.1 issue (I'm not sure
what version you tested with), or you're missing a patch somewhere -
perhaps there was an update in win32ole.
Please try again and let me know. Thanks.

Dan