add tts-server executable

This makes the project easier to use when installing via package manager.
This commit is contained in:
Jörg Thalheim 2020-06-13 00:34:51 +01:00
parent f3d4d1f831
commit 82f8e9cb12
No known key found for this signature in database
GPG Key ID: 003F2096411B5F92
2 changed files with 10 additions and 1 deletions

View File

@ -76,5 +76,9 @@ def tts():
return send_file(data, mimetype='audio/wav')
if __name__ == '__main__':
def main():
app.run(debug=args.debug, host='0.0.0.0', port=args.port)
if __name__ == '__main__':
main()

View File

@ -75,6 +75,11 @@ setup(
url='https://github.com/mozilla/TTS',
description='Text to Speech with Deep Learning',
license='MPL-2.0',
entry_points={
'console_scripts': [
'tts-server = TTS.server.server:main'
]
},
package_dir={'': 'tts_namespace'},
packages=find_packages('tts_namespace'),
package_data={