コード例 #1
0
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()
コード例 #2
0
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()
コード例 #3
0
 def stop(self):
     self.c.stop() # interrompre
     tts.stop()
     self._queue = []
コード例 #4
0
ファイル: gui.py プロジェクト: ifritJP/game-message-tts
 def pushedStopButton(event):
     tts.stop()
コード例 #5
0
 def stop(self):
     self.c.stop()  # interrupt
     tts.stop()
     self._queue = []
コード例 #6
0
 def stop(self):
     self.c.stop() # interrupt
     tts.stop()
     self._queue = []