videosphere
    Preparing search index...
    • Translates live caption text for a listen language using the owner-selected provider only. Does not fall back across providers when credentials are missing. Applies sermon source clarification for all providers, then a Mandarin/Cantonese safety repair when “sin against” is still rendered as fight/defy.

      Parameters

      • params: {
            provider: string;
            gcpServiceAccountJson?: string;
            openRouterApiKey?: string;
            groqApiKey?: string;
            openRouterTranslateModel?: string;
            text: string;
            sourceLanguage: string;
            targetLanguage: string;
            recentSourceContext?: string;
            signal?: AbortSignal;
        }

        Provider, credentials, text, and optional prior source context.

        • provider: string
        • OptionalgcpServiceAccountJson?: string
        • OptionalopenRouterApiKey?: string
        • OptionalgroqApiKey?: string
        • OptionalopenRouterTranslateModel?: string

          Chat model id for OpenRouter or Groq translate.

        • text: string
        • sourceLanguage: string
        • targetLanguage: string
        • OptionalrecentSourceContext?: string

          Prior source finals for chat MT disambiguation (ignored by GCP NMT). Prefer several short recent lines over a long dump.

        • Optionalsignal?: AbortSignal

      Returns Promise<string>

      Translated text.