コード例 #1
0
ファイル: outputManager.py プロジェクト: wildarch/GameBot
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
コード例 #2
0
ファイル: outputManager.py プロジェクト: nouwaarom/GameBot
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
コード例 #3
0
ファイル: outputManager.py プロジェクト: wildarch/GameBot
    def __init__(self, withVoice):
        self.withVoice = withVoice
        self.voice = "awb"

        if withVoice:
            self.pf = PyFlite()
コード例 #4
0
ファイル: outputManager.py プロジェクト: nouwaarom/GameBot
    def __init__(self, withVoice):
        self.withVoice = withVoice
        self.voice = "awb"

        if withVoice:
            self.pf = PyFlite()