This FastAPI service accepts an MP3 file, uses a lip-sync model to generate a speaking avatar video, uploads it to S3, and returns the path.
git clone https://github.com/adprimak/woyage-generate-avatar.git
cd woyage-generate-avatargit clone https://github.com/Fantasy-AMAP/fantasy-talkingStep 3: Download models to woyage-generate-avatar/models/ as documented here
cd /path/to/woyage-generate-avatar
python -m venv venvvenv\Scripts\activatepip install --upgrade pip
pip install -r requirements.txt
pip install -r fantasy-talking/requirements.txtBUCKET_NAME=your-bucket-name
AWS_ACCESS_KEY_ID=your-access-key-id
AWS_SECRET_ACCESS_KEY=your-secret-access-key
AWS_DEFAULT_REGION=us-east-1uvicorn app.main:app --reloadhttp://localhost:8000/docswoyage-generate-avatar/
├── app/
│ └── main.py
├── static/
│ └── avatar.png
├── fantasy-talking/
│ └── models/
│ └── requirements.txt
├── requirements.txt
└── README.md