@pie-players/tts-server-google 0.3.73 → 0.3.75
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.
|
@@ -95,7 +95,8 @@ export class GoogleCloudTTSProvider extends BaseTTSProvider {
|
|
|
95
95
|
this.ensureInitialized();
|
|
96
96
|
const capabilities = this.getCapabilities();
|
|
97
97
|
this.validateRequest(request, capabilities);
|
|
98
|
-
const
|
|
98
|
+
const voiceType = { wavenet: "Wavenet", standard: "Standard", studio: "Studio" }[this.voiceType];
|
|
99
|
+
const voice = await this.resolveRequestVoice(request, this.defaultVoice, (candidate) => candidate.id.includes(voiceType));
|
|
99
100
|
const startTime = Date.now();
|
|
100
101
|
try {
|
|
101
102
|
// Check if speech marks are requested
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-players/tts-server-google",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.75",
|
|
4
4
|
"description": "Google Cloud Text-to-Speech provider for server-side TTS with speech marks support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@google-cloud/text-to-speech": "^7.
|
|
43
|
-
"@pie-players/tts-server-core": "0.3.
|
|
42
|
+
"@google-cloud/text-to-speech": "^7.1.1",
|
|
43
|
+
"@pie-players/tts-server-core": "0.3.75"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"typescript": "^5.9.3",
|
|
47
|
-
"vitest": "^
|
|
47
|
+
"vitest": "^5.0.3"
|
|
48
48
|
},
|
|
49
49
|
"sideEffects": false,
|
|
50
50
|
"homepage": "https://github.com/pie-framework/pie-players/tree/master/packages/tts-server-google#readme",
|