-
-
Save Haroperi/99ee17465da9a6d2a120 to your computer and use it in GitHub Desktop.
Speech Japanese text on mac with one command.
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
#!/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