This enhanced overlay supports local Mozilla Bergamot translation plus remote providers (Google, OpenAI-compatible endpoints, and Anthropic) while maintaining backward compatibility with existing URLs.
googlekey=YOUR_API_KEYorgkey=YOUR_API_KEYkeeps existing Google Cloud behavior.tprovider=openaisupports OpenAI-compatible APIs (OpenAI, Ollama OpenAI mode, vLLM, local proxies).tprovider=anthropicuses Anthropic's native Messages API.forcelocal=1forces local Bergamot translation even when a remote provider is configured.
- Add
context=1orfullcontext=1to enable contextual translation. contextsize=Nsets number of previous messages to include (default:2).
- Add
fromlang=autoorautodetectto enable auto-detection. - Auto-detect requires a remote provider.
- Local Bergamot translation does not support auto-detect.
tprovider=google|openai|anthropic|ollama|localturl=https://your-endpoint.example(custom base URL for remote providers)tmodel=MODEL_NAME(model id for OpenAI-compatible/Anthropic providers)tkey=API_KEYortranslatekey=API_KEYfromlang=XXto set source language manually (for non-auto mode)
intermclear=1clears finished captions while interim text streams.dual=1(orview=dual) shows translated text above original text.
- Existing overlay defaults are unchanged unless a style parameter is added.
nobg=1orbg=transparentremoves the black caption highlight.bg=COLOR,color=COLOR,fontcolor=COLOR,fontsize=SIZE,scale=N,font=FAMILY,fontweight=VALUE,lineheight=VALUE, andletterspacing=SIZEcustomize text appearance.pad=SIZE,padx=SIZE,pady=SIZE,radius=SIZE,borderwidth=SIZE, andbordercolor=COLORcustomize the caption highlight box.shadow=none,noshadow=1,shadow=VALUE,shadowcolor=COLOR,outline=SIZE, andoutlinecolor=COLORcustomize text shadow/outline.align=left|center|right,valign=top|middle|bottom,topoffset=SIZE,bottomoffset=SIZE,leftoffset=SIZE, andrightoffset=SIZEcustomize placement.nowrap=1,uppercase=1,lowercase=1,opacity=N,bgopacity=N,labelcolor=COLOR,labelbg=COLOR,translationcolor=COLOR, andoriginalcolor=COLORprovide additional display control.css=URLandbase64css=...allow advanced custom styles.vmix.html?room=abc123is a vMix-friendly shortcut that forwards tooverlay.htmlwithnobg=1unless a background/highlight parameter is already provided.
overlay.html?room=abc123&translate=es&googlekey=YOUR_API_KEY
overlay.html?room=abc123&translate=es&tprovider=openai&tmodel=gpt-4o-mini&tkey=YOUR_KEY
overlay.html?room=abc123&translate=es&tprovider=anthropic&tmodel=claude-3-5-haiku-latest&tkey=YOUR_KEY
overlay.html?room=abc123&translate=es&tprovider=ollama&turl=http://127.0.0.1:11434/v1&tmodel=llama3.1
overlay.html?room=abc123&translate=es&googlekey=KEY&forcelocal=1
All existing URLs continue to work:
overlay.html?room=abc&translate=esuses local translation.overlay.html?room=abc&translate=es&googlekey=KEYuses Google translation.overlay.html?room=abc&lang=frandoverlay.html?room=abc&ln=deremain aliases.
- If
forcelocal=1-> use local Bergamot. - Else if remote provider is configured (
googlekeyortprovider) -> use remote provider. - Else -> use local Bergamot.
- Remote responses are cached for 24 hours to reduce duplicate calls.
- Auto-detect errors or provider failures surface in overlay status/console.
- If the remote provider is unreachable and local mode is active, local translation continues to work.