@andresaya/edge-tts 1.4.0 → 1.4.2
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 +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -323,9 +323,11 @@ exploreVoices().catch(console.error);
|
|
|
323
323
|
| `pitch` | `string \| number` | `-100Hz` to `+100Hz` | Voice pitch adjustment |
|
|
324
324
|
| `rate` | `string \| number` | `-100%` to `+200%` | Speech rate adjustment |
|
|
325
325
|
| `volume` | `string \| number` | `-100%` to `+100%` | Volume adjustment |
|
|
326
|
+
| `inputType` | `string` | `ssml` or `auto` | Determines whether the input is SSML. default(auto) |
|
|
326
327
|
|
|
327
328
|
### Parameter Examples
|
|
328
329
|
```js
|
|
330
|
+
|
|
329
331
|
// Using numbers (recommended)
|
|
330
332
|
{ pitch: 20, rate: -10, volume: 90 }
|
|
331
333
|
|
|
@@ -334,6 +336,9 @@ exploreVoices().catch(console.error);
|
|
|
334
336
|
|
|
335
337
|
// Mixed usage
|
|
336
338
|
{ pitch: 15, rate: '25%', volume: 85 }
|
|
339
|
+
|
|
340
|
+
// send SSML
|
|
341
|
+
{ pitch: 15, rate: '25%', volume: 85, inputType: 'ssml' }
|
|
337
342
|
```
|
|
338
343
|
|
|
339
344
|
## Error Handling
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@andresaya/edge-tts",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "Edge TTS is a package that allows access to the online text-to-speech service used by Microsoft Edge without the need for Microsoft Edge, Windows, or an API key.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"keywords": [
|