Revision 163a7434

View differences:

tts_bridge/mary/mary_tts_bridge/MaryTTSBridge.py
50 50
	self.logger = logging.getLogger(__name__)
51 51
	# create nice and actually usable formatter and add it to the handler
52 52
	self.config_logger(loglevel)
53
	self.logger.info("starting MaryTTSBridge")
53
	self.logger.info("starting MaryTTSBridge on topic '"+topic+"'")
54 54

  
55 55
	self.tts_client = MaryTTSClient(voice, locale, tts_host, tts_port, loglevel)
56 56

  
......
164 164
	rospy.spin()
165 165

  
166 166
#test code
167
if __name__ == "__main__":
167
def main():
168 168
    if (len(sys.argv) != 2):
169 169
	print("> usage: "+sys.argv[0]+" <topic>\n\n")
170 170
	sys.exit(1)
......
172 172
    bridge = MaryTTSBridge(topic=sys.argv[1], loglevel=logging.INFO)
173 173
    bridge.run()
174 174

  
175
if __name__ == "__main__":
176
    main()
tts_bridge/mary/setup.py
107 107
    # pip to create the appropriate form of executable for the target platform.
108 108
    entry_points={
109 109
        'console_scripts': [
110
            'mary_tts_provider=mary_tts_bridg.MaryTTSBridge:main',
110
            'mary_tts_provider=mary_tts_bridge.MaryTTSBridge:main',
111 111
        ],
112 112
    },
113 113
)

Also available in: Unified diff