Skip to content

an-bluecat/the-ai-briefing-room

Repository files navigation

the-ai-briefing-room

briefing-room drawio (1)

Installation

First, ensure you have Python installed on your system. Then, install the required dependencies:

pip install -r requirements.txt

Running the Script

To generate a podcast episode, use the following command:

python main.py [episode number]

cd newsLetter

change the date here:file_path = "../output/2024-05-07/podcast_data.txt"

python newsletter.py

Replace [episode number] with the actual number of the episode you want to generate.

Output

After running the script, the output will be organized into folders by date within the output folder. Each folder will contain three .mp3 files for the podcast in different languages (Chinese, English, Spanish) and a .txt file containing the podcast title, description, and script. See the example structure below:

/output
  /2024-04-23
    Chinese_final_podcast.mp3
    English_final_podcast.mp3
    Spanish_final_podcast.mp3
    podcast_data.txt

Configuration

  1. Create a .env file in the root directory of your project and add the following content:
os.environ['OPENAI_API_KEY'] = [your openai key]
os.environ['OPENAI_ORGANIZATION_ID'] = [your openai org id]
EMAIL = [anchor login email]
PASSWORD = [anchor login password]
SMTP_PASSWORD = [SMTP Password]
SPREADSHEET_ID = [Google SpreadSheet Id]

Replace [xxx] with your actual credentials

  1. Create a JSON file named ai-briefing-room-key.json with obfuscated details for sensitive fields:
{
    "type": "service_account",
    "project_id": [Project ID],
    "private_key_id": [Private Key ID],
    "private_key": [Private Key],
    "client_email": [Client Email],
    "client_id": [Client ID],
    "auth_uri": "https://accounts.google.com/o/oauth2/auth",
    "token_uri": "https://oauth2.googleapis.com/token",
    "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
    "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/YOUR_CLIENT_EMAIL",
    "universe_domain": "googleapis.com"
}

About

AI generated tech news briefing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published