查看積分策略說明發表回覆
Discuz! 代碼
提示插入
直接插入
說明訊息

插入粗體文本 插入斜體文本 插入下劃線 置中對齊 插入超級連結 插入信件位址 插入圖像 插入 flash 插入代碼 插入引言 插入列表
刪除線 直線分隔線 虛線分隔線
    
添加文字底框
內容 [字數檢查]:

表情符號

更多 Smilies
字型大小 |||
溫馨提示:本區開放遊客瀏覽。


文章關鍵字 : [功能說明]
(關鍵字可加強搜索準確性, 如關鍵字多於一組, 請以 , 作分隔, e.g. : 阿笨,shiuh,第一笨)

 關閉 URL 識別 | html 禁用
 關閉 表情符號 | 表情符號 可用
 關閉 Discuz! 代碼 | Discuz! 代碼 可用
使用個人簽名
接收新回覆信件通知
推薦放檔網絡空間

檔案(Torent, zip等)
  1. freedl
  2. multiupload
  3. btghost
  4. 便當狗
  5. mediafire
  6. pillowangel
圖片(JPG, GIF等)
  1. hotimg
  2. tinypic
  3. mousems2
  4. imageshack
  5. imm.io
>>>歡迎推薦好用空間


最新10篇文章回顧
froce

 發表於 2008-10-20 11:24 PM

linux下是用espeak這個指令...不過不能直接轉其他格式...只能用wav...


引用:
NeoBetas寫到:
OS X 中有個指令叫 "say",他可以讓使用者在終端機下命令電腦唸出指定的英文內容,例如你輸入
"say Hello",他就會唸"Hello"。可是,如果你要他唸一段文章,裡面含有各種標點符號,他就會出現錯誤給你看:

這個是一定的...常用終端機的人就知道為什麼了...
(其實有空格就會有問題了...你會發現他只念第一個字...)

say Porphyrias\ are\ a\ group\ of\ inherited\ or\ acquired\ disorders\ of\ certain\ enzymes\ in\ the\ heme\ biosynthetic\ pathway\ \(also\ called\ porphyrin\ pathway\)\.
可以試試看這個...
不過應該沒有人會想這樣玩...XD

[froce 在  2008-10-21 12:00 AM 作了最後編輯]


NeoBetas

 發表於 2008-9-24 10:54 PM

OS X 中有個指令叫 "say",他可以讓使用者在終端機下命令電腦唸出指定的英文內容,例如你輸入
"say Hello",他就會唸"Hello"。可是,如果你要他唸一段文章,裡面含有各種標點符號,他就會出現錯誤給你看:

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(如果我沒記錯的話)開始,便強化了這個功能,加入了更多參數讓使用者"玩"這個指令。他多了下面這些指令參數:

say [-v voice] [-o out] [-f in | message]
所以,我們有兩個辦法可以解決上面的問題。

第一種,改用這個指令:

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)."
加上引號後他就可以正常的唸。當然,如果只能這樣玩就太遜了,他還可以唸 .txt 文字檔,然後直接輸出成聲音檔!

我們把剛剛那段文字存成 read.txt,放在桌面上(注意,只能是純文字檔,使用 rtf 之類的他還是會照唸,但是他會連你的格式語法代碼一起唸...),使用以下指令:

say -o ~/Desktop/say.aiff -f ~/Desktop/read.txt
你會發現他停住了!這可不是當機喔,使用 top 指令察看的話會發現他正在耗用大量的 CPU 資源,等一下下桌面上就會出現"say.aiff"這個聲音檔,打開來,會發現是剛剛那段文字的朗讀錄音。而且文章就算要唸十幾分鐘,他還是可以在兩三分中內產生出整個朗讀檔。

我沒有試過產生 MP3 或 AAC ,有興趣的人自己試試吧!我是用 iTunes 再轉成別的格式的。





所在時區為 GMT+8, 現在時間是 2024-5-5 05:42 PM
清除 Cookies - 連絡我們 - TWed2k © 2001-2046 - 純文字版 - 說明
Discuz! 0.1 | Processed in 0.019646 second(s), 7 queries , Qzip disabled