Skip to content

Day 1: How to Convert Your Newsletter into a Podcast using Open AI?

If you don’t know, I write a newsletter called Above Average where I talk about the second order insights behind everything that is happening the big tech. If you are into tech and want to be above average, subscribe to it.

I have always admired Scott Galloways newsletter No Mercy, No Malice. One unique thing Scott does with his newsletter is, he hired his friend George Hahn to convert the newsletter into a podcast and is published every week in his podcast feed here.

I don’t have a friend like George Hahn, but I know AI voices have become very life like with recent advances. So I thought why not convert my newsletter in to a podcast?

So I played around and wrote a script to use Open AI’s text-to-speech API to convert my newsletter post into it’s audio version.

To follow along and use this script, you need Open AI credits and an Open AI Secret Key.

Here is the code I used.

from openai import OpenAI


client = OpenAI()
client.api_key = 'YOUR SECRET KEY'
txt = """1/ Google is the dark horse in AI

Only Google can mess up a good thing multiple times. Google has struggled to play the perception game that has turned against it after the launch of ChatGPT and with Sathya’s offense on all things AI.

Google released an impressive Gemini AI preview series and the success lasted for two days. Before media started to observe that the demo is not so much as a demo but series of well constructed prompts. Or a series of good demos complied to one great demo.

This is obviously putting Google back again in the perception wars of AI. The keyword here is perception.

If everything is perception & marketing than nothing in the world will be a surprise. In case of Google in AI, don’t let the perception confuse you. Google is still the dark horse in AI. Google was talking about AI in every Pixel device launch since last 5 years while the tech industry and VCs were saying that Crypto is the next big thing.

The day to day news cycle exists to take your attention and make you click & confuse you. AI is a continuous innovation not a discontinuous one. Google has strong fundamentals in AI and the AI cycle is much longer than 12 months of ChatGPT. Google has shipped more AI products via Gmail, Google Search, Ads and most importantly Google Pixel than any other company. So just because Google has failed to market itself doesn’t mean its a loser in AI.

Google is still a dark horse in AI."""

response = client.audio.speech.create(
    model="tts-1",
    voice="onyx",
    input=txt,
)

response.stream_to_file("output.mp3")

The newsletter post I took in this example is from this edition. Here is the output result it generated.

The result was not as good as Goerge Hahn’s voice but its much better than most of the audio book out there.

AI PRODUCT ALERT: This idea can be expanded further to create a product which takes a new newsletter when published, convert it automatically to a podcast and publish it in the podcast feed. George Hahn as a Service.

That’s if for day 1 of AI.

Follow me on twitter for latest updates on 100 days of AI or bookmark this page.