You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# GROQ_TRANSCRIPTION_PROMPT=Conversation with technical terms and product names.
6
+
# RTDT_TRANSCRIPTION_MODE=fast
7
+
# RTDT_TRANSCRIPTION_LANGUAGE=en
8
+
# RTDT_TRANSCRIPTION_TEMPERATURE=0
9
+
# RTDT_TRANSCRIPTION_PROMPT=This is an English motivational speech. Common words: power of words, adversity, opportunity, weakness, strength, disabled, differently abled, disability.
Use `fast` for lower latency (`whisper-large-v3-turbo`) or `accurate` for better accuracy (`whisper-large-v3`).
90
+
When `RTDT_TRANSCRIPTION_MODE` is set, it selects the Groq transcription model. Without it, an explicit `GROQ_TRANSCRIPTION_MODEL` value is used.
91
+
83
92
OpenAI-compatible endpoint example:
84
93
85
94
```env
@@ -101,23 +110,32 @@ Keep real credentials local. `.env` and `keys.py` are ignored by Git and should
101
110
These values are optional and can be added to `.env` when needed:
102
111
103
112
```env
104
-
GROQ_TRANSCRIPTION_LANGUAGE=id
105
-
GROQ_TRANSCRIPTION_TEMPERATURE=0
106
-
GROQ_TRANSCRIPTION_PROMPT=Conversation with technical terms and product names.
107
-
108
-
RTDT_RECORD_TIMEOUT=1.4
109
-
RTDT_PHRASE_TIMEOUT=5.0
110
-
RTDT_PAUSE_THRESHOLD=0.65
111
-
RTDT_MIN_AUDIO_SECONDS=0.45
113
+
RTDT_TRANSCRIPTION_MODE=fast
114
+
RTDT_TRANSCRIPTION_LANGUAGE=en
115
+
RTDT_TRANSCRIPTION_TEMPERATURE=0
116
+
RTDT_TRANSCRIPTION_PROMPT=This is an English motivational speech. Common words: power of words, adversity, opportunity, weakness, strength, disabled, differently abled, disability.
117
+
118
+
RTDT_RECORD_TIMEOUT=1.0
119
+
RTDT_PHRASE_TIMEOUT=3.0
120
+
RTDT_PAUSE_THRESHOLD=0.50
121
+
RTDT_MIN_AUDIO_SECONDS=0.30
112
122
RTDT_MIN_AUDIO_RMS=120
113
-
RTDT_TRANSLATION_SILENCE_DELAY=5.0
123
+
RTDT_MIN_MIC_RMS=120
124
+
RTDT_MIN_SPEAKER_RMS=90
125
+
RTDT_ENABLE_AUDIO_NORMALIZATION=1
126
+
RTDT_TARGET_AUDIO_RMS=800
127
+
RTDT_PRIORITIZE_SPEAKER=1
128
+
RTDT_UI_REFRESH_MS=150
129
+
RTDT_PROCESSING_STATUS_DELAY=0.15
114
130
```
115
131
116
132
Model recommendation:
117
133
118
134
-`whisper-large-v3-turbo` for lower latency
119
135
-`whisper-large-v3` for higher accuracy
120
136
137
+
Set `RTDT_TRANSCRIPTION_LANGUAGE=auto` to let the provider detect the language. For English video/audio, prefer `en` or `auto`; do not force `id` unless the source audio is Indonesian.
138
+
121
139
## Running the Application
122
140
123
141
Run local transcription mode:
@@ -189,9 +207,9 @@ ffmpeg -version
189
207
190
208
The application captures the default Windows speaker output through WASAPI loopback. Set the target output device as the Windows default speaker before starting the app.
191
209
192
-
### Transcription is delayed
210
+
### Translation is delayed
193
211
194
-
Transcript blocks are finalized after a silence delay. Lower `RTDT_TRANSLATION_SILENCE_DELAY` and `RTDT_PHRASE_TIMEOUT` for faster updates, or increase them for more stable sentence grouping.
212
+
Translation runs when you click the `Selesai` button. While speaking, the active transcript block keeps updating and the translation field waits for that manual finish action.
Copy file name to clipboardExpand all lines: keys.example.py
+16-6Lines changed: 16 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,19 @@
3
3
GROQ_TRANSLATION_MODEL="llama-3.1-8b-instant"
4
4
5
5
# Optional tuning:
6
-
# GROQ_TRANSCRIPTION_LANGUAGE = "id"
7
-
# GROQ_TRANSCRIPTION_TEMPERATURE = "0"
8
-
# GROQ_TRANSCRIPTION_PROMPT = "Conversation with technical terms and product names."
9
-
# RTDT_RECORD_TIMEOUT = "1.4"
10
-
# RTDT_PHRASE_TIMEOUT = "5.0"
11
-
# RTDT_TRANSLATION_SILENCE_DELAY = "5.0"
6
+
# RTDT_TRANSCRIPTION_MODE = "fast"
7
+
# RTDT_TRANSCRIPTION_LANGUAGE = "en"
8
+
# RTDT_TRANSCRIPTION_TEMPERATURE = "0"
9
+
# RTDT_TRANSCRIPTION_PROMPT = "This is an English motivational speech. Common words: power of words, adversity, opportunity, weakness, strength, disabled, differently abled, disability."
0 commit comments