Created
October 2, 2019 08:04
-
-
Save Back2Basics/d606477d1feb94762cb277911c4fe91e to your computer and use it in GitHub Desktop.
have your mac read filtered text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this was used in the youtube clip | |
data = “”” <paste data here> “”” | |
read_this = [line.partition(‘\xa0’)[2] for line in data.split(‘\n’)] | |
import subprocess as sp | |
sp.call([‘say’, ‘ ‘.join(read_this)]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment