@pie-players/tts-client-server 1.0.0-beta.0 → 1.0.0-beta.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.
|
@@ -57,8 +57,6 @@ export interface ServerTTSProviderConfig extends TTSConfig {
|
|
|
57
57
|
language?: string;
|
|
58
58
|
/** Polly engine selection when provider is AWS Polly */
|
|
59
59
|
engine?: "standard" | "neural";
|
|
60
|
-
/** Volume level 0-1 */
|
|
61
|
-
volume?: number;
|
|
62
60
|
/**
|
|
63
61
|
* Transport mode determines request/response translation strategy.
|
|
64
62
|
* - pie: POST {apiEndpoint}/synthesize, expects inline base64 audio + speech marks
|
|
@@ -271,6 +271,7 @@ const pieAdapter = {
|
|
|
271
271
|
voice: config.voice,
|
|
272
272
|
language: contentLanguageOf(config) ?? config.language,
|
|
273
273
|
rate: config.rate,
|
|
274
|
+
...(config.pitch !== undefined ? { pitch: config.pitch } : {}),
|
|
274
275
|
engine,
|
|
275
276
|
sampleRate,
|
|
276
277
|
format,
|
|
@@ -823,9 +824,9 @@ class ServerTTSProviderImpl {
|
|
|
823
824
|
}
|
|
824
825
|
/**
|
|
825
826
|
* Store rate, pitch, voice and the per-speak language for the next
|
|
826
|
-
* synthesis. Server-side synthesis bakes
|
|
827
|
-
* marks, so an active speed change
|
|
828
|
-
* current segment.
|
|
827
|
+
* synthesis, and volume for the next playback. Server-side synthesis bakes
|
|
828
|
+
* the first four into the audio and speech marks, so an active speed change
|
|
829
|
+
* is TTSService's job: it replays from the current segment.
|
|
829
830
|
*/
|
|
830
831
|
updateSettings(settings) {
|
|
831
832
|
if (settings.rate !== undefined) {
|
|
@@ -838,6 +839,9 @@ class ServerTTSProviderImpl {
|
|
|
838
839
|
if (settings.pitch !== undefined) {
|
|
839
840
|
this.config.pitch = settings.pitch;
|
|
840
841
|
}
|
|
842
|
+
if (settings.volume !== undefined) {
|
|
843
|
+
this.config.volume = settings.volume;
|
|
844
|
+
}
|
|
841
845
|
if (settings.voice !== undefined) {
|
|
842
846
|
this.config.voice = settings.voice;
|
|
843
847
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-players/tts-client-server",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.2",
|
|
4
4
|
"description": "Client-side TTS provider that calls server API for synthesis",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@pie-players/pie-players-shared": "1.0.0-beta.
|
|
41
|
-
"@pie-players/pie-tts": "1.0.0-beta.
|
|
42
|
-
"@pie-players/tts-server-core": "1.0.0-beta.
|
|
40
|
+
"@pie-players/pie-players-shared": "1.0.0-beta.2",
|
|
41
|
+
"@pie-players/pie-tts": "1.0.0-beta.2",
|
|
42
|
+
"@pie-players/tts-server-core": "1.0.0-beta.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.9.3",
|