JSON Error on Whisper API

I am getting the below error which is on OpenAI api using Whisper to create output from the text. It has been working fine and I believe it could be because speech marks are used in the OpenAI output, which impacts the Whisper api
image

We are using Bubble to create a story from OpenAI and then output this to Audio. However, some are working fine and I can’t figure out why

Are you escaping the JSON?

I did add :formatted as JSON safe on the state creation

Check the logs or build a log to see if escaping is being applied to the needed area of your logic. Sometimes one thinks that JSON is being escaped but it may not actually be. Example: do not use “” with the json safe text which already has these added by automatically. This would in fact create double quotations on the start and finish.