2008-9-24 [教學][Mac OS X]好用又有趣的指令"say"
OS X 中有個指令叫 "say",他可以讓使用者在終端機下命令電腦唸出指定的英文內容,例如你輸入
"say Hello",他就會唸"Hello"。可是,如果你要他唸一段文章,裡面含有各種標點符號,他就會出現錯誤給你看:
CODE:
say Porphyrias are a group of inherited or acquired disorders of certain enzymes in the heme biosynthetic pathway (also called porphyrin pathway). They are broadly classified as hepatic porphyrias or erythropoietic porphyrias, based on the site of the overproduction and mainly accumulation of the porphyrins (or their chemical precursors). They manifest with either skin problems or with neurological complications (or occasionally both).

Mac OS X 從 10.3(如果我沒記錯的話)開始,便強化了這個功能,加入了更多參數讓使用者"玩"這個指令。他多了下面這些指令參數:
CODE:
say [-v voice] [-o out] [-f in | message]
所以,我們有兩個辦法可以解決上面的問題。...
2008-9-24 10:54 PM - NeoBetas - 7874 觀看 - 1 評論 - 心得教學區