[ANN] win32-sapi 0.1.0

D

Daniel Berger

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.com/speech.

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/win32utils.

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

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

Enjoy!

The Win32Utils Team
 
J

Joey Gibson

Daniel said:
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.joeygibson.com/blog
http://www.joeygibson.com/blog/life/Wisdom.html
Atlanta Ruby User Group http://www.AtlRUG.org
 
C

Chad Fowler

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.
 
D

Daniel Berger

Joey said:
Daniel said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,123
Latest member
Layne6498
Top