def testNoSettingsInit(): init() speak("testing") speak("this is higher", ACSS({'average-pitch': 7})) speak("this is slower", ACSS({'rate': 3})) speak("this is faster", ACSS({'rate': 80})) speak("this is quiet", ACSS({'gain': 2})) speak("this is loud", ACSS({'gain': 10})) speak("this is normal")
def test(): import speechserver factories = getSpeechServerFactories() for factory in factories: print factory.__name__ servers = factory.SpeechServer.getSpeechServers() for server in servers: try: print " ", server.getInfo() for family in server.getVoiceFamilies(): name = family[speechserver.VoiceFamily.NAME] print " ", name acss = ACSS({ACSS.FAMILY: family}) server.speak(name, acss) server.speak("testing") server.shutdown() except: debug.printException(debug.LEVEL_OFF) pass
# silenceSpeech = False # Settings that apply to the particular speech engine to # use as well details on the default voices to use. # speechFactoryModules = ["espeechfactory","gnomespeechfactory","speechdispatcherfactory"] speechServerFactory = "gnomespeechfactory" speechServerInfo = None # None means let the factory decide. DEFAULT_VOICE = "default" UPPERCASE_VOICE = "uppercase" HYPERLINK_VOICE = "hyperlink" voices = { DEFAULT_VOICE : ACSS({}), UPPERCASE_VOICE : ACSS({ACSS.AVERAGE_PITCH : 5.6}), HYPERLINK_VOICE : ACSS({}) } # If True, enable speaking of speech indentation and justification. # enableSpeechIndentation = False # If True, enable braille. # enableBraille = True # If True, enable the grouping of children on the braille display. # This is for things like displaying all items of a menu, tab list, # menu bar, etc., on a single line of the braille display.