You are on page 1of 57

using System;

using System.Speech.Synthesis;
using System.Speech.Recognition;
using System.Collections;
using System.Media;

namespace we
{
namespace bro

{
namespace Nooo

{
class SpeechRecognizer
{
public System.Speech.Recognition.SpeechRecognizer SpeechRecognize;
public Grammar grammarSet;
public ArrayList arszGrammarSet;
public bool SpeechEventRegistered;
private EventHandler<SpeechRecognizedEventArgs> SpeechHandler;

public EventHandler<SpeechRecognizedEventArgs>
SpeechRecognize_speechRecognized { get; private set; }

public SpeechRecognizer()
{
SpeechRecognize = new
System.Speech.Recognition.SpeechRecognizer();
arszGrammarSet = new ArrayList();
SpeechEventRegistered = false;
}

public void AddChoices(string[] choicesToAdd)


{
if (choicesToAdd != null || choicesToAdd[0] != string.Empty)
{
Choices speechChoices = new Choices();
GrammarBuilder grammarBuild = new GrammarBuilder();

// Clear the array


foreach (string sbzString in arszGrammarSet)
{
arszGrammarSet.Remove(sbzString);
}

// Add the new choices


foreach (string choiceToAdd in choicesToAdd)
{
speechChoices.Add(choiceToAdd);
arszGrammarSet.Add(choiceToAdd);
}

// Build the grammar set


grammarBuild.Append(speechChoices);
grammarSet = new Grammar(grammarBuild);

// Make sure there isn't something arbitrarily


registered...
if (SpeechHandler != null)
{
UnregisterEvents();
}
SpeechRecognize.LoadGrammar(grammarSet);
RegisterEvents();
}
}
public void AppendChoices(string[] choicesToAppend)
{
if (choicesToAppend != null || choicesToAppend[0] !=
string.Empty && arszGrammarSet.Count > 0)
{
Choices speechChoices = new Choices();
GrammarBuilder grammarBuild = new GrammarBuilder();

// Add the original choices to the new choices object.


foreach (string choiceToAdd in arszGrammarSet)
{
speechChoices.Add(choiceToAdd);
}

// Add the new choices from the arguments, effectively


'appending'.
foreach (string choiceToAdd in choicesToAppend)
{
speechChoices.Add(choiceToAdd);
arszGrammarSet.Add(choiceToAdd);
}

// Build the grammar set.


grammarBuild.Append(speechChoices);
grammarSet = new Grammar(grammarBuild);

// Uninstall the old event handler and install the new.


// Hehe Yucky this is the thing I learned. :3
UnregisterEvents();
SpeechRecognize.LoadGrammar(grammarSet);
RegisterEvents();
}

public void RemoveChoices(string[] choicesToRemove)


{
if (choicesToRemove != null || choicesToRemove[0] !=
string.Empty && arszGrammarSet.Count > 0)
{
Choices speechChoices = new Choices();
GrammarBuilder grammarBuild = new GrammarBuilder();

// Remove the choices from the array that we requested.


foreach (string choiceToRemove in choicesToRemove)
{
try
{
arszGrammarSet.Remove(choiceToRemove);
}
catch
{
// It could cause an exception if the string
doesn't exist in the set.
// maybe end-user fat fingered something, just
continue.
continue;
}
}

// Add the new strings from the array, effectively


'removing'.
foreach (string choiceToAdd in arszGrammarSet)
{
speechChoices.Add(choiceToAdd);
}

// Build the grammar set.


grammarBuild.Append(speechChoices);
grammarSet = new Grammar(grammarBuild);

// Uninstall the old event handler and install the new.


// Hehe Yucky this is the thing I learned. :3
UnregisterEvents();
SpeechRecognize.LoadGrammar(grammarSet);
RegisterEvents();
}

public void RegisterEvents()


{
SpeechHandler = new
EventHandler<SpeechRecognizedEventArgs>(SpeechRecognize_speechRecognized);
SpeechRecognize.SpeechRecognized += SpeechHandler;
SpeechEventRegistered = true;
}

public void UnregisterEvents()


{
if (SpeechHandler != null)
{
SpeechRecognize.SpeechRecognized -= SpeechHandler;
SpeechHandler = null;
SpeechEventRegistered = false;
}
}

static void Main(string[] args)

SpeechRecognitionEngine _recognizer = new


SpeechRecognitionEngine();
new System.Globalization.CultureInfo("en-US");
var _SS = new SpeechSynthesizer();
_SS.SetOutputToDefaultAudioDevice();

Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Good Morning!");
_SS.Speak("Good Morning");
Console.WriteLine("
");
Console.WriteLine("Kindly State Your Name");
_SS.Speak("Kindly State Your Name");
Console.WriteLine("
");
string name = (Console.ReadLine());
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine(" Good Morning {0}, How may I help you
today?", name);
_SS.Speak(string.Format(" Good Morning {0}, How may I help
you today?", name));

int rdr1 = 0;
while (rdr1 == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Type the option of your choice:");
Console.WriteLine("
");
Console.WriteLine("Order");
Console.WriteLine("Song");
Console.WriteLine("Jokes");
Console.WriteLine("Calculator");
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
_SS.Speak("Please Pick an Option");
_SS.Speak("Please type your option correctly");
Console.WriteLine("
");

string choice = Convert.ToString(Console.ReadLine());

if (choice == "Order")

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Pick From Options");
Console.WriteLine("Pepperoni - $10");
Console.WriteLine("Hawaiian - $20");
Console.WriteLine("Chicken Ranch - $25");
Console.WriteLine("BBQ - $15");
Console.WriteLine("Cheese - $15");
_SS.Speak("Kindly Pick from the following
options");
Console.WriteLine("
");

string pick = Convert.ToString(Console.ReadLine());

if (pick == "Pepperoni")
{

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Pepperoni - $10");
_SS.Speak("1 Pepperoni Pizza costs 10 dollars,
Will you buy this menu item?");
Console.WriteLine("
");
int a = 0;
while (a == 0)
{
Console.WriteLine("[Y/N]");
Console.WriteLine("
");
string answer =
Convert.ToString(Console.ReadLine());
if (answer == "Y")
{
Console.WriteLine("How many Pizzas will
you order?");

Console.WriteLine("
");
_SS.Speak("How many Pizzas will you
order?");
Console.WriteLine("
");
int pizzanum =
Convert.ToInt32(Console.ReadLine());

int pizzaprice =
Convert.ToInt16(pizzanum * 10);
Console.WriteLine("
");

Console.WriteLine("Payment Due:${0}",
pizzaprice);
_SS.Speak($"You need to pay
{pizzaprice} dollars");
Console.WriteLine("
");
Console.WriteLine("Received!");
Console.WriteLine("
");
_SS.Speak("It will be delivered shortly");

Console.ReadLine();

a += 1;

}
else if (answer == "N")
{
a += 1;
}

}
}
if (pick == "Hawaiian")
{

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Hawaiian - $20");
Console.WriteLine("
");
_SS.Speak("Hawaiian costs 20 dollars, Will you buy
this menu item?");
int a = 0;
while (a == 0)
{
Console.WriteLine("[Y/N]");
Console.WriteLine("
");
string answer =
Convert.ToString(Console.ReadLine());
if (answer == "Y")
{
Console.WriteLine("
");
Console.WriteLine("How many Pizzas will you
order?");
_SS.Speak("How many Pizzas will you
order?");
Console.WriteLine("
");
int pizzanum =
Convert.ToInt32(Console.ReadLine());

int pizzaprice =
Convert.ToInt16(pizzanum * 20);

Console.WriteLine("
");
Console.WriteLine("Payment Due:${0}",
pizzaprice);
Console.WriteLine("
");
_SS.Speak($"You need to pay {pizzaprice}
dollars");

Console.WriteLine("Received!");
Console.WriteLine("
");
_SS.Speak("It will be delivered shortly");

Console.ReadLine();
a += 1;

}
else if (answer == "N")
{
a += 1;
}
}

}
if (pick == "Chicken Ranch")
{

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Chicken Ranch - $25");
Console.WriteLine("
");
_SS.Speak("Chicken Ranch costs 25 dollars, Will you
buy this item?");
int a = 0;
while (a == 0)
{
Console.WriteLine("
");
Console.WriteLine("[Y/N]");
string answer =
Convert.ToString(Console.ReadLine());
if (answer == "Y")
{
Console.WriteLine("How many Pizzas will
you order?");
Console.WriteLine("
");
_SS.Speak("How many Pizzas will you
order?");
int pizzanum =
Convert.ToInt32(Console.ReadLine());

int pizzaprice =
Convert.ToInt16(pizzanum * 25);

Console.WriteLine("Payment Due:${0}",
pizzaprice);
Console.WriteLine("
");
_SS.Speak($"You need to pay {pizzaprice}
dollars");

Console.WriteLine("Received!");
Console.WriteLine("
");
_SS.Speak("It will be delivered shortly");

Console.ReadLine();
a += 1;

}
else if (answer == "N")
{
a += 1;
}
}

}
if (pick == "BBQ")
{

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("BBQ is $15");
Console.WriteLine("
");
_SS.Speak("BBQ will cost 15 dollars,Will you buy
this item?");
int a = 0;
while (a == 0)
{
Console.WriteLine("[Y/N]");
string answer =
Convert.ToString(Console.ReadLine());
if (answer == "Y")
{
Console.WriteLine("How many Pizzas will
you order?");
Console.WriteLine("
");
_SS.Speak("How many Pizzas will you
order?");
int pizzanum =
Convert.ToInt32(Console.ReadLine());

int pizzaprice =
Convert.ToInt16(pizzanum * 15);

Console.WriteLine("Payment Due:${0}",
pizzaprice);
Console.WriteLine("
");
_SS.Speak($"You need to pay {pizzaprice}
dollars");

Console.WriteLine("Received!");
Console.WriteLine("
");
_SS.Speak("It will be delivered shortly");

Console.ReadLine();
a += 1;

}
else if (answer == "N")
{
a += 1;
}
}

if (pick == "Cheese")
{

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Cheese is $15");
Console.WriteLine("
");
_SS.Speak("Cheese will cost 15 dollars,Will you buy
this item?");
int a = 0;
while (a == 0)
{
Console.WriteLine("[Y/N]");
Console.WriteLine("
");
string answer =
Convert.ToString(Console.ReadLine());
if (answer == "Y")
{
Console.WriteLine("How many Pizzas will
you order?");
_SS.Speak("How many Pizzas will you
order?");
Console.WriteLine("
");
int pizzanum =
Convert.ToInt32(Console.ReadLine());

int pizzaprice =
Convert.ToInt16(pizzanum * 15);

Console.WriteLine("Payment Due:${0}",
pizzaprice);
Console.WriteLine("
");
_SS.Speak($"You need to pay {pizzaprice}
dollars");

Console.WriteLine("Received!");
Console.WriteLine("
");
_SS.Speak("It will be delivered shortly");

Console.ReadLine();
a += 1;

else if (answer == "N")

a += 1;
}
}
}
}

else if (choice == "Song")


{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Pick a Genre to Play!");
Console.WriteLine("OPM");
Console.WriteLine("Rock");
Console.WriteLine("Pop");
Console.WriteLine("
");
_SS.Speak("Kindly Pick a Genre");
string songngenre = (Console.ReadLine());

if (songngenre == "OPM")

{
int a = 0;
while (a == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Pick the Number of
Your Choice");
Console.WriteLine("1. Magbalik -
Callalily");
Console.WriteLine("2. Pasilyo -
Sunkissed Lola");
Console.WriteLine("3. Jopay -
Mayonnaise");
Console.WriteLine("4. Umaasa -
Calein");
Console.WriteLine("5. Ligaya - mrld");
Console.WriteLine("6. Tuloy Pa Rin -
Neocolours");
Console.WriteLine("7. Titibo-Tibo - Moira
Dela Torre");
Console.WriteLine("8. Hindi Tayo Pwede -
The Juans");
Console.WriteLine("9. Paraiso - Smokey
Mountain");
Console.WriteLine("10. Pangarap Ko Ang
Ibigin Ka - Morissette Amon");
Console.WriteLine("11. Ikaw - Yeng
Constantino");
Console.WriteLine("12. Dadalhin - Regine
Velasquez");
Console.WriteLine("13. Pagdating Ng Panahon
- Aiza Seguerra");
_SS.Speak("Pick a Song!");

string song = Console.ReadLine();


if (song == "1")

{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Magbalik
- Callalily");
SoundPlayer("Callalily -
Magbalik(Lyrics).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{

Console.WriteLine("Press 1 to Play");

Console.WriteLine("Press 2 to Exit");
}
int z = 0;
while (z == 0)
{ string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{z += 1;
kuk += 1;}
}
}
}

if (song == "2")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Pasilyo
- Sunkissed Lola");
SoundPlayer("SunKissed Lola -
Pasilyo.wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "3")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Jopay -
Mayonnaise");
SoundPlayer("Mayonnaise - Jopay
(Lyrics).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "4")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Umaasa -
Calein");
SoundPlayer("CALEIN - Umaasa
(Official Lyric Video).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "5")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Ligaya -
mrld");
SoundPlayer("mrld - Ligaya
(Official Audio).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "6")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Tuloy Pa
Rin - Neocolours");
SoundPlayer("TULOY PA RIN (Lyrics)
- NEOCOLOURS.wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "7")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Titibo-
Tibo - Moira Dela Torre");
SoundPlayer("Titibo-tibo - Moira
Dela Torre (Music Video) Himig Handog 2017.wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "8")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Hindi
Tayo Pwede - The Juans");
SoundPlayer("The Juans - Hindi Tayo
Pwede (Official Audio).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "9")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Paraiso
- Smokey Mountain");
SoundPlayer("PARAISO Smokey
Mountain.wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "10")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Pangarap
Ko Ang Ibigin Ka - Morissette Amon");
SoundPlayer("Morissette Amon -
Pangarap Ko Ang Ibigin Ka (Lyrics).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "11")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Ikaw -
Yeng Constantino");
SoundPlayer("Ikaw - Yeng
Constantino Lyrics.wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "12")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Dadalhin
- Regine Velasquez");
SoundPlayer("Dadalhin Lyrics Regine
Velasquez - Alcasid.wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "13")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing
Pagdating Ng Panahon - Aiza Seguerra");
SoundPlayer("Aiza Seguerra
Pagdating ng Panahon [Lyric Video with Chords].wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
}
}
if (songngenre == "Rock")

{
int a = 0;
while (a == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Pick the Number of Your
Choice");
Console.WriteLine("1. Sweet Child 'o Mine -
Guns and Roses");
Console.WriteLine("2. Smells like Teen
Spirit - Nirvana");
Console.WriteLine("3. 21 Guns - Green
Day");
Console.WriteLine("4. Thunderstruck -
AC/DC");
Console.WriteLine("5. Back in Black -
AC/DC");
Console.WriteLine("6. Always - Bon Jovi");
Console.WriteLine("7. Dream On -
Aerosmith");
Console.WriteLine("8. Master Of Puppets -
Metallica");
Console.WriteLine("9. Hey Jude - The
Beatles");
Console.WriteLine("10. Wake Me When
September Ends - Green Day");
_SS.Speak("Pick a Song!");
string song = Console.ReadLine();

if (song == "1")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Sweet
Child 'o Mine - Guns and Roses");
SoundPlayer("Guns N' Roses - Sweet
Child O' Mine (Official Music Video).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "2")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Smells
like Teen Spirit - Nirvana");
SoundPlayer("Nirvana - Smells Like
Teen Spirit (Official Music Video).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "3")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing 21 Guns
- Green Day");
SoundPlayer("Green Day - 21 Guns
[Official Music Video].wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "4")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing
Thunderstruck - AC/DC");
SoundPlayer("ACDC - Thunderstruck
(Official Video).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "5")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Back in
Black - AC/DC");
SoundPlayer("ACDC - Back In Black
(Official Video).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "6")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Always -
Bon Jovi");
SoundPlayer("Bon Jovi - Always
(Official Music Video).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "7")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Dream On
- Aerosmith");
SoundPlayer("Aerosmith - Dream On
(Official Audio).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "8")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Master
Of Puppets - Metallica");
SoundPlayer("Master of Puppets
(Remastered).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}
}
if (song == "9")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Hey Jude
- The Beatles");
SoundPlayer("Hey Jude (Remastered
2015).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "10")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Wake Me
When September Ends - Green Day");
SoundPlayer("Green Day - Wake Me Up
When September Ends Lyrics.wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}
}

}
if (songngenre == "Pop")

{
int a = 0;
while (a == 0)
{

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Pick the Number of Your
Choice");
Console.WriteLine("1. As it was - Harry
Styles");
Console.WriteLine("2. Firework - Katy
Perry");
Console.WriteLine("3. Rolling in the Deep -
Adele");
Console.WriteLine("4. Happy - Pharell
Williams");
Console.WriteLine("5. Golden Hour - JVKE");
Console.WriteLine("6. Call Me Maybe - Carly
Rae Jepsen");
Console.WriteLine("7. Stay With Me - Miki
Matsubara");
Console.WriteLine("8. What Makes You
Beautiful - One Direction");
Console.WriteLine("9. Chandelier - Sia");
Console.WriteLine("10. All I Want For
Christmas Is You - Mariah Carey");
_SS.Speak("Pick a Song!");
string song = Console.ReadLine();

if (song == "1")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing As it
was - Harry Styles");
SoundPlayer("Harry Styles - As It
Was (Official Video).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}
}
if (song == "2")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Firework
- Katy Perry");
SoundPlayer("Katy Perry - Firework
(Official Music Video).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "3")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Rolling
in the Deep - Adele");
SoundPlayer("Adele - Rolling in the
Deep (Official Music Video).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "4")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Happy -
Pharell Williams");
SoundPlayer("Pharrell Williams -
Happy (Video).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (song == "5")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Golden
Hour - JVKE");
SoundPlayer("JVKE - golden hour
(official music video).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

if (song == "6")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Call Me
Maybe - Carly Rae Jepsen");
SoundPlayer("Carly Rae Jepsen -
Call Me Maybe.wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

if (song == "7")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing Stay
With Me - Miki Matsubara");
SoundPlayer("Miki Matsubara-
Mayonaka No Door (Stay With Me) Lyrics.wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

if (song == "8")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing What
Makes You Beautiful - One Direction");
SoundPlayer("One Direction - What
Makes You Beautiful (Official Video).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

if (song == "9")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing
Chandelier - Sia");
SoundPlayer("Sia - Chandelier
(Official Video).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

if (song == "10")
{
a += 1;
int f = 1;
int kuk = 0;
while (kuk == 0)
{
Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Playing All I
Want For Christmas Is You - Mariah Carey");
SoundPlayer("Mariah Carey - All I
Want for Christmas Is You (Make My Wish Come True Edition).wav", f);
if (f == 1)
{ Console.WriteLine("Press 1 to
Stop"); }
else if (f == 0)
{
Console.WriteLine("Press 1 to
Play");
Console.WriteLine("Press 2 to
Exit");
}
int z = 0;
while (z == 0)
{
string t = Console.ReadLine();
if (t == "1")
{
z += 1;
int lkdsfj = f == 1 ? f -=
1 : f += 1;
}
else if (t == "2" & f == 0)
{
z += 1;
kuk += 1;
}
}
}

}
if (choice == "Jokes")
{

Console.WriteLine("
");

Console.WriteLine("_____________________________________________________");
Console.WriteLine("
");
Console.WriteLine("Pick a category");
Console.WriteLine("1. Dad Jokes");
Console.WriteLine("2. Puns");
Console.WriteLine("3. Pickup Lines");
_SS.Speak("Pick a Joke Category");
int jokev = Convert.ToInt32(Console.ReadLine());
Random a = new Random();
int b = a.Next(1, 20);

if (jokev == 1)
{
if (b == 1)
{
Console.WriteLine("
");
Console.WriteLine("What do you call a werewolf who
doesn’t know they’re a werewolf?");
_SS.Speak("What do you call a werewolf who doesn’t
know they’re a werewolf?");
_SS.Speak("An unawarewolf!");
Console.ReadLine();
}

if (b == 2)
{
Console.WriteLine("
");
Console.WriteLine("I am terrified of elevators.");
_SS.Speak("I am terrified of elevators");
_SS.Speak("I'm going to take steps to avoid
them.");
Console.ReadLine();

if (b == 3)
{
Console.WriteLine("
");
Console.WriteLine("Two slices of bread got
married.");
_SS.Speak("Two slices of bread got married.");
_SS.Speak(" The wedding was amazing until someone
decided to toast the bride and groom.");
Console.ReadLine();

if (b == 4)
{
Console.WriteLine("
");
Console.WriteLine("I made a pencil with two
erasers.");
_SS.Speak("I made a pencil with two erasers.");
_SS.Speak("It was pointless!");
Console.ReadLine();

if (b == 5)
{
Console.WriteLine("
");
Console.WriteLine("I'm reading a book about anti-
gravity.");
_SS.Speak("I'm reading a book about anti-
gravity.");
_SS.Speak(" It's impossible to put down!");
Console.ReadLine();

if (b == 6)
{
Console.WriteLine("
");
Console.WriteLine("Want to hear a joke about a
piece of paper?");
_SS.Speak("Want to hear a joke about a piece of
paper?");
_SS.Speak("Never mind... it's tearable.");
Console.ReadLine();

if (b == 7)
{
Console.WriteLine("
");
Console.WriteLine("What’s Forrest Gump’s
password?");
_SS.Speak("What’s Forrest Gump’s password?");
_SS.Speak("1forrest1");
Console.ReadLine();

if (b == 8)
{
Console.WriteLine("
");
Console.WriteLine("I bought some shoes from a drug
dealer. ");
_SS.Speak("I bought some shoes from a drug
dealer.");
_SS.Speak("I don't know what he laced them with,
but I was tripping all day!");
Console.ReadLine();

if (b == 9)
{
Console.WriteLine("
");
Console.WriteLine("Two peanuts were walking down
the street.");
_SS.Speak("Two peanuts were walking down the
street.");
_SS.Speak("One was a salted.");
Console.ReadLine();

if (b == 10)
{
Console.WriteLine("
");
Console.WriteLine("Why did the invisible man turn
down the job offer?");
_SS.Speak("Why did the invisible man turn down the
job offer?");
_SS.Speak("He couldn't see himself doing it.");
Console.ReadLine();

}
if (b == 11)
{
Console.WriteLine("
");
Console.WriteLine("When you ask a dad if he's
alright .");
_SS.Speak("hen you ask a dad if he's alright ");
_SS.Speak("No, I’m half left");
Console.ReadLine();

if (b == 12)
{
Console.WriteLine("
");
Console.WriteLine("Did you hear the news? FedEx and
UPS are merging.");
_SS.Speak("Did you hear the news? FedEx and UPS are
merging.");
_SS.Speak("They’re going to go by the name Fed-Up
from now on.");
Console.ReadLine();

if (b == 13)
{
Console.WriteLine("
");
Console.WriteLine("MOM: How do I look?");
_SS.Speak("MOM: How do I look?");
_SS.Speak("DAD: With your eyes.");
Console.ReadLine();

if (b == 14)
{
Console.WriteLine("
");
Console.WriteLine("Did you hear about the circus
fire?");
_SS.Speak("Did you hear about the circus fire?");
_SS.Speak("It was in tents!");
Console.ReadLine();

if (b == 15)
{
Console.WriteLine("
");
Console.WriteLine("Don't trust atoms");
_SS.Speak("Don't trust atoms");
_SS.Speak("They make up everything!");
Console.ReadLine();

}
if (b == 16)
{
Console.WriteLine("
");
Console.WriteLine(" What did one tectonic plate say
when he bumped into the other?");
_SS.Speak(" What did one tectonic plate say when he
bumped into the other?");
_SS.Speak("Sorry! My fault");
Console.ReadLine();

if (b == 17)
{
Console.WriteLine("
");
Console.WriteLine("What type of fish is made out of
2 sodium atoms?");
_SS.Speak("What type of fish is made out of 2
sodium atoms?");
_SS.Speak("2 Na");
Console.ReadLine();

if (b == 18)
{
Console.WriteLine("
");
Console.WriteLine("What did the volcano say to his
beautiful wife?");
_SS.Speak("What did the volcano say to his
beautiful wife?");
_SS.Speak("I lava you");
Console.ReadLine();

if (b == 19)
{
Console.WriteLine("
");
Console.WriteLine("How do you throw a party in
space?");
_SS.Speak("How do you throw a party in space?");
_SS.Speak("You planet");
Console.ReadLine();

if (b == 20)
{
Console.WriteLine("
");
Console.WriteLine("Why doesn't the photon have any
luggage?");
_SS.Speak("Why doesn't the photon have any
luggage?");
_SS.Speak(" He's traveling light");
Console.ReadLine();

}
if (jokev == 2)
{

if (b == 1)
{
Console.WriteLine("
");
Console.WriteLine("I don’t trust stairs");
_SS.Speak("I don’t trust stairs");
_SS.Speak("They’re always up to something.");
Console.ReadLine();

if (b == 2)
{
Console.WriteLine("
");
Console.WriteLine("Why was Dumbo sad?");
_SS.Speak("Why was Dumbo sad?");
_SS.Speak("He felt irrelephant.");
Console.ReadLine();

if (b == 3)
{
Console.WriteLine("
");
Console.WriteLine("A man sued an airline
company after it lost his luggage.");
_SS.Speak("A man sued an airline company after
it lost his luggage.");
_SS.Speak("Sadly, he lost his case.");
Console.ReadLine();

if (b == 4)

{
Console.WriteLine("
");
Console.WriteLine("I lost my mood ring");
_SS.Speak("I lost my mood ring");
_SS.Speak("I don't know how to feel about
it!");
Console.ReadLine();

if (b == 5)
{
Console.WriteLine("
");
Console.WriteLine("Yesterday, I accidentally
swallowed some food coloring");
_SS.Speak("Yesterday, I accidentally swallowed
some food coloring");
_SS.Speak("The doctor says I’m okay, but I feel
like I’ve dyed a little inside");
Console.ReadLine();

if (b == 6)
{
Console.WriteLine("
");
Console.WriteLine("What do you use to cut a
Roman Emperor's hair?");
_SS.Speak("What do you use to cut a Roman
Emperor's hair?");
_SS.Speak("Ceasers");
Console.ReadLine();

if (b == 7)
{
Console.WriteLine("
");
Console.WriteLine("My sister bet that I
couldn’t build a car out of spaghetti");
_SS.Speak("My sister bet that I couldn’t build
a car out of spaghetti");
_SS.Speak("You should’ve seen her face when I
drove pasta");
Console.ReadLine();

if (b == 8)
{
Console.WriteLine("
");
Console.WriteLine("Never discuss infinity with
a mathematician");
_SS.Speak("Never discuss infinity with a
mathematician");
_SS.Speak("they can go on about it forever");
Console.ReadLine();

if (b == 9)
{
Console.WriteLine("
");
Console.WriteLine("My friend’s bakery burned
down last night");
_SS.Speak("My friend’s bakery burned down last
night");
_SS.Speak("Now his business is toast");
Console.ReadLine();

if (b == 10)
{
Console.WriteLine("
");
Console.WriteLine("I can’t believe I got fired
from the calendar factory");
_SS.Speak("I can’t believe I got fired from the
calendar factory");
_SS.Speak("All I did was take a day off!");
Console.ReadLine();

if (b == 11)
{
Console.WriteLine("
");
Console.WriteLine("England doesn't have a
kidney bank");
_SS.Speak("England doesn't have a kidney
bank");
_SS.Speak("but it does have a Liverpool");
Console.ReadLine();

if (b == 12)
{
Console.WriteLine("
");
Console.WriteLine("What do you call the
smartest monster of them all?");
_SS.Speak("What do you call the smartest
monster of them all?");
_SS.Speak("FrankEinstein");
Console.ReadLine();

if (b == 13)
{
Console.WriteLine("
");
Console.WriteLine("What did the girl say when
her lab partner hit her with a human bone?");
_SS.Speak("What did the girl say when her lab
partner hit her with a human bone?");
_SS.Speak("That’s humerus.");
Console.ReadLine();

if (b == 14)
{
Console.WriteLine("
");
Console.WriteLine("What kind of dog does a
scientist have?");
_SS.Speak("What kind of dog does a scientist
have?");
_SS.Speak("A lab");
Console.ReadLine();

if (b == 15)
{
Console.WriteLine("
");
Console.WriteLine("Where does bad light end
up?");
_SS.Speak("Where does bad light end up?");
_SS.Speak("In prism");
Console.ReadLine();

if (b == 16)
{
Console.WriteLine("
");
Console.WriteLine("I wasn’t originally going to
get a brain transplant");
_SS.Speak("I wasn’t originally going to get a
brain transplant");
_SS.Speak("but then I changed my mind.");
Console.ReadLine();

if (b == 17)
{
Console.WriteLine("
");
Console.WriteLine("What do you call an
alligator in a vest?");
_SS.Speak("What do you call an alligator in a
vest?");
_SS.Speak("An investigator.");
Console.ReadLine();
}

if (b == 18)
{
Console.WriteLine("
");
Console.WriteLine("The machine at the coin
factory just suddenly stopped working, with no explanation.");
_SS.Speak("The machine at the coin factory just
suddenly stopped working, with no explanation.");
_SS.Speak("It doesn’t make any cents.");
Console.ReadLine();

if (b == 19)
{
Console.WriteLine("
");
Console.WriteLine("Somebody stole all my
lamps.");
_SS.Speak("Somebody stole all my lamps.");
_SS.Speak("I couldn’t be more de-lighted!");
Console.ReadLine();

if (b == 20)
{
Console.WriteLine("
");
Console.WriteLine("My ex-wife still misses
me.");
_SS.Speak("My ex-wife still misses me.");
_SS.Speak("But her aim is starting to
improve!");
Console.ReadLine();

}
if (jokev == 3)
{

if (b == 1)
{
Console.WriteLine("
");
Console.WriteLine("Are you from Tennessee?");
_SS.Speak("Are you from Tennessee?");
_SS.Speak("Because you're the only 10 I see.");
Console.ReadLine();

if (b == 2)
{
Console.WriteLine("
");
Console.WriteLine("I’m not a photographer");
_SS.Speak("I’m not a photographer");
_SS.Speak("but I can picture me and you
together.");
Console.ReadLine();

if (b == 3)
{
Console.WriteLine("
");
Console.WriteLine("Did it hurt?");
_SS.Speak("Did it hurt?");
_SS.Speak("When you fell from heaven?");
Console.ReadLine();

if (b == 4)
{
Console.WriteLine("
");
Console.WriteLine("If I could rearrange the
alphabet");
_SS.Speak("If I could rearrange the
alphabet,");
_SS.Speak("I’d put “U” and “I” together.");
Console.ReadLine();

if (b == 5)
{
Console.WriteLine("
");
Console.WriteLine("They say Disney World is the
happiest place on Earth");
_SS.Speak("They say Disney World is the
happiest place on Earth");
_SS.Speak("but clearly they've never stood next
to you");
Console.ReadLine();

if (b == 6)
{
Console.WriteLine("
");
Console.WriteLine("Do you know what the Little
Mermaid and I have in common?");
_SS.Speak("Do you know what the Little Mermaid
and I have in common?");
_SS.Speak("We both want to be part of your
world.");
Console.ReadLine();

if (b == 7)
{
Console.WriteLine("
");
Console.WriteLine("You remind me of a magnet");
_SS.Speak("You remind me of a magnet");
_SS.Speak("because you sure are attracting me
over here.");
Console.ReadLine();

if (b == 8)
{
Console.WriteLine("
");
Console.WriteLine("Are you Australian?");
_SS.Speak("Are you Australian?");
_SS.Speak("Because you meet all of my
koalafications.");
Console.ReadLine();

if (b == 9)
{
Console.WriteLine("
");
Console.WriteLine("Know what's on the menu?");
_SS.Speak("Know what's on the menu?");
_SS.Speak("Me.N.U.");
Console.ReadLine();

if (b == 10)
{
Console.WriteLine("
");
Console.WriteLine("You look so familiar.");
_SS.Speak("You look so familiar.");
_SS.Speak("Didn't we take a class together? I
could've sworn we had chemistry.");
Console.ReadLine();

if (b == 11)
{
Console.WriteLine("
");
Console.WriteLine("Is it OK if I follow you out
of here?");
_SS.Speak("Is it OK if I follow you out of
here?");
_SS.Speak("My parents always told me to follow
my dreams.");
Console.ReadLine();

if (b == 12)
{
Console.WriteLine("
");
Console.WriteLine("Do you like Star Wars? ");
_SS.Speak("Do you like Star Wars? ");
_SS.Speak("Cause Yoda only one for me.");
Console.ReadLine();

if (b == 13)
{
Console.WriteLine("
");
Console.WriteLine("I'm not so good at holding
conversations");
_SS.Speak("I'm not so good at holding
conversations");
_SS.Speak("is it OK if I hold your hand
instead?");
Console.ReadLine();

if (b == 14)
{
Console.WriteLine("
");
Console.WriteLine("Would you like to see a
picture of a beautiful person?");
_SS.Speak("Would you like to see a picture of a
beautiful person?");
_SS.Speak("OK… let me find a mirror.");
Console.ReadLine();

if (b == 15)
{
Console.WriteLine("
");
Console.WriteLine("Do you play Nintendo?");
_SS.Speak("Do you play Nintendo?");
_SS.Speak("Because I think Wii look good
together.");
Console.ReadLine();
}

if (b == 16)
{
Console.WriteLine("
");
Console.WriteLine("I seem to have lost my phone
number.");
_SS.Speak("I seem to have lost my phone
number.");
_SS.Speak("Can I have yours?");
Console.ReadLine();

if (b == 17)
{
Console.WriteLine("
");
Console.WriteLine("Have I mentioned that I'm
writing a book?");
_SS.Speak("Have I mentioned that I'm writing a
book?");
_SS.Speak("A phone book to be precise… but it's
missing your number.");
Console.ReadLine();

if (b == 18)
{
Console.WriteLine("
");
Console.WriteLine("Are you a compound of
beryllium and barium?");
_SS.Speak("Are you a compound of beryllium and
barium?");
_SS.Speak("Because you’re a total BaBe.");
Console.ReadLine();

if (b == 19)
{
Console.WriteLine("
");
Console.WriteLine("Even if there wasn’t gravity
on Earth");
_SS.Speak("Even if there wasn’t gravity on
Earth");
_SS.Speak("I’d still fall for you.");
Console.ReadLine();

if (b == 20)
{
Console.WriteLine("
");
Console.WriteLine("We have great chemistry");
_SS.Speak("We have great chemistry");
_SS.Speak("let’s do some biology.");
Console.ReadLine();

}
}

if (choice == "Calculator")
{

double DoOperation(double num1, double num2, string op)


{
double result = double.NaN;
switch (op)
{
case "a":
result = num1 + num2;
break;
case "s":
result = num1 - num2;
break;
case "m":
result = num1 * num2;
break;
case "d":

if (num2 != 0)
{
result = num1 / num2;
}
break;

default:
break;
}
return result;
}
bool endApp = false;

while (!endApp)
{

string numInput1 = "";


string numInput2 = "";
double result = 0;
Console.Write("Type a number, and then press Enter:
");
numInput1 = Console.ReadLine();

double cleanNum1 = 0;
while (!double.TryParse(numInput1, out cleanNum1))
{
Console.Write("This is not valid input. Please
enter an integer value: ");
numInput1 = Console.ReadLine();
}

Console.Write("Type another number, and then press


Enter: ");
numInput2 = Console.ReadLine();

double cleanNum2 = 0;
while (!double.TryParse(numInput2, out cleanNum2))
{
Console.Write("This is not valid input. Please
enter an integer value: ");
numInput2 = Console.ReadLine();
}

Console.WriteLine("Choose an operator from the


following list:");
Console.WriteLine("\ta - Add");
Console.WriteLine("\ts - Subtract");
Console.WriteLine("\tm - Multiply");
Console.WriteLine("\td - Divide");
Console.Write("Your option? ");

string op = Console.ReadLine();

try
{
result = DoOperation(cleanNum1, cleanNum2, op);
if (double.IsNaN(result))
{
Console.WriteLine("This operation will
result in a mathematical error.\n");
}
else Console.WriteLine("Your result: {0:0.##}\
n", result);
}
catch (Exception e)
{
Console.WriteLine("Oh no! An exception occurred
trying to do the math.\n - Details: " + e.Message);
}

Console.WriteLine("------------------------\n");

Console.Write("Press 'n' and Enter to close the


app, or press any other key and Enter to continue: ");
if (Console.ReadLine() == "n") endApp = true;

if (choice == "The Virgins")


{
Console.WriteLine("Meet The Virgins");
_SS.Speak("MEET THE VIRGINS!!!");
Console.WriteLine("The Virgins is a Cover Group");
Console.WriteLine("Members:");
Console.WriteLine("- John Eliz");
Console.WriteLine("- Alfredo (Ace) ");
Console.WriteLine("- Dean Christopher");
Console.WriteLine("- Zyon Gregg");
_SS.Speak("Here are the Members!");

Console.WriteLine("Pick a Cover Song to Play");


int csong = Convert.ToInt32(Console.ReadLine());
_SS.Speak("Select the number of your choice");

if (csong == 1)
{

if (choice == "Options")
{
Console.WriteLine("Options");
Console.WriteLine("______________________");
Console.WriteLine(" ");
Console.WriteLine("1. Close the Program");
Console.WriteLine("2. Credits");
int ans = Convert.ToInt32(Console.ReadLine());
if (ans == 1)
{
Console.WriteLine("Closing Program....");
Console.ReadLine();

}
if (ans == 2)
{
Console.WriteLine("Credits:");
Console.WriteLine("Zyon Manlulu - Main Coder");
Console.WriteLine("Alfredo Alumbro - Assistant
Coder, Bug Fixer");
Console.WriteLine("Dean Christopher -
Researcher");
Console.WriteLine("John Eliz - Lead Singer");
Console.ReadLine();

}
}

private static void SoundPlayer(string v)


{
throw new NotImplementedException();

private static void _recognizer_SpeechRecognized(object sender,


SpeechRecognizedEventArgs e)
{
throw new NotImplementedException();
}

private static void SoundPlayer(string filepath, int a)


{
SoundPlayer musicPlayer = new SoundPlayer();
musicPlayer.SoundLocation = filepath;
if (a != 0)
{
musicPlayer.Play();
}
else if (a != 1)
{
musicPlayer.Stop();
}

}
}
}

You might also like