30 lines
427 B
Markdown
30 lines
427 B
Markdown
|
# SAPIServer
|
||
|
|
||
|
Simple HTTP frontend API for Microsoft Speech API
|
||
|
|
||
|
## 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"}
|
||
|
```
|
||
|
|
||
|
Returns synthesized TTS audio as a wave-form file.
|