Skip to content

zenika-open-source/agent-Z-transcribe-podcast

Repository files navigation

🤖 Agent Z transcribe podcast

This is an IA Agent to transcribe podcasts to be easily readable as a book.

🛠️ Configuration

1️⃣ Export these 2 variables:

export GOOGLE_GENAI_USE_VERTEXAI=FALSE
export GOOGLE_API_KEY=<your gemini API>

2️⃣ Create a src/main/resources/credentials.json containing the credential for the Google Docs API (cf here)

✨ Development

To run your agent (if you have only one specific agent):

mvn compile exec:java -Dexec.mainClass="agents.AgentZTranscribePodcast"

or to your project with some agents (where --adk.agents.source-dir contains the directory where agents are located):

mvn exec:java -Dexec.mainClass=com.google.adk.web.AdkWebServer -Dexec.classpathScope=compile  -Dexec.args="--server.port=8080 --adk.agents.source-dir=src/main/java/agents/"

To run the UI, run this command and go to http://localhost:8080/dev-ui?

🚀 Deployment

To deploy on Cloud Run:

  • authentification on GCP with gcloud auth login

  • configure settings exporting variables:

export GOOGLE_CLOUD_PROJECT=<your projet>
export GOOGLE_CLOUD_LOCATION=<location like europe-west1>
export GOOGLE_GENAI_USE_VERTEXAI=<true if you deploy on Google Cloud, else false>
export GOOGLE_API_KEY=<your GOOGLE API KEY>

or adding them into a .env file (cf env-template file)

export GCLOUD_PROJECT=
export GCLOUD_LOCATION=europe-west1
export GCLOUD_GENAI_USE_VERTEXAI=FALSE
export GOOGLE_API_KEY=
  • and run the gcloud command.
gcloud run deploy agent-z-transcribe-podcast \
--source . \
--region $GCLOUD_LOCATION \
--project $GCLOUD_PROJECT \
--allow-unauthenticated \
--memory 1Gi \
--max-instances 1 \
--set-env-vars="GOOGLE_CLOUD_PROJECT=$GCLOUD_PROJECT,GOOGLE_CLOUD_LOCATION=$GCLOUD_LOCATION,GOOGLE_GENAI_USE_VERTEXAI=$GCLOUD_GENAI_USE_VERTEXAI,GOOGLE_API_KEY=$GOOGLE_API_KEY"

✨Contribute

Anyone can contribute to this project. For the moment, please add your question or purpose something in a new issue.

with love by zenika

About

An IA Agent to transcibe podcasts

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •