Well, here it is. The first script of mine that I thought added enough value to be posted..
Discussion Here...
This is a Voice Recognition driven "Answering Machine" for use with HSPhone messages. I know there's already one out there, but I coded this as a learning experience and thought that it may have some useful features.
My key goal with this was to have quick VR based navigation through the messages. The scripts use system calls so it _should_ work with both a microphone or from the phone.
This script is set up to work with multiple mailboxes.
The VR Answering Machine is started with the following voice command:
(Read|List|Play) [the] [old][new] [messages] [in] (mailbox1s|mailbox2s...) (voicemail|mailbox)
--Read or Play will cause the VRAM to play each message.
--List will only read the Date/Time/CID for the message. You can always say "Play" to hear the message.
--Old/New will tell the VRAM to operate on either the old or new messages in the mailbox. It defaults to the new messages and you can switch between them anytime.
Valid voice commands:
---------------------
Play [message]
Next [message]
Previous [message]
Delete [message]
Repeat [message] <-- Repeats the message Date/CID
(make|mark) [message] new <-- Marks this message "unread"
(make|mark) [message] old <-- Marks this message "read"
First message <-- Goes to the first message in mailbox
Last message <-- Goes to the last message in mailbox
[go to] message (#) <-- Go to message number (only 1-9 works)
Old messages <-- Goes to the old messages in mailbox
New messages <-- Goes to the new messages in mailbox
Help -OR-[List]
commands
List mailboxes <-- Lists all mailbox names that exist
Mailbox status <-- Reads the # of new and old messages currently in the mailbox
(Goodbye|Exit|Quit)
(mailboxname)s mailbox <-- Takes you to another mailbox
Example:
---------
You: List the old messages in John's mailbox
VRAM: There are 2 new messages and 4 old messages in John's mailbox.
Old message 1 left at 9:05 PM on Friday January 16 from John Doe.
What now?
You: Next message
VRAM: Old message 2 left at 10:05 PM on Friday January 16 from Jane Doe.
What now?
You: Last message
VRAM: Old message 4 left at 11:05 PM on Friday January 16 from George W. Bush.
What now?
You: Play message
VRAM: ....blah blah... blah blah...
What now? <-- sometimes this doesn't get spoke after playing a message.
You: Delete message
VRAM: Delete message? Confirm with yes
You: No
VRAM Message not deleted.
What now?
You: Repeat
VRAM: Old message 4 left at 11:05 PM on Friday January 16 from George W. Bush.
What now?
You: New messages
VRAM: New message 1 left at 8:15 PM on Thursday January 16 from John Q. Public.
What now?
You: Previous message
VRAM: Already at start of messages.
What now?
You: Play message
VRAM: ....blah blah... blah blah...
What now? <-- sometimes this doesn't get spoke after playing a message. Seems to be an hs.waitevents related issue...
You: Jane's mailbox
VRAM: There are no new messages.
There are 0 new messages and 2 old messages in Jane's mailbox.
What now?
You: Quit
VRAM: Exiting VR answering machine.
To Set This Up:
---------------
Copy both scripts to your script directory. VRAnsweringMachine-DDW.txt is the main script. VoicemailIncludes-DDW.txt is a bunch of voice mailbox related functions required for the VRAM to work. (You may find them useful for your own scripts.)
Create VR activated event with the VR command:
(Read|List|Play) [the] [old][new] [messages] [in] (mailbox1s|mailbox2s...) (voicemail|mailbox)
replacing mailbox1, mailbox2, etc. with the names of your mailboxes.
This event should call the script:
VRAnsweringMachine-DDW.txt
[This message was edited by dwoolridge on Wed, 28 January 2004 at 10:03 PM.]
Discussion Here...
This is a Voice Recognition driven "Answering Machine" for use with HSPhone messages. I know there's already one out there, but I coded this as a learning experience and thought that it may have some useful features.
My key goal with this was to have quick VR based navigation through the messages. The scripts use system calls so it _should_ work with both a microphone or from the phone.
This script is set up to work with multiple mailboxes.
The VR Answering Machine is started with the following voice command:
(Read|List|Play) [the] [old][new] [messages] [in] (mailbox1s|mailbox2s...) (voicemail|mailbox)
--Read or Play will cause the VRAM to play each message.
--List will only read the Date/Time/CID for the message. You can always say "Play" to hear the message.
--Old/New will tell the VRAM to operate on either the old or new messages in the mailbox. It defaults to the new messages and you can switch between them anytime.
Valid voice commands:
---------------------
Play [message]
Next [message]
Previous [message]
Delete [message]
Repeat [message] <-- Repeats the message Date/CID
(make|mark) [message] new <-- Marks this message "unread"
(make|mark) [message] old <-- Marks this message "read"
First message <-- Goes to the first message in mailbox
Last message <-- Goes to the last message in mailbox
[go to] message (#) <-- Go to message number (only 1-9 works)
Old messages <-- Goes to the old messages in mailbox
New messages <-- Goes to the new messages in mailbox
Help -OR-[List]
commands
List mailboxes <-- Lists all mailbox names that exist
Mailbox status <-- Reads the # of new and old messages currently in the mailbox
(Goodbye|Exit|Quit)
(mailboxname)s mailbox <-- Takes you to another mailbox
Example:
---------
You: List the old messages in John's mailbox
VRAM: There are 2 new messages and 4 old messages in John's mailbox.
Old message 1 left at 9:05 PM on Friday January 16 from John Doe.
What now?
You: Next message
VRAM: Old message 2 left at 10:05 PM on Friday January 16 from Jane Doe.
What now?
You: Last message
VRAM: Old message 4 left at 11:05 PM on Friday January 16 from George W. Bush.
What now?
You: Play message
VRAM: ....blah blah... blah blah...
What now? <-- sometimes this doesn't get spoke after playing a message.
You: Delete message
VRAM: Delete message? Confirm with yes
You: No
VRAM Message not deleted.
What now?
You: Repeat
VRAM: Old message 4 left at 11:05 PM on Friday January 16 from George W. Bush.
What now?
You: New messages
VRAM: New message 1 left at 8:15 PM on Thursday January 16 from John Q. Public.
What now?
You: Previous message
VRAM: Already at start of messages.
What now?
You: Play message
VRAM: ....blah blah... blah blah...
What now? <-- sometimes this doesn't get spoke after playing a message. Seems to be an hs.waitevents related issue...
You: Jane's mailbox
VRAM: There are no new messages.
There are 0 new messages and 2 old messages in Jane's mailbox.
What now?
You: Quit
VRAM: Exiting VR answering machine.
To Set This Up:
---------------
Copy both scripts to your script directory. VRAnsweringMachine-DDW.txt is the main script. VoicemailIncludes-DDW.txt is a bunch of voice mailbox related functions required for the VRAM to work. (You may find them useful for your own scripts.)
Create VR activated event with the VR command:
(Read|List|Play) [the] [old][new] [messages] [in] (mailbox1s|mailbox2s...) (voicemail|mailbox)
replacing mailbox1, mailbox2, etc. with the names of your mailboxes.
This event should call the script:
VRAnsweringMachine-DDW.txt
[This message was edited by dwoolridge on Wed, 28 January 2004 at 10:03 PM.]
Comment