File size: 605 Bytes
855c74b
 
 
 
 
 
 
e88ed83
855c74b
 
e88ed83
855c74b
 
 
 
87cdad5
 
 
 
 
e88ed83
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
title: tts Text To Speech
emoji: 🌍
colorFrom: yellow
colorTo: pink
sdk: docker
sdk_version: 5.25.2
python_version: 3.11.0
app_file: app.py
pinned: false
short_description: FastAPI text-to-speech service with Firebase auth
license: apache-2.0
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

## Required environment variables

- `MONGO_URI`
- `FIREBASE_API_KEY` (required for `/audio/by-id` token verification)

## API endpoints

- `GET /health`
- `POST /audio/by-id` (requires `audio_id` and `firebase_id_token`)
- `GET /audio/{audio_id}.opus`