public SkillResponse Introduction(WordAttributes wordAttributes) { LOGGER.log.INFO("ShortVowels", "Introduction", "WORD: " + wordAttributes.Word); string teachModel = "In the alphabet, there are two types of letters."; string vowel = wordAttributes.Vowel; string vowelSound = wordAttributes.VowelPhoneme; teachModel += SSML.PauseFor(0.5); teachModel += "Vowels and Consonants."; teachModel += SSML.PauseFor(0.5); teachModel += "Can you say Vowels?"; teachModel += SSML.PauseFor(0.5); teachModel += "Can you say Consonants?"; teachModel += SSML.PauseFor(0.5); teachModel += "Vowels are " + SSML.SayExtraSlow("a") + SSML.PauseFor(0.5) + SSML.SayExtraSlow("e") + SSML.PauseFor(0.5) + SSML.SayExtraSlow("i") + SSML.PauseFor(0.5) + SSML.SayExtraSlow("o") + SSML.PauseFor(0.5) + SSML.SayExtraSlow("u"); teachModel += SSML.PauseFor(0.5); teachModel += " and sometimes y. "; teachModel += " Right now we are going to work with the vowel " + vowel; teachModel += SSML.PauseFor(1.5); teachModel += " A short " + SSML.SpellOut(vowel) + " makes the sound " + SSML.SayExtraSlow(SSML.Phoneme(vowelSound)) + "."; teachModel += SSML.PauseFor(1.0); teachModel += " Are your ready to learn some words with " + vowel; return(AlexaResponse.Introduction(teachModel, " Please say yes to continue or no to quit")); }
private SkillResponse TeachTheWord(WordAttributes wordAttributes) { LOGGER.log.INFO("WordFamilies", "TeachTheWord", "WORD: " + wordAttributes.Word); string[] decodedWord = wordAttributes.Word.Select(x => x.ToString()).ToArray(); string wordFamily = wordAttributes.WordFamily; string teachModel = QuickReply; teachModel += SSML.PauseFor(1); teachModel += " This word is spelled "; foreach (string sound in decodedWord) { teachModel += SSML.PauseFor(0.2) + SSML.SayExtraSlow(sound) + SSML.PauseFor(0.2); } teachModel += SSML.PauseFor(.5); teachModel += "The sounds are "; teachModel += SSML.PauseFor(0.2) + SSML.SayExtraSlow(SSML.Phoneme(decodedWord[0])) + SSML.PauseFor(0.2); teachModel += SSML.PauseFor(0.2) + SSML.SayExtraSlow(wordFamily) + SSML.PauseFor(1.0); teachModel += SSML.SayExtraSlow(wordAttributes.Word); teachModel += SSML.PauseFor(0.5); teachModel += "Now you try. Say the word. "; return(AlexaResponse.TeachFlashCard(wordAttributes.Word, teachModel)); }
public SkillResponse TeachTheWord(WordAttributes wordAttributes) { LOGGER.log.INFO("ConsonantBlend", "TeachTheWord", "WORD: " + wordAttributes.Word); string[] decodedWord = wordAttributes.Word.Select(x => x.ToString()).ToArray(); string vowelSound = wordAttributes.VowelPhoneme; string teachModel = QuickReply; teachModel += SSML.PauseFor(1); teachModel += " The word is spelled "; foreach (string sound in decodedWord) { teachModel += SSML.PauseFor(0.2) + SSML.SayExtraSlow(sound) + SSML.PauseFor(0.2); } teachModel += SSML.PauseFor(1.0); teachModel += SSML.SayExtraSlow(wordAttributes.Word); teachModel += SSML.PauseFor(0.5); teachModel += "Now you try. Say the word "; return(AlexaResponse.TeachFlashCard(wordAttributes.Word, teachModel)); }
public SkillResponse Introduction(WordAttributes wordAttributes) { LOGGER.log.INFO("LongVowels", "Introduction", "WORD: " + wordAttributes.Word); string vowel = wordAttributes.Vowel; string vowelSound = wordAttributes.VowelPhoneme; string teachModel = "Not every letter in a word makes a sound. In the following words, the " + SSML.SpellOut("e") + " is silent but " + SSML.Excited("bossy", "medium") + ". "; teachModel += SSML.PauseFor(1); teachModel += " This means the bossy " + SSML.SpellOut("e") + " makes the other vowel say its name."; teachModel += SSML.PauseFor(1); teachModel += "Right now we are going to work with the vowel " + vowel; teachModel += SSML.PauseFor(1.5); teachModel += " A long " + SSML.SpellOut(vowel) + " makes the sound " + SSML.SayExtraSlow(SSML.Phoneme(vowelSound)) + "."; teachModel += SSML.PauseFor(1.0); teachModel += " Are your ready to learn some words with " + vowel; return(AlexaResponse.Introduction(teachModel, " Please say yes to continue or no to quit")); }
public SkillResponse Introduction(WordAttributes wordAttributes) { LOGGER.log.INFO("ConsonantBlend", "Introduction", "WORD: " + wordAttributes.Word); string[] cBLetters = wordAttributes.ConsonantBlend.Select(x => x.ToString()).ToArray(); string teachModel = "When consonants are stuck together and both make their sounds, we call that a consonant blend."; teachModel += SSML.PauseFor(.5); teachModel += "The letters still make their individual sounds."; teachModel += SSML.PauseFor(1.5); teachModel += "This blend is made up of these two letters:"; teachModel += SSML.SayExtraSlow(cBLetters[0]) + " and a " + SSML.SayExtraSlow(cBLetters[1]) + "."; teachModel += SSML.PauseFor(1.5); if (SSML.cbPhoneme.TryGetValue(wordAttributes.ConsonantBlend, out string cbp)) { teachModel += " The sound they make is " + SSML.PauseFor(.5) + SSML.SayExtraSlow(SSML.Phoneme(cbp)); } teachModel += SSML.PauseFor(1.5); teachModel += " Are you ready to begin?"; return(AlexaResponse.Introduction(teachModel, " Please say yes to continue or no to quit")); }
public SkillResponse TeachTheWord(WordAttributes wordAttributes) { LOGGER.log.INFO("LongVowels", "TeachTheWord", "WORD: " + wordAttributes.Word); string[] decodedWord = wordAttributes.Word.Select(x => x.ToString()).ToArray(); string vowelSound = wordAttributes.VowelPhoneme; string teachModel = QuickReply; teachModel += SSML.PauseFor(1); teachModel += " The word is spelled "; teachModel += SSML.SpellOut(wordAttributes.Word); teachModel += SSML.PauseFor(1); teachModel += " Remember, the " + SSML.SpellOut("e") + " is silent and the " + SSML.SpellOut(wordAttributes.Vowel) + " says its name. "; teachModel += SSML.PauseFor(1.0); teachModel += SSML.SayExtraSlow(wordAttributes.Word); teachModel += SSML.PauseFor(0.5); teachModel += "Now you try. Say the word "; return(AlexaResponse.TeachFlashCard(wordAttributes.Word, teachModel)); }
public SkillResponse Introduction(WordAttributes wordAttributes) { LOGGER.log.INFO("ConsonantDigraph", "Introduction", "WORD: " + wordAttributes.Word); string[] cdLetters = wordAttributes.ConsonantDigraph.Select(x => x.ToString()).ToArray(); string teachModel = "When two consonants work together to make one sound, this is called a digraph."; teachModel += SSML.PauseFor(.5); teachModel += "Can you say digraph?"; teachModel += SSML.PauseFor(1.5); teachModel += "The digraph we are learning now is made up of these two letters:"; teachModel += SSML.PauseFor(1); teachModel += SSML.SayExtraSlow(cdLetters[0]) + " and a " + SSML.SayExtraSlow(cdLetters[1]) + "."; teachModel += SSML.PauseFor(1.5); if (SSML.cdPhoneme.TryGetValue(wordAttributes.ConsonantDigraph, out string cdp)) { teachModel += " The sound they make is " + SSML.PauseFor(.5) + SSML.SayExtraSlow(SSML.Phoneme(cdp)); } teachModel += SSML.PauseFor(1.5); teachModel += " Are you ready to begin?"; return(AlexaResponse.Introduction(teachModel, " Please say yes to continue or no to quit")); }