SilenceSense is a web application that detects silences in audio files using Voice Activity Detection (VAD). The project consists of a React frontend for the user interface and a Flask backend for processing audio files.
Ensure you have the following installed:
- Python 3.x
- Node.js and npm (or Yarn)
-
Clone the repository:
git clone https://github.com/yourusername/silencesense.git cd silencesense -
Navigate to the
backenddirectory:cd backend -
Install the required Python packages:
pip install -r requirements.txt
-
Run the Flask application:
python app.py
The backend will be running on
http://localhost:5000.
-
Navigate to the
frontenddirectory:cd ../frontend -
Install the required Node.js packages:
npm install
Or if you use Yarn:
yarn install
-
Start the React application:
npm start
Or if you use Yarn:
yarn start
The frontend will be running on
http://localhost:3000.
- Ensure both the Flask backend and the React frontend are running.
- Open your browser and go to
http://localhost:3000to interact with the application.
For testing the backend, you can use tools like curl or Postman to send requests to the Flask API.
For frontend testing, use the built-in React testing utilities or other libraries like Jest.
To deploy the application, consider the following steps:
-
Backend Deployment:
- Use platforms like Heroku, AWS, or Google Cloud to host the Flask application.
-
Frontend Deployment:
- Deploy the React application using Vercel, Netlify, or any static site hosting service.
-
Configure Environment Variables:
- Ensure that environment variables for production are set correctly in both the frontend and backend deployments.