๐ŸŽฌ Video Localization API with SyncLabs

API for video localization with automatic lip-syncing powered by SyncLabs.

โš ๏ธ API Server Status: Not Running
Start the API server with: python test_server.py --mode server --port 8001

๐Ÿ“ก API Endpoints

GET /api/

Health check and API information

curl https://localize.tryingtosee.com/api/
POST /api/synclabs/lipsync

Create lip-synced video using SyncLabs

curl -X POST https://localize.tryingtosee.com/api/synclabs/lipsync \
  -F "video_file=@/path/to/video.mp4" \
  -F "audio_file=@/path/to/audio.wav"
POST /api/localize

Full localization pipeline (transcribe โ†’ translate โ†’ TTS โ†’ lip-sync)

curl -X POST https://localize.tryingtosee.com/api/localize \
  -F "file=@video.mp4" \
  -F "source_language=en" \
  -F "target_languages=es" \
  -F "user_id=1"
POST /api/transcribe

Transcribe video audio

curl -X POST https://localize.tryingtosee.com/api/transcribe \
  -F "file=@video.mp4" \
  -F "source_language=en"

๐Ÿ“ Static File Endpoints

GET /videos/{filename}

Access uploaded video files (for SyncLabs)

https://localize.tryingtosee.com/videos/example.mp4
GET /audio/{filename}

Access uploaded audio files (for SyncLabs)

https://localize.tryingtosee.com/audio/example.wav
GET /outputs/{filename}

Access processed output files

https://localize.tryingtosee.com/outputs/result.mp4

๐Ÿ”ง Setup Instructions

  1. Create static directories:
    mkdir -p /var/www/tts-finetune/tts_api/localization/static_files/{videos,audio,outputs}
    chmod -R 755 /var/www/tts-finetune/tts_api/localization/static_files
  2. Start the API server:
    cd /var/www/tts-finetune/tts_api/localization
    python test_server.py --mode server --port 8001
  3. Test the API:
    curl https://localize.tryingtosee.com/api/

๐Ÿ“š Documentation

๐Ÿงช Quick Test

Test if static file serving is working:

# Create a test file
echo "test" > /var/www/tts-finetune/tts_api/localization/static_files/videos/test.txt

# Access it
curl https://localize.tryingtosee.com/videos/test.txt