@gamelearn/arcade-components 1.29.1 → 1.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helpers/useEkho.js +1 -3
- package/package.json +1 -1
package/dist/helpers/useEkho.js
CHANGED
|
@@ -167,8 +167,6 @@ var useEkho = function useEkho(_ref) {
|
|
|
167
167
|
}
|
|
168
168
|
}, [noAudio, stopCurrentAudio]);
|
|
169
169
|
(0, _react.useEffect)(function () {
|
|
170
|
-
stopCurrentAudio();
|
|
171
|
-
|
|
172
170
|
if (isMounted && started) {
|
|
173
171
|
if (audioType === 'voice' && voice !== null && voice !== void 0 && voice.id) {
|
|
174
172
|
var voiceId = getVoice(voice);
|
|
@@ -182,7 +180,7 @@ var useEkho = function useEkho(_ref) {
|
|
|
182
180
|
onError();
|
|
183
181
|
}
|
|
184
182
|
}
|
|
185
|
-
}, [getVoice, playSpeech, isMounted, voice, text, audioType, audio === null || audio === void 0 ? void 0 : audio.url, audio, setCurrentPlaying, onError, started
|
|
183
|
+
}, [getVoice, playSpeech, isMounted, voice, text, audioType, audio === null || audio === void 0 ? void 0 : audio.url, audio, setCurrentPlaying, onError, started]);
|
|
186
184
|
return stopCurrentAudio;
|
|
187
185
|
};
|
|
188
186
|
|