如何讓 macOS 透過指令朗讀文字?

先簡單示範一個 hello world

sam@liho ~ % say Hello World

也可以直接讀某文字檔案

sam@liho ~ % cat hello.txt
hello world. this is a text file.
sam@liho ~ % say -f hello.txt

甚至可以把語音內容轉換成檔案

sam@liho ~ % say -o hello.m4a --data-format=alac -f hello.txt

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.