Ejemplo n.º 1
0
 def __init__(self, config=None):
     self.c = pygame.mixer.Channel(0)
     tts.init(srapi=config.srapi, srapi_wait=config.srapi_wait)
Ejemplo n.º 2
0
import time

from soundrts.lib import tts


def say(txt):
    tts.speak(unicode(txt))
    while tts.is_speaking():
        time.sleep(.01)


tts.init()
for i in range(10):
    i += 1
    say("%s " % i)
    say("This is a test. " * i)
Ejemplo n.º 3
0
 def __init__(self, config=None):
     self.c = pygame.mixer.Channel(0)
     tts.init(config.wait_delay_per_character)
Ejemplo n.º 4
0
 def __init__(self, config=None):
     self.c = pygame.mixer.Channel(0)
     tts.init(srapi=config.srapi, srapi_wait=config.srapi_wait)
Ejemplo n.º 5
0
import time

from soundrts.lib import tts


def say(txt):
    tts.speak(unicode(txt))
    while tts.is_speaking():
        time.sleep(.01)

tts.init()
for i in range(10):
    i += 1
    say("%s " % i)
    say("This is a test. " * i)

Ejemplo n.º 6
0
#! .venv\Scripts\python.exe
import time

from soundrts import config
from soundrts.lib import tts


def say(txt):
    tts.speak(txt)
    while tts.is_speaking():
        time.sleep(0.01)


tts.init(config.wait_delay_per_character)
for i in range(10):
    i += 1
    say("%s " % i)
    say("This is a test. " * i)