Fix issue with tts voices not loading
This commit is contained in:
parent
eb07a42f1d
commit
2e33a00667
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue