
我正在尋找一種“監聽”日誌文件的方法。這就是我的想法:
while tail -f logfile
for every new line in the logfile
convert this line to an audio file
stream the audio file
我將如何建構這個?我使用的是 32 位元 Ubuntu 14.04.3 LTS。
答案1
您的問題的範例:
tail -f logfile | espeak -v en
更多文字轉語音 (TTS) 之類的espeak
程序,如果您正在尋找製作音訊.wav
檔案的範例,可以在以下位置找到: