add readme and license

This commit is contained in:
Elijah 2024-07-02 21:06:37 -04:00
parent 8992065a10
commit fe9a8af8c2
2 changed files with 40 additions and 0 deletions

10
LICENSE.txt Normal file
View file

@ -0,0 +1,10 @@
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

30
README.md Normal file
View file

@ -0,0 +1,30 @@
# 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.