Sha256: 4fe79cd1678244162f41d946bd1e94e020e4a68c4be193955b8df610ecf41d99
Contents?: true
Size: 590 Bytes
Versions: 6
Compression:
Stored size: 590 Bytes
Contents
# This example is skipped on CI because it makes system calls Shoes.app do para "What do you want me to say?" @phrase = edit_line("Soon it was a comet and, soon, a blazing monstrosity.", width: "100%") all_voices = `say -v '?'`.lines.map(&:split).map(&:first).uniq.compact @selected_voice = all_voices.first @voice = para "🗣 #{@selected_voice}" all_voices.each do |voice| button voice do @voice.replace "🗣 #{voice}" @selected_voice = voice end end @push = button "📣" @push.click { `say -v '#{@selected_voice}' #{@phrase.text}` } end
Version data entries
6 entries across 6 versions & 2 rubygems