0% found this document useful (0 votes)
3 views2 pages

Output

The program interacts with users through voice commands, responding to specific phrases like 'open notepad' and 'play music' by executing the corresponding actions and providing verbal feedback. If it encounters unrecognized commands, it apologizes or indicates that the command is not recognized. The program continuously listens for commands until it is terminated by the user.

Uploaded by

skaveripatil6
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Output

The program interacts with users through voice commands, responding to specific phrases like 'open notepad' and 'play music' by executing the corresponding actions and providing verbal feedback. If it encounters unrecognized commands, it apologizes or indicates that the command is not recognized. The program continuously listens for commands until it is terminated by the user.

Uploaded by

skaveripatil6
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Output:

1. If the user says "open notepad":

 The program opens Notepad on the user's computer.


 The user hears the program say, "Opening Notepad."

2. If the user says "play music":

 The program opens Windows Media Player (or the default music player
set on the user's computer).
 The user hears the program say, "Playing music."

3. If the program doesn't understand the command or the user says something
unrecognized:

 The program responds with "Sorry, I didn't catch that."

Result:

When you run the program:

1. It greets you with a friendly message, like "Hello! How can I assist you?"
via the text-to-speech system

2. The program then listens for your voice commands and processes them:

 If it hears "open notepad," it launches Notepad on your system and tells


you, "Opening Notepad."
 If it hears "play music," it starts your default media player to play music
and says, "Playing music."
 If it doesn't understand your voice input, it apologizes with "Sorry, I
didn't catch that."
 If the command is not implemented (for example, "close browser"), it
politely says, "Command not recognized”.

3. It keeps running in a loop, continuously listening for your next command,


until you terminate the program.

You might also like