Add final touches to your app for better interactivity. Use gTTS for Text-to-Speech recipe playback, let users submit reviews and ratings, and list all ingredients. Build a script to export recipes to CSV.
Overview
Syllabus
- Unit 1: Adding Audio to Recipes
- Implement Text-to-Speech Audio Generation Function
- Register TTS Route
- Implement TTS Endpoint Request Validation
- Complete Text-to-Speech Audio Streaming
- Testing TTS API Endpoint
- Unit 2: Listing Ingredients and Reviews
- Setting Up Basic FastAPI Endpoint Structure
- Implement Get All Ingredients FastAPI Endpoint
- Creating Review Schema with Pydantic Validation
- Implementing Safe JSON Parsing for Reviews POST Endpoint
- Review Submission Persistence
- Return a correct Message for the User
- Unit 3: Exporting Recipes to CSV
- Fix Python Import Paths for CSV Export Script
- Working with SQLAlchemy Database Sessions
- Complete Recipe CSV Export File Creation
- Format Recipe Ingredient Lists for CSV Export
- Format Recipe Steps for CSV Export
- Complete Recipe CSV Export with Data Writing and Success Messages
- Test Complete CSV Export Tool