Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,3 +11,29 @@ license: mit
|
|
| 11 |
---
|
| 12 |
|
| 13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
# 🎙️ Voice Chat — Hugging Face Space
|
| 18 |
+
|
| 19 |
+
A simple Space that lets you **speak** to an AI and it **speaks back** (Gradio + OpenAI).
|
| 20 |
+
|
| 21 |
+
## How to use on Spaces
|
| 22 |
+
1. Create a new **Space** → SDK: **Gradio**.
|
| 23 |
+
2. Upload `app.py` and `requirements.txt` from this repo.
|
| 24 |
+
3. In your Space → **Settings → Variables and secrets**, add:
|
| 25 |
+
- `OPENAI_API_KEY` = `sk-...`
|
| 26 |
+
- *(optional)* `OPENAI_MODEL` = `gpt-4o-mini`
|
| 27 |
+
4. Click **Restart this Space**. Press the mic, speak, or type.
|
| 28 |
+
|
| 29 |
+
## Local run
|
| 30 |
+
```bash
|
| 31 |
+
pip install -r requirements.txt
|
| 32 |
+
export OPENAI_API_KEY=sk-...
|
| 33 |
+
python app.py
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
**Notes**
|
| 37 |
+
- STT uses OpenAI `whisper-1`. TTS uses `gpt-4o-mini-tts`.
|
| 38 |
+
- Change the system style and voice in the UI.
|
| 39 |
+
|