An open API service indexing awesome lists of open source software.

https://github.com/deepgram-starters/fastapi-text-to-speech

Get started using Deepgram's Text-to-Speech with this FastAPI demo app
https://github.com/deepgram-starters/fastapi-text-to-speech

deepgram demo fastapi python quickstart speech-synthesis text-to-speech tts

Last synced: 4 months ago
JSON representation

Get started using Deepgram's Text-to-Speech with this FastAPI demo app

Awesome Lists containing this project

README

          

# FastAPI Text-to-Speech

Get started using Deepgram's Text-to-Speech with this FastAPI demo app

## Quick Start

Click the button below to fork the repo:

[![Fork on GitHub](https://img.shields.io/badge/Fork_on_GitHub-blue?logo=github)](https://github.com/deepgram-starters/fastapi-text-to-speech/fork)

## Local Development

### Makefile (Recommended)

```bash
make init
cp sample.env .env # Add your DEEPGRAM_API_KEY
make start
```

Open [http://localhost:8080](http://localhost:8080) in your browser.

### Python & pnpm

```bash
git clone --recurse-submodules https://github.com/deepgram-starters/fastapi-text-to-speech.git
cd fastapi-text-to-speech
python3 -m venv venv
./venv/bin/pip install -r requirements.txt
cd frontend && corepack pnpm install && cd ..
cp sample.env .env # Add your DEEPGRAM_API_KEY
```

Start both servers in separate terminals:

```bash
# Terminal 1 - Backend (port 8081)
./venv/bin/python app.py

# Terminal 2 - Frontend (port 8080)
cd frontend && corepack pnpm run dev -- --port 8080 --no-open
```

Open [http://localhost:8080](http://localhost:8080) in your browser.

## License

MIT - See [LICENSE](./LICENSE)