Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,19 @@ os.makedirs(app.config['DOWNLOAD_FOLDER'], exist_ok=True)
|
|
33 |
genai.configure(api_key=app.config['GEMINI_API_KEY'])
|
34 |
|
35 |
# Voice Configuration
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
GEMINI_PROMPT = """
|
39 |
You are an expert AI scriptwriter. Your task is to watch the provided video and transcribe ALL spoken dialogue into a SINGLE, CONTINUOUS block of modern, colloquial Tamil.
|
|
|
33 |
genai.configure(api_key=app.config['GEMINI_API_KEY'])
|
34 |
|
35 |
# Voice Configuration
|
36 |
+
VOICE_OPTIONS = {
|
37 |
+
"Male (Charon)": {
|
38 |
+
"id": "charon",
|
39 |
+
"description": "Deep, authoritative male voice",
|
40 |
+
"tone_options": ["neutral", "serious", "cheerful"]
|
41 |
+
},
|
42 |
+
"Female (Zephyr)": {
|
43 |
+
"id": "zephyr",
|
44 |
+
"description": "Soft, clear female voice",
|
45 |
+
"tone_options": ["neutral", "gentle", "energetic"]
|
46 |
+
}
|
47 |
+
}
|
48 |
+
|
49 |
|
50 |
GEMINI_PROMPT = """
|
51 |
You are an expert AI scriptwriter. Your task is to watch the provided video and transcribe ALL spoken dialogue into a SINGLE, CONTINUOUS block of modern, colloquial Tamil.
|