ai_sandbox/speech-speech/README.md

36 lines
521 B
Markdown
Raw Permalink Normal View History

2024-02-26 19:39:24 -05:00
# Speech to Speech AI Assistant
AI assistant chat with speech recognition and tts responses
Fullstack
- Vite, TS, React frontend
- fastapi backend
- OpenAI for LLM services
## Requirements
- python3
- npm
- OpenAI API token
## Setup
```
cd frontend
2024-02-26 19:58:28 -05:00
npm install
2024-02-26 19:39:24 -05:00
npm run build
cd ../backend
# optionally setup virtual environment of your choice
2024-02-26 19:58:28 -05:00
python3 -m pip install -r requirements.txt
2024-02-26 19:39:24 -05:00
```
# Running
example `backend/.env`
```
OPEN_API_KEY=<apikey>
```
2024-02-26 19:58:28 -05:00
2024-02-26 19:39:24 -05:00
```
cd backend
2024-02-26 19:58:28 -05:00
source .env
2024-02-26 19:39:24 -05:00
uvicorn --port 8080 api:app
```