Skip to content

Instantly share code, notes, and snippets.

@Back2Basics
Created October 2, 2019 08:04
Show Gist options
  • Save Back2Basics/d606477d1feb94762cb277911c4fe91e to your computer and use it in GitHub Desktop.
Save Back2Basics/d606477d1feb94762cb277911c4fe91e to your computer and use it in GitHub Desktop.
have your mac read filtered text
# 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