-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #708 from nature-heart-software/dev
release
- Loading branch information
Showing
10 changed files
with
208 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Custom Engine Api | ||
|
||
## List Voices | ||
|
||
### Method: `POST` | ||
|
||
``` | ||
http://localhost:3000/list-voices | ||
``` | ||
|
||
### Body: `application/json` | ||
|
||
```json | ||
{ | ||
"credentials": { | ||
"apiKey": "" | ||
} | ||
} | ||
``` | ||
|
||
### Response: `application/json` | ||
|
||
```json | ||
[ | ||
{ | ||
"id": "Microsoft Hazel Desktop", | ||
"name": "Microsoft Hazel Desktop", | ||
"category": "Say", | ||
"languageCode": "en-US" | ||
}, | ||
{ | ||
"id": "Microsoft Zira Desktop", | ||
"name": "Microsoft Zira Desktop", | ||
"category": "Say", | ||
"languageCode": "en-US" | ||
} | ||
] | ||
``` | ||
|
||
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ | ||
|
||
## Synthesize Speech | ||
|
||
### Method: `POST` | ||
|
||
``` | ||
http://localhost:3000/synthesize-speech | ||
``` | ||
|
||
### Body: `application/json` | ||
|
||
```json | ||
{ | ||
"credentials": { | ||
"apiKey": "" | ||
}, | ||
"payload": { | ||
"text": "Hello world, programmed to work and not to feel.", | ||
"voice": { | ||
"id": "Microsoft Hazel Desktop", | ||
"name": "Microsoft Hazel Desktop", | ||
"category": "Say", | ||
"languageCode": "en-US" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
### Response: `audio/mp3` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
meta { | ||
name: List Voices | ||
type: http | ||
seq: 2 | ||
} | ||
|
||
post { | ||
url: http://localhost:3000/list-voices | ||
body: json | ||
auth: none | ||
} | ||
|
||
body:json { | ||
{ | ||
"credentials": { | ||
"apiKey": "" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
meta { | ||
name: Synthesize Speech | ||
type: http | ||
seq: 3 | ||
} | ||
|
||
post { | ||
url: http://localhost:3000/synthesize-speech | ||
body: json | ||
auth: none | ||
} | ||
|
||
body:json { | ||
{ | ||
"credentials": { | ||
"apiKey": "" | ||
}, | ||
"payload": { | ||
"text": "Hello world, programmed to work and not to feel.", | ||
"voice": { | ||
"id": "Microsoft Hazel Desktop", | ||
"name": "Microsoft Hazel Desktop", | ||
"category": "Say", | ||
"languageCode": "en-US" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"version": "1", | ||
"name": "Custom Engine Api", | ||
"type": "collection", | ||
"ignore": ["node_modules", ".git"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"info": { | ||
"name": "Custom Engine Api", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "List Voices", | ||
"event": [], | ||
"request": { | ||
"method": "POST", | ||
"header": [], | ||
"auth": null, | ||
"description": "", | ||
"url": { | ||
"raw": "http://localhost:3000/list-voices", | ||
"protocol": "http", | ||
"host": ["localhost:3000"], | ||
"path": ["list-voices"], | ||
"query": [], | ||
"variable": [] | ||
}, | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{\n \"credentials\": {\n \"apiKey\": \"\"\n }\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "Synthesize Speech", | ||
"event": [], | ||
"request": { | ||
"method": "POST", | ||
"header": [], | ||
"auth": null, | ||
"description": "", | ||
"url": { | ||
"raw": "http://localhost:3000/synthesize-speech", | ||
"protocol": "http", | ||
"host": ["localhost:3000"], | ||
"path": ["synthesize-speech"], | ||
"query": [], | ||
"variable": [] | ||
}, | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{\n \"credentials\": {\n \"apiKey\": \"\"\n },\n \"payload\": {\n \"text\": \"Hello world, programmed to work and not to feel.\",\n \"voice\": {\n \"id\": \"Microsoft Hazel Desktop\",\n \"name\": \"Microsoft Hazel Desktop\",\n \"category\": \"Say\",\n \"languageCode\": \"en-US\"\n }\n }\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"variable": [] | ||
} |