File size: 1,758 Bytes
d98ca01
b282803
2739b64
d98ca01
 
 
 
 
 
 
2739b64
d98ca01
 
2739b64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
title: VideoVoice Translate
emoji: 🎬
colorFrom: purple
colorTo: blue
sdk: gradio
sdk_version: 5.49.1
app_file: app.py
pinned: false
license: mit
sdk_variant: zerogpu
---

# 🎬 Video Voice Translator

Translate videos to different languages while preserving the original voice characteristics using AI voice cloning!

## Features

- πŸŽ™οΈ **Voice Cloning**: Preserves the original speaker's voice characteristics
- 🌍 **Multi-language Support**: Translate to multiple languages
- πŸš€ **GPU Acceleration**: Automatically uses GPU when available (including ZeroGPU on Hugging Face Spaces)
- πŸ“ **Transcription & Translation**: View detailed transcription and translation

## Technology Stack

- **faster-whisper**: Fast and accurate speech transcription
- **Google Translate**: Translation engine
- **Chatterbox TTS**: Advanced voice cloning and text-to-speech
- **Gradio**: User-friendly web interface

## Usage

1. Upload a video file
2. Select the target language
3. Click "Start Translation"
4. Wait for processing (progress will be shown)
5. Download your translated video!

## Deployment

### Hugging Face Spaces (ZeroGPU)

This app is optimized for Hugging Face Spaces with ZeroGPU support. The app will automatically:
- Detect and use GPU when available
- Apply ZeroGPU decorators for efficient GPU allocation
- Fall back to CPU if GPU is not available

### Local Development

```bash
# Install dependencies
pip install -r requirements.txt

# Run the app
python app.py
```

The app will automatically detect if you have a CUDA-capable GPU and use it for faster processing.

## Configuration Reference

Check out the [Hugging Face Spaces configuration reference](https://huggingface.co/docs/hub/spaces-config-reference) for more details.