MCPcopy Create free account
hub / github.com/simstudioai/sim / fetchVoiceSettings

Function fetchVoiceSettings

apps/sim/hooks/queries/voice-settings.ts:16–22  ·  view source on GitHub ↗
(signal?: AbortSignal)

Source from the content-addressed store, hash-verified

14type VoiceSettingsResponse = ContractJsonResponse<typeof getVoiceSettingsContract>
15
16async function fetchVoiceSettings(signal?: AbortSignal): Promise<VoiceSettingsResponse> {
17 try {
18 return await requestJson(getVoiceSettingsContract, { signal })
19 } catch {
20 return { sttAvailable: false }
21 }
22}
23
24/**
25 * Loads the server-side voice configuration so clients can conditionally

Callers 1

useVoiceSettingsFunction · 0.85

Calls 1

requestJsonFunction · 0.90

Tested by

no test coverage detected