Make voice-fetching more robust by always clearing the request timeout and stricter type-checking of remote data. - move clearTimeout into finally blocks for Deepinfra and custom OpenAI voice fetches to guarantee the timeout is cleared on success, failure, or abort - validate that custom endpoint returns an array of strings before accepting voices; otherwise fall back to defaults This reduces potential timer leaks and avoids accepting malformed voice lists from custom endpoints. |
||
|---|---|---|
| .. | ||
| app | ||
| components | ||
| contexts | ||
| db | ||
| hooks | ||
| lib | ||
| types | ||
| middleware.ts | ||