I want to create an accessible experiment for word lists. Therefore, participants can choose in the variable ‘Version’ at the beginning between “visual” or “visual + audio”. I have included all audio files.
How can I ensure that audio is only played if it is selected? My first idea would be to use volume: 1 vs. 0. Is this a good way or is there a better way for doing it?
Error:
howler.js:1328
Uncaught (in promise) TypeError: Failed to execute ‘linearRampToValueAtTime’ on ‘AudioParam’: The provided float value is non-finite.
at Howl4.fade (howler.js:1328:30)
at TrackPlayer.play (TrackPlayer.js:220:14)
at Sound2.play (Sound.js:105:16)
at Object.function (FalseFriends.js:1063:57)
at Window.render (Window.js:353:13)
at update (Scheduler.js:155:26)
Is this in a JS/Both component? If you typed var then you may be limiting the scope of the variable so it can’t be seen by the audio component. I strongly recommend using Auto translate components whenever possible.