WP A DAY is the experimental podcast I’m creating using AI. The audio construction process (in Spanish and English) has two parts. In the first, through a development in PHP and from a file that contains the RSS files of different blogs that usually publish news about WordPress, a text is obtained as a script for each episode. And, in the second, that text is transformed into audio.
The second part involves the use of Amazon Polly, which gives more than acceptable naturalness in speech.
The first part is where the magic is. And from the first versions of the code, very basic, to the one I obtained this weekend – a little more elaborate – I have approached the problem in several different ways.
In the image, you can see the first step: the creation of a web form where you can choose the summaries that will be included in the podcast script. I had to try many options until I found the one that seemed most practical to me: the form already contains the summary obtained by ChatGPT and they are already recorded in a file. This allows me to run the RSS information extraction again and interact with ChatGPT again, if necessary, before selecting the posts that will go to the script.
Of the entire process, the critical part is in the generation of the summaries. And I think the result is already convincing because I am able to iterate – as many times as necessary – with ChatGPT, running a script to obtain the summaries and, consequently, the form for selecting the articles that will go into the script.
Naturally, this version 1.0 of the code can be improved but the important thing is that I have achieved a consistent and effective process.
Look, for example, at an example of a generated script:
Now I must optimize the text of the scripts, generating introductions and goodbyes; more connecting phrases, in a more natural way. In this section, ChatGPT does not intervene and I do it using arrays with phrases and the random access instruction. But, I have to think about it to see if ChatGPT could improve it.
The 3,000 character limitation that Amazon Polly imposes to avoid having to use S3 storage does not worry me at the moment.
https://acambronero.wordpress.com/2023/11/05/primeros-resultados-convincentes-en-mi-aplicacion-para-crear-un-podcast-con-ia/
#AmazonPolly #ChatGPT