You're welcome.
>I've been wanting something like
> this for a long time! A couple ideas that might make it even better:
> It would be nice if it offered the chance to re-speak the speech input
> if the first interpretation wasn't right.
I figured you could edit with the keyboard if it's not right. If it
gets it wrong once, it may get it wrong again. Anyway, you have the
script and you can change it to do anything you like.
>Also I would like a
> confirmation flashed once the entry was actually confirmed as added to
> my calendar, since it seems like that's a step after speech
> confirmation, and I'm not sure how I would know if it failed.
When you are presented with the OK/Edit dialog, the entry has already
been made. If it doesn't present that dialog, then it failed.
> Some
> kind of "working...please wait" message would be great too, as my
> phone is taking a little while to run this all the way through and it
> seems hard to tell if it is still working.
Probably a good idea. Both the speech-to-text and the calendar entry
are done with Google web services, so the delay is a little
unpredictable and depends on your current network connection speed.
>
> I haven't done anything with python scripting or sl4a, but this script
> does whet my appetite. :-) I'd love to create more voice-only
> interactions with android. Do you happen to know if we can we do text-
> to-speech within a script as well?
Yes, it is. Check here for all the Android-type actions you can do:
http://code.google.com/p/android-scripting/wiki/ApiReference
> And is it possible to use Tasker's
> Record Audio action to capture a sound sample and then use the Google
> feature to convert it to text without the normal Google voice
> prompt?
Nope. That's not possible as far as I've been able to determine. You
can either record or do speech-to-text, not both.
> Thanks again for sharing this script and for any insights into
> expanding it.
I'll probably add a few things to it over the weekend -- mainly error
checking and reporting, and maybe the "Working" dialog that you
suggest.
If you want to learn Python and SL4A, you might check out this post on
the SL4A forum. It's by the author of the brand new "Head First
Python".
http://groups.google.com/group/android-scripting/browse_thread/thread/397c8b6f63bdcf3c#