Sha256: 352b475d0fe60fb751ad0ac27ebc9ce4a845f187a878e2686fac5deff08ff06b
Contents?: true
Size: 527 Bytes
Versions: 6
Compression:
Stored size: 527 Bytes
Contents
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