Beispiel #1
0
        private static PromptBuilder GetPromptForText(string textToConvert)
        {
            TaggedText    taggedText = new TaggedText(textToConvert);
            PromptBuilder builder    = taggedText.ToPromptBuilder(DefaultVoiceName);

            return(builder);
        }
        private static PromptBuilder GetPromptForText(string textToConvert, ComputerVoice voice)
        {
            TaggedText    taggedText = new TaggedText(textToConvert);
            PromptBuilder builder    = taggedText.ToPromptBuilder(voice.ToString());

            return(builder);
        }