*[2. Function 3 processing & ML Model Development](#3-Function-3-processing-&-ML-Model-Development-folder)
*[3. Service Files](#3-Service-Files-folder)
*[4. Fast API & app file](#4-Fast-API-&-app-file-folder)
------------------
## FastAPI Development
-------------------------------------------------
## Function 3 Development
### 1.About Function 3
- To run the API, please ensure you have installed the required packages, "fastapi" and "uvicorn." If you haven't already installed them, you can do so using the following commands:
- This function include three main parts:
- 1. Speech to text : Convert the voice to text children with Dyslexia
- 2. Accuracy : The accuracy of the pronunciation should be given as a percentage.
- 3. Text to speech : Convert the the Missing or wrong pronounsation words to voice.
```bash
pip install fastapi
pip install"uvicorn[standard]"
```
- Once these packages are installed, you can proceed to run the API.
1. To run the api, use the following command inside the API folder:
```bash
python main.py
```
2. You can access the project output in your browser using the following URL:
```bash
http://127.0.0.1:8000
```
3. To explore the API documentation, visit:
```bash
http://127.0.0.1:8000/docs
```
------------------------
### 2. Function 1 processing & ML Model Development ()
## Setting Up the Development Environment
- Inside this folder, you'll come across one Jupyter Notebooks dedicated to data preprocessing and model training:
Follow these steps to set up your development environment for this project:
-`lj_function03.ipynb`: This file primarily involves to loard the speech to text & text to spech pre training models and finaly return the accuracy score.
### Create a New `venv`
### 3. Service Files ()
- Within this directory, there are one python ".py" files:
1. Navigate to your project directory:
-`lj_functiono3.py`: This service file include three main functions(speech to text , scoring , text to speech)
- input : sound file and text `def speech_to_text(audio_file) , def scoring(words,transcriptions) ,def text_to_speech(text,return_tensors="pt")`
- Attached models : speech to text ([Link](https://drive.google.com/drive/folders/1jvP4lyhkyLbhtv0fUohLHaeQOnjGsttH?usp=drive_link))
Text to speech ([Link](https://drive.google.com/drive/folders/1pWtfsLg4IyvPTjKC-a-0-PEIWbZTyYE_?usp=drive_link))
- License : ` MIT License` ([Link](https://github.com/microsoft/SpeechT5?tab=MIT-1-ov-file#readme))
```bash
cd /path/to/your/project
```
- Process : This method is responsible for get the speech and convertto text and compaired with orginal text and return to speech accurasy and missing word speech
- Output : sentences and word scoring, missing words and voice of missing words.
2. Create a virtual environment:
---------------------
```bash
python -m venv <venv_name>
### 4. Fast API & app file ()
- Within this app.py module include one Fast API end points for function 3 :