(signal?: AbortSignal)
| 14 | type VoiceSettingsResponse = ContractJsonResponse<typeof getVoiceSettingsContract> |
| 15 | |
| 16 | async 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 |
no test coverage detected