Is the result any different if you run the code outside of a task function? For example something like the following:
Code:
import viz
import vizact
viz.go()
female = viz.addAvatar('vcc_female.cfg',pos=[0,0,2])
speech = vizact.speak ('Situation_6_EB_Svenja_bearbeitet.wav', threshold = .1, scale = 0.002, sync = True)
vizact.onkeydown(' ',female.addAction,speech)