Open History to see the last commit
1import { CLOUD_SPEECH_PROVIDER_NAMES, type CloudSpeechProvider } from "@t3tools/contracts";
2import { mFallback, msg } from "gt-i18n";
3import type { MFunctionType } from "gt-i18n/types";
4
5/** @public */
6export function cloudSpeechDisclosure(
7 provider: CloudSpeechProvider,
8 environment: string,
9 resolve: MFunctionType = mFallback,
10) {
11 return provider === "openrouter"
12 ? resolve(
13 msg(
14 "After you stop, {environment} sends the recording to OpenRouter. OpenRouter chooses who runs your model. T3 requests zero data retention; your OpenRouter account may allow safety retention.",
15 { environment },
16 ),
17 )
18 : resolve(
19 msg(
20 "After you stop, {environment} sends your recording and vocabulary hints, including project names, to {provider}.",
21 { environment, provider: CLOUD_SPEECH_PROVIDER_NAMES[provider] },
22 ),
23 );
24}