Making my computer talk (with the say command)

I've been using the say command in terminal to get my computer to talk, ie.

say "Hello" 

How can I pipe the text of a .txt file to the say command to get it to read aloud the text in a file ?

Replay

Actually say has this option

say -f file.txt

Or you can use command substitution...

say $(cat file.txt)

this passes the output of cat file.txt as an argument to say

Category: command line Time: 2016-07-29 Views: 4

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.193 (s). 12 q(s)