https://github.com/iammar7/text-to-talk
Summarize text and convert it to speech using BART and Bark models.
https://github.com/iammar7/text-to-talk
ai facebook-bart-api nlp summarization suno-bark text-to-speech transfomers
Last synced: about 1 year ago
JSON representation
Summarize text and convert it to speech using BART and Bark models.
- Host: GitHub
- URL: https://github.com/iammar7/text-to-talk
- Owner: iAmmar7
- Created: 2024-04-20T20:18:21.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-17T15:24:00.000Z (over 1 year ago)
- Last Synced: 2025-01-29T11:13:24.311Z (over 1 year ago)
- Topics: ai, facebook-bart-api, nlp, summarization, suno-bark, text-to-speech, transfomers
- Language: Python
- Homepage:
- Size: 1.73 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# text-to-talk
**Text-to-Talk** is a FastAPI application providing APIs for text summarization and text-to-speech conversion. It utilizes pre-trained models from Hugging Face's Transformers library using the Facebook's BART and the Suno Bark model for TTS.
## Features
- Summarize text using the BART model.
- Convert text to speech using the Bark model.
- Combine text summarization and text-to-speech into one endpoint.
## Installation and Setup
### Prerequisites
Ensure you have the following installed:
- **Node.js** (for the client)
- **Python 3.9+** (for the server)
- **Git** (for cloning the repository)
Follow these steps to set up and run the application:
### 1. Clone the Repository
Clone this repository to your local machine:
```bash
git clone https://github.com/iAmmar7/text-to-talk.git
cd text-to-talk
```
### 2. Server (Backend)
#### Navigate to the Server Directory
```bash
cd server
```
#### Set Up a Virtual Environment
```bash
python -m venv venv
source venv/bin/activate # On Linux/Mac
venv\Scripts\activate # On Windows
```
#### Install Server Dependencies
```bash
pip install -r requirements.txt
```
#### Run the Server
```bash
uvicorn app.main:app --reload
```
The server will be available at
#### Access the API
Once the application is running, you can access the API documentation at:
Swagger UI:
ReDoc:
### 3. Client (Frontend)
#### Navigate to the Client Directory
```bash
cd client
```
#### Install Client Dependencies
```bash
npm install
```
#### Run the client
```bash
npm run dev
```
The client will be available at .
## Usage
1. Start the backend server first.
2. Start the frontend client.
3. Open in your browser to interact with the application.
## Sanpshots
