mirror of https://github.com/coqui-ai/TTS.git
add tts-server executable
This makes the project easier to use when installing via package manager.
This commit is contained in:
parent
f3d4d1f831
commit
82f8e9cb12
|
@ -76,5 +76,9 @@ def tts():
|
||||||
return send_file(data, mimetype='audio/wav')
|
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)
|
app.run(debug=args.debug, host='0.0.0.0', port=args.port)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
|
5
setup.py
5
setup.py
|
@ -75,6 +75,11 @@ setup(
|
||||||
url='https://github.com/mozilla/TTS',
|
url='https://github.com/mozilla/TTS',
|
||||||
description='Text to Speech with Deep Learning',
|
description='Text to Speech with Deep Learning',
|
||||||
license='MPL-2.0',
|
license='MPL-2.0',
|
||||||
|
entry_points={
|
||||||
|
'console_scripts': [
|
||||||
|
'tts-server = TTS.server.server:main'
|
||||||
|
]
|
||||||
|
},
|
||||||
package_dir={'': 'tts_namespace'},
|
package_dir={'': 'tts_namespace'},
|
||||||
packages=find_packages('tts_namespace'),
|
packages=find_packages('tts_namespace'),
|
||||||
package_data={
|
package_data={
|
||||||
|
|
Loading…
Reference in New Issue