Forum Discussion
Don't want Text-to-speech to play automatically
Hello Peter, and welcome to E-Learning Heroes. 😊
Thanks for reaching out and sharing what you would like to do. You can certainly allow users to control the playback using the play button in the player.
If you don't want the user to do this for every slide, you can have a button on the first slide to state they would like this feature turned on.
I've outlined each example in the attached file:
- Scene 1: Pause the timeline on the slide when the timeline starts.
- Scene 2: Adjust a variable when the user clicks the button that allows audio to play throughout the course.
Hello Leslie,
I looked that the example. One question I have is for Scene 2. Is there a way to get the button to toggle back and forth between on and off?
- EricSantos7 months agoStaff
Hello WhitneyHall-705,
I'm happy to help with this! I understand you'd like the button in Scene 2 to toggle between on and off.
I recommend the following changes to Leslie's project file:
- Modify the text to reflect the toggle action.
- Change the trigger action to "Toggle Audio."
- Add a condition in the "Play audio" trigger to test whether the "Audio" variable has a value of "True" and an "Else" statement to stop the audio if it is "False."
You can find these modifications in the attached project file.
Please don't hesitate to reach out if you have additional questions.
Related Content
- 8 months ago