How to make your computer talk/speak what you type如何使您的计算机通话/你讲什么类型

Posted on November 3, 2008 at 5:25 am发布于2008年11月3日在上午05时25分

Here’sa cool little feature of Windows that can be abused so that you can make your computer talk or speak whatever you tell it!这里凉爽小功能的Windows ,可以被滥用,这样您就可以让你的电脑通话或讲什么你告诉它! This method takes advantage of a built-in API installed on most Windows XP machines called SAPI (Speech Application Programming Interface).这种方法利用了内置的API上安装Windows XP的大部分机器叫做SAPI (语音应用程序编程接口) 。

The Microsoft Speech API is what is used for the Narrative accessibility feature built into Windows.微软语音的API就是用于叙事无障碍内置到Windows 。 You can also write programs that call the API, which would allow you to let your applications speak.您也可以写程序调用的API ,这将使你,让你的应用程序发言。

But making your computer say what you want is pretty easy actually!但是,您的电脑说,你想要是实际上很容易! Here’s how you do it:以下是如何做到这一点:

Step 1: Open Notepad and paste the following text into a new document:步骤1 :打开记事本将以下文本粘贴到一个新的文件:

Dim message, sapi 昏暗的信息,的SAPI
message=InputBox(”Enter the text you want spoken”,”Speak This”) 讯息= InputBox ( “请输入您想要的文字口语” , “讲这种” )
Set sapi=CreateObject(”sapi.spvoice”) 集的SAPI = CreateObject ( “ sapi.spvoice ” )
sapi.Speak message sapi.Speak讯息

It should basically look something like this:它应该基本上看起来就像这样:

make computer speak

Now when you go to save the file, give it any name, but make sure you also type .VBS after the name.现在,当你去保存文件,给它的任何名称,但一定要还类型。 欢乐后的名称。 Also, for the Save as type box, choose All files instead of the default Text Documents.此外,在保存类型中,选择所有文件而不是默认的文本文件。

make computer talk

Now double-click on the VBS file and you should see a input box where you can type in the text you want spoken!现在双击vbs文件,你应该会看到一个输入框,您可以输入您想要的文字讲! Go ahead and type something and click OK.来吧和类型的东西,然后单击确定。

speak computer

That’s it!这样就大功告成了! Your computer will speak to you in the default voice, which for me was some scary seductive male type of voice!您的计算机将你说话的默认声音,这对我来说是可怕的诱惑一些男性类型的声音! What about yours?你怎么样? Enjoy (This would be fun to do on someone else’s computer as a joke.)享受(这将是有趣的做别人的计算机作为一个笑话。 )

Enjoyed this post?得到这个职位? Subscribe to Online Tech Tips via订阅在线应用技巧通过 RSS Feed RSS供稿 or via或通过 Email电子邮件 and receive free daily productivity tips.并获得免费日报的生产力秘诀。

» Filed Under »文章属于 Fun Stuff奇闻趣事

添加到美味 Save this page 保存该网页 它Mixx Stir it up on Mixx 它搅动了Mixx
Reddit Add to Reddit 添加到Reddit StumbleUpon公司 Stumble this page 失败此页

Related Posts 有关职位

4 Responses to “How to make your computer talk/speak what you type” 第4回应“如何使您的计算机通话/讲你键入”

  1. Voltz83 said on : Voltz83说:

    if I put code like this:如果我把代码像这样:

    Dim message, sapi昏暗的信息,的SAPI
    Set sapi=CreateObject(”sapi.spvoice”)集的SAPI = CreateObject ( “ sapi.spvoice ” )
    sapi.Speak “Who are you?” sapi.Speak “你是谁? ”

    And then I set it to run at restart on someone’s pc, so when it restart… Will it work???然后,我将其设置为运行在重新启动在某人的电脑,因此当它重新启动...将工作? ? ?

    Thank谢谢


  2. Odoiporos said on : Odoiporos说:

    not working for me…不工作对我来说...
    it says:它说:
    LINE: 2在线: 2
    CHAR: 18煤焦: 18
    ERROR: INVALID CHARACTER错误:无效字符
    CODE: 800A0408邮编: 800A0408
    SOURCE: MICROSOFT VBSCRIPT COMPILATION ERROR资料来源:微软的VBScript编译错误

    can you tell me what am I doing wrong????你能告诉我什么,我做错了? ? ? ?


  3. Odoiporos said on : Odoiporos说:

    ok, ok.确定,确定。 I found it!!!我发现它!
    the ” character was wrong.在“字符是错误的。 Ok, it works great!好吧,它太棒了! Thanks…谢谢...


  4. Odoiporos said on : Odoiporos说:

    How can I change the voice????我该如何改变声音? ? ? ?


    Please post your comments/suggestions! 请张贴您的意见/建议!