Skip to content

Commit

Permalink
fixed #65 (?)
Browse files Browse the repository at this point in the history
say += " -v '#{voice}'" if voice
  • Loading branch information
Pannous committed May 13, 2014
1 parent 7a133fe commit f5de7e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ def sanitize(text)
def speak(text)
if User.has_command?('say')
say = 'say'
say += " -v '#{BettyConfig.get("voice")}'" if BettyConfig.get("voice")
voice=BettyConfig.get("voice")
say += " -v '#{voice}'" if voice
system("#{say} \"#{ text }\"") # formerly mpg123 -q
else
has_afplay = User.has_command?('afplay')
Expand Down

0 comments on commit f5de7e5

Please sign in to comment.