Files
tts/README.md
dsyoon 3cc8fb2694 Add client/server split and TTS app
Set up FastAPI server, vanilla UI, and deployment scripts for the TTS app, including DB/ffmpeg wiring and Apache config.
2026-01-30 13:17:24 +09:00

47 lines
883 B
Markdown

# TTS 저장/조회/삭제 앱
## 프로젝트 구조
```
.
├── client
│ ├── static
│ └── templates
├── server
│ ├── db.py
│ ├── main.py
│ └── tts_service.py
├── resources
├── .env
├── .env.example
├── requirements.txt
└── README.md
```
## 실행 방법
1) 의존성 설치
```
pip install -r requirements.txt
```
2) 환경 변수 설정
```
cp .env.example .env
```
`.env`에 DB 계정 정보를 입력하세요.
3) 서버 실행
```
uvicorn server.main:app --reload
```
4) 접속
```
http://localhost:8000
```
## 주의 사항
- PostgreSQL 접속 정보는 프로젝트 루트의 `.env`에서 로드합니다.
- `server/`에서 실행하더라도 루트 `.env`가 적용됩니다.
- ffmpeg가 설치되어 있어야 합니다.
- mp3 파일은 `resources/` 아래에 저장됩니다.