~fuzzgun/xctts/main

« back to all changes in this revision

Viewing changes to xctts.py

  • Committer: Bob Mottram
  • Date: 2011-10-26 17:22:59 UTC
  • Revision ID: fuzzgun@gmail.com-20111026172259-xo2k3phg6lwndoye
hang workaround

Show diffs side-by-side

added added

removed removed

Lines of Context:
439
439
                    speed = 300
440
440
                #let's build the espeak command
441
441
                cmd = 'espeak -p %s -s %s -v"%s" "%s . . . . %s"' % (pitch,speed,voice,nick,msg)
 
442
                if use_hang_workaround != 0:
 
443
                    cmd = cmd + " --stdout | aplay"
442
444
                #xchat.prnt("%s - %s" % (channel, cmd))
443
445
                #let's say it. First, is this the solo channel?
444
446
                if (solo == channel):
568
570
                 talking = 1
569
571
                 if (nick not in muted_channels) and (channel not in muted_channels):
570
572
                     cmd = "%s..<.>..%s..<.>..%s..<.>..%s..<.>..%s..<.>..%s" % (channel, current_voice_pitch, current_voice_speed, current_voice, nick, msg)
571
 
                     #cmd = '%s..<.>..espeak -p %s -s %s -v"%s" "%s: . . . . %s"' % (xchat.get_info("channel"), current_voice_pitch, current_voice_speed, current_voice, nick, msg)
572
 
                     if use_hang_workaround != 0:
573
 
                         cmd = cmd + " --stdout | aplay"
574
573
                     speech_queue.put(cmd)
575
574
                 talking = 0
576
575