MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / resetTestAudio

Function resetTestAudio

packages/ui/src/ui-component/extended/TextToSpeech.jsx:114–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112 const [resetWaveform, setResetWaveform] = useState(false)
113
114 const resetTestAudio = () => {
115 if (testAudioSrc) {
116 URL.revokeObjectURL(testAudioSrc)
117 setTestAudioSrc(null)
118 }
119 setIsTestPlaying(false)
120 setResetWaveform(true)
121 setTimeout(() => setResetWaveform(false), 100)
122 }
123
124 const onSave = async () => {
125 const textToSpeechConfig = setValue(true, selectedProvider, 'status')

Callers 3

setValueFunction · 0.85
handleProviderChangeFunction · 0.85
TextToSpeechFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected