File size: 929 Bytes
064bfd6 0524ab0 064bfd6 0524ab0 064bfd6 0524ab0 346a09e 0524ab0 064bfd6 0524ab0 064bfd6 346a09e 94f44a2 064bfd6 94f44a2 346a09e 94f44a2 0524ab0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | /**
* Kill-switch check for voice mode. Bypassed in external builds —
* voice is always eligible pending other checks (mic, dependencies,
* STT backend).
*/
export function isVoiceGrowthBookEnabled(): boolean {
return true
}
/**
* Auth-only check for voice mode. Returns true unconditionally in
* external builds — the Groq Whisper backend does not require Anthropic
* OAuth, and the GrowthBook kill-switch is already bypassed.
*/
export function hasVoiceAuth(): boolean {
return true
}
/**
* Full runtime check for voice mode.
* Returns true when both auth + GrowthBook kill-switch pass.
*/
export function isVoiceModeEnabled(): boolean {
return hasVoiceAuth() && isVoiceGrowthBookEnabled()
}
/**
* Check if voice mode can be activated with the Groq STT backend.
* The Groq backend does not require Anthropic auth.
*/
export function isVoiceAvailable(): boolean {
return isVoiceGrowthBookEnabled()
} |