Official Website: https://magicvoice.online
Magic Voice is an advanced AI voice cloning and TTS (Text-to-Speech) platform. Experience the power of AI voice technology directly on our official website.
This is a multi-component project with:
- Frontend: Vue 3.js application
- Backend: Spring Boot REST API
- LLM Service: Python Flask application
smart-serve/
├── frontend/ # Vue 3 frontend
│ ├── src/
│ │ ├── components/ # Vue components
│ │ ├── views/ # Page views
│ │ ├── assets/ # Static assets
│ │ ├── router/ # Vue Router configuration
│ │ └── store/ # Pinia state management
│ ├── public/
│ ├── package.json # Dependencies and scripts
│ └── vite.config.js # Vite configuration
├── backend/ # Spring Boot backend
│ ├── src/main/java/ # Java source files
│ ├── src/main/resources/ # Configuration files
│ └── pom.xml # Maven dependencies
└── llm-python/ # Python LLM service
├── api/ # Flask application
├── services/ # LLM service logic
├── models/ # ML models (if any)
├── utils/ # Utility functions
├── config/ # Configuration files
└── requirements.txt # Python dependencies
- Navigate to the frontend directory:
cd frontend- Install dependencies:
npm install- Start the development server:
npm run devThe frontend will be accessible at http://localhost:3000
- Navigate to the backend directory:
cd backend- Build the project:
mvn clean install- Run the application:
mvn spring-boot:runThe backend will be accessible at http://localhost:80080
- Navigate to the llm-python directory:
cd llm-python- Create a virtual environment:
python -m venv venv- Activate the virtual environment:
# On Windows
venv\Scripts\activate
# On macOS/Linux
source venv/bin/activate- Install dependencies:
pip install -r requirements.txt- Run the application:
python api/app.pyThe LLM service will be accessible at http://localhost:5000
Environment variables for each service:
- VITE_API_URL=http://localhost:8080 (Backend API URL)
- server.port=8080 (Port to run the server)
- spring.datasource.url=jdbc:h2:mem:testdb (Database URL)
- LLM_MODEL_NAME=gpt2 (Default model name)
- API_HOST=0.0.0.0 (Host for the API)
- API_PORT=5000 (Port for the API)