Hello I am trying to find a better way to store audio files that I got from text to speech where I will play later in a workflow sequence. Right now I am running a workflow where it goes down a repeating group of text that is a movie scene script with characters and dialogue. Depending on which character’s line it is, it will take the text from that repeating group item number and convert it into an audio file using open ai text to speech API keys. I then take this text to speech file and save it to a data field I created called “audio files” where I then add it to another repeating group on the page with a data source called “audio files”. I also have custom states that serve as numbers that keep count. Every time the workflow plays the audio it goes to the repeating group “audio files” and plays the correct item # audio file.
This is a very complicated process. My question is: is there an easier way to do this? Is there a way to store the audio files somewhere temporary without the need of another repeating group? How would I keep track and que the right files since there are multiple audio files required on the script?
If anyone could briefly point be into the right direction on fixing this I would greatly appreciate it!
Thank you