MCPcopy
hub / github.com/codeaashu/claude-code / isVoiceStreamAvailable

Function isVoiceStreamAvailable

src/services/voiceStreamSTT.ts:98–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96// ─── Availability ──────────────────────────────────────────────────────
97
98export function isVoiceStreamAvailable(): boolean {
99 // voice_stream uses the same OAuth as Claude Code — available when the
100 // user is authenticated with Anthropic (Claude.ai subscriber or has
101 // valid OAuth tokens).
102 if (!isAnthropicAuthEnabled()) {
103 return false
104 }
105 const tokens = getClaudeAIOAuthTokens()
106 return tokens !== null && tokens.accessToken !== null
107}
108
109// ─── Connection ────────────────────────────────────────────────────────
110

Callers 3

callFunction · 0.85
callFunction · 0.85
useVoiceFunction · 0.85

Calls 1

isAnthropicAuthEnabledFunction · 0.85

Tested by

no test coverage detected