Exemple #1
0
class OutputManager:
    def __init__(self, withVoice):
        self.withVoice = withVoice
        self.voice = "awb"

        if withVoice:
            self.pf = PyFlite()

    def say(self, message):

        if self.withVoice:
            self.pf.text2speech(message, self.voice)
        else:
            print message
Exemple #2
0
class OutputManager:

    def __init__(self, withVoice):
        self.withVoice = withVoice
        self.voice = "awb"

        if withVoice:
            self.pf = PyFlite()

    def say(self, message):

        if self.withVoice:
            self.pf.text2speech(message, self.voice)
        else:
            print message
Exemple #3
0
    def __init__(self, withVoice):
        self.withVoice = withVoice
        self.voice = "awb"

        if withVoice:
            self.pf = PyFlite()
Exemple #4
0
    def __init__(self, withVoice):
        self.withVoice = withVoice
        self.voice = "awb"

        if withVoice:
            self.pf = PyFlite()