C#GET Console.Writeline(QUOT;")说话(QUOT;") [英] C# get Console.Writeline(" ") to speak (" ")

查看:111
本文介绍了C#GET Console.Writeline(QUOT;")说话(QUOT;")的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

case "Start VS":
    Console.WriteLine("Starting Visual Studio's...");
    System.Diagnostics.Process.Start("devenv.exe");
    break;



我如何能够得到一个soundclip玩,用字符串输入? (启动Visual Studio的...)

How might I be able to get a soundclip to play, using the string input? ("Starting Visual Studio"...)

推荐答案

使用 System.Speech.Synthesis.SpeechSynthesizer 类。阅读这个的示例和其他信息。

Use System.Speech.Synthesis.SpeechSynthesizer class. Read this for the example and additional info.

这篇关于C#GET Console.Writeline(QUOT;")说话(QUOT;")的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆