| app | 12 months ago | ||
| README.md | 12 months ago | ||
| register_service.ps1 | 12 months ago | ||
This is SapiServer repository. SapiServer is Windows SAPI simple web API server.
Get available voice index on server machine.
GET /sapi/voices
HTTP/1.1 200 OK
[
{
"index":0,
"name":"Microsoft David Desktop",
"gender":"Male",
"language":"409",
"vendor":"Microsoft",
"age":"Adult",
"description":"Microsoft David Desktop - English (United States)"
},
{
"index":1,
"name":"Microsoft Hazel Desktop",
"gender":"Female",
"language":"809",
"vendor":"Microsoft",
"age":"Adult",
"description":"Microsoft Hazel Desktop - English (Great Britain)"
},
{
"index":2,
"name":"Microsoft Zira Desktop",
"gender":"Female",
"language":"409",
"vendor":"Microsoft",
"age":"Adult",
"description":"Microsoft Zira Desktop - English (United States)"
},
{
"index":3,
"name":"Microsoft Haruka Desktop",
"gender":"Female",
"language":"411",
"vendor":"Microsoft",
"age":"Adult",
"description":"Microsoft Haruka Desktop - Japanese"
}
]
Create speech wave data
POST /sapi/create
| Name | Type | Description | Example |
|---|---|---|---|
| message | string | Speech sentence or xml | "This is a pen." |
| voice_index | string | Speech voice index | "0" |
| Name | Type | Description | Example |
|---|---|---|---|
| sapi_id | string | unique id | "abcd12344" |
HTTP/1.1 200 OK
<wave binary>
Require go installation.
> Set-ExecutionPolicy Unrestricted
> ./register_service.ps1
> Server-Start SapiServer
and check SapiServer port :9081 on Windows Firewall.