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 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)); }