Skip to content

Picks a random line from a Donald Trump transcript and speaks it.

Notifications You must be signed in to change notification settings

nilsjesper/trumpbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http://donaldspeaks.us/

The Trump Bot

Picks a random line from a given Donal Trump interview transcript and uses your browser to speak it via the new text to speach api. Because his statements sound even nuttier that way.

Periodically I'll update this page to use a different transcript which requires tweaking the regex a little.

Origins

This came out of a weird idea from back during the primaries which used curl to feed a randomly picked trump line to OSX's speak command. Here's an example of the curl equivalent using the Times Round-table transcript used for this project:

curl -s -b -N --location http://www.nytimes.com/2016/11/23/us/politics/trump-new-york-times-interview-transcript.html \
| perl -0ne 'my @list = $_ =~ m/>TRUMP:(.*?)<\/p>/smg; print $list[rand @list]' \
| say  -i -r 300 -v Alex

About

Picks a random line from a Donald Trump transcript and speaks it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published