2009-12-01から1日間の記事一覧
#!/usr/bin/ruby -Ks # -*- coding: shift_jis -*- require 'win32ole' class String @@tts = WIN32OLE.new('TextToSpeech.TextToSpeech') def と喋る(cond=/Naoko/) @@tts.Select((1..@@tts.CountEngines).find{|i|cond===@@tts.Speaker(i)}) @@tts.Speak(s…