@xapp/stentor-text-to-speech 1.86.5 → 1.86.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
## @xapp/stentor-text-to-speech
|
|
2
|
+
|
|
3
|
+
A fluent builder for constructing text-to-speech asset URLs against the XAPP Media TTS API (`https://api.xapp.media/orgs/:organizationId/assets/tts`). `TTSURLBuilder` accepts plain text or SSML (normalized to SSML), defaults to the "Joanna" voice, and throws from `build()` if no organization ID or text has been set. The built URL carries `text` and `voiceId` query parameters. The selected service (only Amazon Polly, the default) is stored on the builder but not added to the URL.
|
|
4
|
+
|
|
5
|
+
### Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { TTSURLBuilder } from "@xapp/stentor-text-to-speech";
|
|
9
|
+
|
|
10
|
+
const url = new TTSURLBuilder()
|
|
11
|
+
.forOrganization("XappMedia")
|
|
12
|
+
.say("Hello world")
|
|
13
|
+
.usingVoice("Joanna")
|
|
14
|
+
.withAmazonPolly()
|
|
15
|
+
.build();
|
|
16
|
+
```
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.86.
|
|
7
|
+
"version": "1.86.7",
|
|
8
8
|
"description": "Text to speech for stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"main": "lib/index",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@xapp/config": "0.3.0",
|
|
21
21
|
"chai": "4.5.0",
|
|
22
22
|
"mocha": "11.8.0",
|
|
23
|
-
"stentor-models": "1.
|
|
24
|
-
"stentor-utils": "1.
|
|
23
|
+
"stentor-models": "1.81.0",
|
|
24
|
+
"stentor-utils": "1.76.2",
|
|
25
25
|
"typescript": "5.9.3"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|