def sound_stop(stop_voice_too=True): psounds.stop() if stop_voice_too: pygame.mixer.stop() tts.stop() else: # stop every channel except channel 0 (voice channel) for _id in range(1, pygame.mixer.get_num_channels()): pygame.mixer.Channel(_id).stop()
def stop(self): self.c.stop() # interrompre tts.stop() self._queue = []
def pushedStopButton(event): tts.stop()
def stop(self): self.c.stop() # interrupt tts.stop() self._queue = []