World: r3wp
[Windows/COM Support]
older newer | first last |
Anton 7-Jul-2006 [222] | text to speech ? not added to website yet. The demo is supposed to show two different ways of getting text to speech; via MS Agent and via SAPI. I haven't got the MS Agent one working properly yet on my system. |
james_nak 7-Jul-2006 [223x3] | Anton, do you have a source for documentation on the COM lib itself. I.e., what it can do? |
OK, found something. I bet we have some books in the office as well: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/com/html/f5f66603-466c-496b-be29-89a8ed9361dd.asp | |
Yep, six books. | |
Anton 7-Jul-2006 [226] | Thanks for the link ! I don't actually know that much about COM, as it is a proprietary technology, I have avoided it til now. |
james_nak 7-Jul-2006 [227] | That link is not really the best in terms of the nitty gritty. A search through the MSDN site will show other places to look. |
Anton 9-Jul-2006 [228x6] | Yes, you can flop around in the MSDN archive for a while before you find what you want. An example which I am working on now is extracting Calendar data from Outlook. |
Updated COMLib website a little bit. Amongst other small changes, added demos/speech.r | |
If you've got an older distro, you can just download the full zip and extract the files over your old directory. | |
I would like someone to test the speech and let me know if the MS Agent character actually talks or not. | |
On my computer, only balloon text is shown. | |
(This is not urgent, just when you can be bothered) | |
Terry 10-Jul-2006 [234x4] | link? |
http://home.wilddsl.net.au/anton/rebol/os/windows/COMLib/files.html | |
TTS worked, the ms agent just had the bubble. I have some old ms agent code around somewhere that I used with LFReD, along with a dialect.. I'll see if i can find it. | |
The MS TTS is pretty old technology.. Sounds like Vista may has much better speech recognition and a new TTS. Should check out the beta. | |
Anton 10-Jul-2006 [238x2] | Righto, thanks :) |
We'll find out what the difference is. | |
Terry 10-Jul-2006 [240x3] | COM with PHP is soo easy... drop this into a page on your local server.. <? $word=new COM("word.application") or die("Cannot start word for you"); print "Loaded word version ($word->Version)\n"; $word->visible =1; $word->Documents->Add(); $word->Selection->Typetext("Dit is een test"); $word->Documents[1]->SaveAs("burb ofzo.doc"); $word->Quit(); ?> |
Want Macro support.. ? <? $obj = new COM("AutoItX3.Control"); $obj->CDTray ("H:", "open"); $obj->Sleep (1000); $obj->CDTray ("H:", "close"); ?> | |
Not to be critical, but the php syntax is much clearer. | |
Anton 10-Jul-2006 [243x2] | Yes, you can do the chaining of objects easily, and pass args to functions directly, without using the printf-style syntax. |
I am quite sure I can do better with rebol, but I would have to turn DispHelper inside out to find out the way. As it is, I have left DispHelper untouched. | |
Terry 10-Jul-2006 [245] | How RT manages to charge for library access I'll never understand (even though I paid for it .. once). |
Anton 10-Jul-2006 [246] | Looks like you just set the .TTSModeID |
Robert 10-Jul-2006 [247] | Anton, if you made it with the OL connection let me know. |
Anton 10-Jul-2006 [248] | .. but when I set TTSModeID it doesn't work. I am not sure if I am using the right TTSModeID or if I am passing it correctly... Robert, I'm extracting Outlook Calendar Appointments and Contacts. Just rudimentary at the moment, though. I haven't figured out how to surely extract all the properties. |
Robert 10-Jul-2006 [249] | And I want to import those into IOS/xpeers :-) so that we can sync to OL. Maybe even in both ways. |
Anton 10-Jul-2006 [250] | I will publish what I have in the next day or two. |
Terry 10-Jul-2006 [251] | Here's TTS in PHP.. <? $voice = new COM("SAPI.SpVoice"); $voice->Speak("Hello, lets have a conversation"); ?> |
Anton 10-Jul-2006 [252x2] | tts: CreateObject "Sapi.SpVoice" CallMethod [tts ".Speak(%s)" "Hello, let's have a conversation"] |
pretty similar in COMLib. | |
Henrik 10-Jul-2006 [254] | wouldn't it be prettier with: tts: CreateObject [Sapi SpVoice] tts/call [Speak "Hello, let's have a conversation"] just to make the syntax more smooth and REBOLish... :-) |
Anton 10-Jul-2006 [255x3] | Hmm... yes. Of course, if I could just choose the syntax I would make it much better. For now, still in learning mode. |
Terry, I found some Agent code in HAL 4000 package. Looks pretty similar to other demos I have seen. I don't see what exactly I'm doing wrong there. I am very suspicious about the TTSModeID setting not working. I'll have to follow that up at some stage. | |
Thanks for your test. | |
Allen 10-Jul-2006 [258] | Does the ado stuff work with this new beastie? http://www.microsoft.com/sql/ctp_sqleverywhere.mspx . |
Anton 11-Jul-2006 [259x3] | No idea. Do you need it ? |
I guess the question is: does COMLib work with ADO.NET ? | |
I think that depends on whether ADO.NET supports the older ADO interface or not. | |
BrianH 11-Jul-2006 [262] | A better question is whether COMlib supports OLEDB, which is COM-based. SQL Everywhere works with OLEDB too. |
Anton 11-Jul-2006 [263] | Well, if it really is COM based, then I imagine it should work. |
Anton 13-Jul-2006 [264x2] | COMLib website update: Added outlook-calendar.r and outlook-contacts.r demos. Fixed a few bugs in the main rebol interface file, COMLib.r http://home.wilddsl.net.au/anton/rebol/os/windows/COMLib/ |
Robert, have a look at the outlook demos. | |
Robert 15-Jul-2006 [266x2] | Not yet, sorry, was busy. I will. Thanks for posting this stuff. |
And, as I don't use OL myself, I need to setup a test system. | |
Graham 15-Jul-2006 [268] | Anton, is there a way to use Com and OneNote? |
Anton 15-Jul-2006 [269] | Not sure on this. The postings I find about the COM interface in OneNote a few years ago make the interface sound very lacking. Not sure it's much better now a few year have gone by or not. |
BenK 19-Jul-2006 [270] | Is there any way to get around the fact that Rebol faces are not native Windows "windows"? (i.e. don't have a handle on the system). Speech recognition command & control does not work with Rebol apps as long as that is the case and I need that... |
Anton 19-Jul-2006 [271] | Hmm.. the system port can be used to trap windows messages, perhaps if the command & control uses windows messages you can handle them that way... Can you give more information about the speech recognition software used ? (Is it MS software ? etc..) |
older newer | first last |