Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

speechCopy.ts

18 lines778 Bytes

1import { CLOUD_SPEECH_PROVIDER_NAMES, type CloudSpeechProvider } from "@t3tools/contracts";
2import { mFallback, msg } from "gt-i18n";
3import type { M } from "gt-i18n";
4​
5/** @public */
6export function cloudSpeechDisclosure(
7 provider: CloudSpeechProvider,
8 environment: string,
9 resolve: M = mFallback,
10) {
11 return provider === "openrouter"
12 ? resolve(
13 msg`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.`,
14 )
15 : resolve(
16 msg`After you stop, ${{ environment }} sends your recording and vocabulary hints, including project names, to ${{ provider: CLOUD_SPEECH_PROVIDER_NAMES[provider] }}.`,
17 );