SAPIServer/README.md

42 lines
811 B
Markdown
Raw Normal View History

2024-07-02 21:06:37 -04:00
# SAPIServer
Simple HTTP frontend API for Microsoft Speech API
2024-07-17 21:38:27 -04:00
## Building
Requirements
- .NET SDK
- VS2022 lib pack (TODO: link)
2024-07-17 21:38:27 -04:00
- mingw-w64 toolchain built with `win32` thread model (`pthread` won't work)
You'll also need to chattr +F (or mount the whole thing with `ciopfs` and rename the headers to lowercase, if not on ext4 or you don't want to tune2fs) the windows sdk header directories so the build works.
2024-07-17 21:38:27 -04:00
`just` should do the trick.
2024-07-02 21:06:37 -04:00
## Running
```
Usage: SAPIServer.exe <port>
```
## API Usage
### List voices
```
GET /api/voices
{"voices":["LH Michael","LH Michelle","Microsoft Sam"]}
```
### Synthesize text
```
POST /api/synthesize
Content-Type: application/json
{"text":"Lorem ipsum doler sit amet...","voice":"Microsoft Sam"}
```
2024-07-17 21:38:27 -04:00
Returns synthesized TTS audio as a wave-form file.