Merge dialogue function is broken

The merge dialogue function is no longer working I think (deep research and podcast agents).

It just runs forever and nothing happens.

In the agents on the store, or in a copy that you have made? I have not seen any issues looking through the logs of the agents in the store.

I copied it and tried it out. It was working up until about 24 hours ago. Then it stopped working. Everything worked until that block. It just takes forever to merge the different audios.

Is it working on your end?

Just tried it again. My copied agent has the exact code as the original agents. It just won’t merge and produce the one url of the final audio file like before.

The function in the store agent was updated to mix in intro/outro music, as well as burn in cover art and metadata to the mp3 file. If your custom agent is missing those steps, that is probably why it is failing.

If you are not using the additional mixing capabilities, the entire function should just be one line:
ai.vars[ai.config.outputVariable] = await ai.concatenateAudio(ai.config.urls);

Hi Sean,

Thanks. It is working now but only if the duration is less than 10 minutes. When I tried to make it longer (less than 100 lines in the dialogue because there is also a 100 iteration limit), it doesn’t merge and just times out.

Can you give it another try with the long one? I just changed some settings.

Thx. Should I try less or more than 100 lines? There was an array limit of 100.

Just tried it with 89 lines in the dialogue. It didn’t work. The merge dialogue block will keep running and not generate an audio file.

It works when there are only around 60 lines.