Skip to content

Instantly share code, notes, and snippets.

@Haroperi
Created March 31, 2012 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Haroperi/99ee17465da9a6d2a120 to your computer and use it in GitHub Desktop.
Save Haroperi/99ee17465da9a6d2a120 to your computer and use it in GitHub Desktop.
Speech Japanese text on mac with one command.
#!/usr/bin/ruby
mouth = open("|mecab -O yomi|SayKana >/dev/null", 'w')
while l = gets
l.chomp!
mouth.puts l if l && l != ''
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment