{
displayName: 'Voice',
description: 'Select the voice to use for the speech synthesis',
name: 'voiceId',
type: 'resourceLocator',
default: { mode: 'list', value: null },
required: true,
modes: [
{
displayName: 'From list',
name: 'list',
type: 'list',
typeOptions: {
searchListMethod: 'getVoices',
searchable: true,
},
},
{
displayName: 'ID',
name: 'id',
type: 'string',
placeholder: 'en-US-natalie',
},
],
},
{
displayName: 'Output Locale',
name: 'multiNativeLocale',
type: 'resourceLocator',
default: { mode: 'list', value: '' },
description:
'Language for generated audio',
modes: [
{
displayName: 'From list',
name: 'list',
type: 'list',
typeOptions: {
searchListMethod: 'getSupportedLocales',
searchable: true,
},
},
{
displayName: 'Locale Code',
name: 'id',
type: 'string',
placeholder: 'en-US',
},
],
},
{
displayName: 'Voice Style',
name: 'style',
type: 'resourceLocator',
default: { mode: 'list', value: '' },
description: 'The voice style to be used for voiceover generation. Available styles depend on the selected voice and locale.',
modes: [
{
displayName: 'From list',
name: 'list',
type: 'list',
typeOptions: {
searchListMethod: 'getAvailableStyles',
searchable: true,
},
},
],
},
is it possible to reset the value of certain fields based on value of other fields
lets say in above description if voiceid changes then style and Output Locale should reset to empty can we have this kind of dynamic updation of input values
