Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Silly reader of annotated "script" files.

jzohrab/dictator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple Ruby script to dictate files.

I often create small audio scripts that I want the computer to read aloud ... But it's a hassle to write code, so this thing takes a file as an argument and then reads it aloud using the built in Mac voices.

See the sample.txt for an example.

Usage

ruby main.rb sample.txt

If you're working on a script and don't actually want it to "execute", run it with a TEST environment variable:

TEST=yes ruby main.rb sample.txt

ERB

The text file can also use ERB, i.e., embedded ruby, which is helpful when the script contains many repetitions of the same thing. See erbsample.txt for an example.

ruby main.rb erbsample.txt

About

Silly reader of annotated "script" files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages