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????我該如何改變聲音? ? ? ?
Your instructions worked well, the computer speaks, my kids thought it was very cool.您的指示,運作良好,說話的電腦,我的孩子們認為這是非常酷。
i tried to do this but i keep getting the same error codeINE: 2我試圖這樣做,但我不斷收到同樣的錯誤可待因: 2
CHAR: 18煤焦: 18
ERROR: INVALID CHARACTER錯誤:無效字符
CODE: 800A0408郵編: 800A0408