Fix issue with tts voices not loading

This commit is contained in:
Ilango Rajagopal 2025-08-26 07:18:13 +05:30
parent eb07a42f1d
commit 2e33a00667
1 changed files with 2 additions and 2 deletions

View File

@ -172,8 +172,8 @@ const TextToSpeech = ({ dialogProps }) => {
setSelectedProvider(() => provider)
setVoices([])
if (provider !== 'none') {
const config = configOverride || textToSpeech?.[provider]
const credentialId = config?.credentialId
const config = configOverride || textToSpeech
const credentialId = config[provider]?.credentialId
if (credentialId) {
loadVoicesForProvider(provider, credentialId)
}