This project is a Flask web application that allows users to plot various probability distribution functions (PDFs) based on their voice input. The application integrates speech recognition and text-to-speech functionalities to enhance user interaction.
flask_pdf_plotting
├── app.py # Main application file
├── templates
│ └── index.html # HTML template for user interface
├── static
│ └── styles.css # CSS styles for the web application
├── script.sh # Shell script for quick server startup
├── requirements.txt # List of dependencies
└── README.md # Project documentation
To run this application, you need to have the following dependencies installed:
- Flask
- SpeechRecognition
- PyAudio
- Matplotlib
- NumPy
- SciPy
You can install the required packages using the following command:
pip install -r requirements.txt
also run:
sudo apt update; sudo apt install portaudio19-dev python3-pyaudio -y
-
Clone the repository or download the project files.
-
Navigate to the project directory.
-
Run the
script.sh
file to start the Flask server:./script.sh
-
Open your web browser and go to
http://127.0.0.1:5000
to access the application.
- Upon accessing the application, you will see a simple form where you can select the type of PDF you want to plot.
- After making your selection, click the submit button to generate the plot.
- The application will also provide voice prompts to guide you through the process.
This project is open-source and available under the MIT License.