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:它应该基本上看起来就像这样:
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.此外,在保存类型中,选择所有文件而不是默认的文本文件。
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.来吧和类型的东西,然后单击确定。
![]()
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.)享受(这将是有趣的做别人的计算机作为一个笑话。 )
» Filed Under »文章属于 Fun Stuff奇闻趣事
Save this page 保存该网页 | Stir it up on Mixx 它搅动了Mixx | |
Add to Reddit 添加到Reddit |
Related Posts 有关职位
- How to open multiple programs in Windows at once如何打开多个程序在Windows上一次
- How to quickly paste copied text to Notepad如何快速复制的文本粘贴到记事本
- Hide and lock text files in Windows隐藏并锁定文本文件在Windows
- Extract text from PDF, DOC, HTML, CHM, and RTF files提取PDF格式的文本,商务部, HTML格式,资料交换所机制,并RTF档案
- How to open MDI files in Office 2007如何打开的MDI文件在Office 2007























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谢谢
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????你能告诉我什么,我做错了? ? ? ?
ok, ok.确定,确定。 I found it!!!我发现它!
the ” character was wrong.在“字符是错误的。 Ok, it works great!好吧,它太棒了! Thanks…谢谢...
How can I change the voice????我该如何改变声音? ? ? ?