Initial commit: 军事科技AI配音系统 v1.0
- Flask backend with MiniMax and CosyVoice TTS engines - Frontend UI with emotion tags, speed/pitch/volume controls - Nginx reverse proxy configuration - Dual engine support (MiniMax speech-2.8-hd, CosyVoice v3.5-flash)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
from flask import Flask, jsonify
|
||||
from flask_cors import CORS
|
||||
|
||||
def create_app():
|
||||
app = Flask(__name__)
|
||||
CORS(app, resources={r"/api/*": {"origins": "*"}})
|
||||
from app.routes.tts_synthesize import bp as synthesize_bp
|
||||
app.register_blueprint(synthesize_bp)
|
||||
@app.route('/api/health')
|
||||
def health(): return jsonify({'status': 'ok', 'service': '军事科技AI配音系统'})
|
||||
return app
|
||||
|
||||
if __name__ == '__main__':
|
||||
create_app().run(host='0.0.0.0', port=5000, debug=True)
|
||||
Reference in New Issue
Block a user