@charivo/tts 0.6.14 → 0.7.0
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 +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -71,10 +71,10 @@ When connected, the manager emits:
|
|
|
71
71
|
call resolves silently and never begins playback, whether or not it had
|
|
72
72
|
already opened an audio session, so a resolved `speak()` is not proof audio
|
|
73
73
|
played. A newer `speak()` cancels a still-starting older one the same way.
|
|
74
|
-
- `prepareAudio
|
|
74
|
+
- `prepareAudio()` — creates the lip-sync `AudioContext` up front. Call it
|
|
75
75
|
from a user-gesture handler before the first `speak()` so mobile browsers
|
|
76
76
|
that require audio to start from a gesture do not block playback.
|
|
77
|
-
- `dispose
|
|
77
|
+
- `dispose()` — releases lip-sync audio resources and unsubscribes browser
|
|
78
78
|
lifecycle listeners. Call `stop()` first if speech is in-flight; `dispose()`
|
|
79
79
|
does not stop playback. `Charivo.dispose()` calls this automatically for an
|
|
80
80
|
attached TTS manager — call it directly only if your app tears a
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TTSPlayer,
|
|
1
|
+
import { TTSPlayer, BuiltInTTSManager } from '@charivo/core';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Helper function to create a TTS Manager
|
|
5
5
|
*/
|
|
6
|
-
declare function createTTSManager(ttsPlayer: TTSPlayer):
|
|
6
|
+
declare function createTTSManager(ttsPlayer: TTSPlayer): BuiltInTTSManager;
|
|
7
7
|
|
|
8
8
|
export { createTTSManager };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TTSPlayer,
|
|
1
|
+
import { TTSPlayer, BuiltInTTSManager } from '@charivo/core';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Helper function to create a TTS Manager
|
|
5
5
|
*/
|
|
6
|
-
declare function createTTSManager(ttsPlayer: TTSPlayer):
|
|
6
|
+
declare function createTTSManager(ttsPlayer: TTSPlayer): BuiltInTTSManager;
|
|
7
7
|
|
|
8
8
|
export { createTTSManager };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@charivo/tts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "TTS manager and browser adapters for Charivo",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"openai": "^4.47.1",
|
|
39
|
-
"@charivo/core": "^0.
|
|
39
|
+
"@charivo/core": "^0.32.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"tsup": "^8.5.0",
|