Re: Point at which speaking is stopped? and ANN: Text to Speech
I get No such card Bob On Dec 26, 2011, at 3:41 PM, Jim Hurley wrote: Roger, It is even better for proofreading. I have put my Text to Speech up on the web. Run this in the message box. go url http://www.jamesphurley.com/TextToSpeech.rev; Jim Hurley Roger Eller wrote: I like it! I used your post as the text to read aloud via your script. With a little more code to add active sentence highlighting, and handle other oddities in text like (? with ?.), it becomes a pretty nice screen reader that you can follow along visually. I could see this growing into a great teaching aid for reading. ˜Roger ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Point at which speaking is stopped? and ANN: Text to Speech
It is a .livecode file: go url http://www.jamesphurley.com/TextToSpeech.livecode; On Tue, Dec 27, 2011 at 12:37 PM, Bob Sneidar wrote: I get No such card Bob On Dec 26, 2011, at 3:41 PM, Jim Hurley wrote: Roger, It is even better for proofreading. I have put my Text to Speech up on the web. Run this in the message box. go url http://www.jamesphurley.com/TextToSpeech.rev; Jim Hurley ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Re: Point at which speaking is stopped? and ANN: Text to Speech
Roger, Very resourceful of you to discover, not just the typo, but the correction. It is indeed a livecode file so: go url http://www.jamesphurley.com/TextToSpeech.livecode; Jim Hurley Message: 14 Date: Tue, 27 Dec 2011 12:49:24 -0500 From: Roger Eller roger.e.el...@sealedair.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: Point at which speaking is stopped? and ANN: Text to Speech Message-ID: CAAT6EXOjqBcFw+xNMOo6GwWO=+8oKJjUXNBJSiE+G=46xsf...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 It is a .livecode file: go url http://www.jamesphurley.com/TextToSpeech.livecode; On Tue, Dec 27, 2011 at 12:37 PM, Bob Sneidar wrote: I get No such card Bob On Dec 26, 2011, at 3:41 PM, Jim Hurley wrote: Roger, It is even better for proofreading. I have put my Text to Speech up on the web. Run this in the message box. go url http://www.jamesphurley.com/TextToSpeech.rev; Jim Hurley -- Message: 15 Date: Tue, 27 Dec 2011 09:50:28 -0800 From: Pete p...@mollysrevenge.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: revOpenDatabase Problem Message-ID: CABx6j9=crfd2bruwkm0gvd3ypy3vwckgq5fepffxh5+arjn...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 All good stuff but none of it tells me if I've opened an sqlite database :-) You may have missed the post about opening the file as a regular file and checking the first 16 bytes - that's the solution I used, seems to work just great. On Tue, Dec 27, 2011 at 9:35 AM, Bob Sneidar b...@twft.com wrote: After opening it, and inside a try/catch statement just use select TRUE as connected and get the query as a string. If it throws an error you know something is wrong. One thing I like to do in database driven apps is create handlers called dbopen, dbclose, dbIdle isConnected. In those handlers I put the database commands inside try/catch constructs, and return false when I fail. Before any query I will call isConnected, which attempts to do some arbitrary thing with the database, like select TRUE as connected, which will return 1 if it succeeds and throw an error if it doesn't. When I am done I call dbIdle which closes the connection (good practice because the server is going to disconnect you anyway after a certain amount of time). The Open function attempts a connection to the database with the options the user entered on a setup card. If successful, I set a global I can check in the future to make sure I successfully connected on startup. If the global is false, then I prevent any interaction with the app, sometimes quitting (if not in development). By doing this I don't have to recode error handling every place I need to query. isConnected, upon failing will exit to top after alerting the user that something is wrong. The close handler will close all cursors and database handlers, but this is not strictly necessary, as dbIdle. Since using sqlYoga, this is all rather moot anyway, as this kind of functionality is built into it. Bob On Dec 26, 2011, at 1:33 PM, Pete wrote: Using revOpenDatabase to open an sqlite database using a file that is not an sqlite database return an integer as if the database was successfully opened. Any subsequent db accesses fail of course but I wonder why revOpenDatabase doesn't return an error? -- Pete Molly's Revenge http://www.mollysrevenge.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Pete Molly's Revenge http://www.mollysrevenge.com -- ___ use-livecode mailing list use-livecode@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-livecode End of use-livecode Digest, Vol 99, Issue 50 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Re: Point at which speaking is stopped? and ANN: Text to Speech
On Tue, Dec 27, 2011 at 1:30 PM, Jim Hurley wrote: Roger, Very resourceful of you to discover, not just the typo, but the correction. It is indeed a livecode file so: go url http://www.jamesphurley.com/TextToSpeech.livecode; Jim Hurley I got a good laugh at your proof reading example. I also like how it resumes speaking at the location clicked. Nice! ˜Roger ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Point at which speaking is stopped? and ANN: Text to Speech
Yes, I like that too. In fact, the text to speech is actually better than a lot of audio books I have heard! ;-) Bob On Dec 27, 2011, at 11:11 AM, Roger Eller wrote: On Tue, Dec 27, 2011 at 1:30 PM, Jim Hurley wrote: Roger, Very resourceful of you to discover, not just the typo, but the correction. It is indeed a livecode file so: go url http://www.jamesphurley.com/TextToSpeech.livecode; Jim Hurley I got a good laugh at your proof reading example. I also like how it resumes speaking at the location clicked. Nice! ˜Roger ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Point at which speaking is stopped? and ANN: Text to Speech
Roger, It is even better for proofreading. I have put my Text to Speech up on the web. Run this in the message box. go url http://www.jamesphurley.com/TextToSpeech.rev; Jim Hurley Roger Eller wrote: I like it! I used your post as the text to read aloud via your script. With a little more code to add active sentence highlighting, and handle other oddities in text like (? with ?.), it becomes a pretty nice screen reader that you can follow along visually. I could see this growing into a great teaching aid for reading. ˜Roger ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode