![]() |
|
#2
|
|||
|
|||
|
Try the following to end the sound in the middle of running a speak action. In order to preserve the indentation of your code use the code tags the next time you post some code.
Code:
import viz
viz.go()
viz.clearcolor(viz.SKYBLUE)
viz.add('tut_ground.wrl')
teacher = viz.add('vcc_female.cfg', pos = [0,0,5], euler = [180,0,0])
teacher.state(14)
speech = vizact.speak('carousel.wav')
teacher.addAction(speech)
def clean():
teacher.clearActions()
teacher.remove()
viz.playsound('carousel.wav', viz.STOP)
vizact.onkeydown(' ', clean)
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sound Looping Problem | JMOwens | Vizard | 4 | 09-29-2010 10:42 PM |
| Stuttering sound | Jerry | Vizard | 1 | 06-13-2007 01:36 PM |
| Animation Tracks.... | k_iwan | Vizard | 2 | 03-26-2007 06:52 PM |
| avatar animation problems | jrodman | Vizard | 1 | 01-18-2006 10:12 AM |
| sound problem | alaa | Vizard | 7 | 09-02-2005 02:13 PM |