A web application that generates famous quotes from a person and speaks them out using Google's Generative AI and Text-to-Speech services.
- Get famous quotes from any person.
- Listen to the quotes spoken in different voices and languages.
- Simple and intuitive web interface.
-
Clone the repository:
git clone https://github.com/your-username/talking-figure.git cd talking-figure -
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate -
Install the dependencies:
pip install -r requirements.txt
-
Create a
config.pyfile and add your Google API key:GOOGLE_API_KEY = "YOUR_GOOGLE_API_KEY"
-
Run the application:
uvicorn main:app --reload
-
Open your browser and go to
http://127.0.0.1:8000.
This application can be deployed to any platform that supports FastAPI applications, such as Vercel, Heroku, or Google App Engine.
POST /api/quotes: Get famous quotes from a person.GET /api/voices: Get a list of available voices.POST /api/speak: Generate speech from text.