@pie-players/tts-server-google 0.3.74 → 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 voice = request.voice || this.defaultVoice;
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.74",
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",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@google-cloud/text-to-speech": "^7.1.1",
43
- "@pie-players/tts-server-core": "0.3.74"
43
+ "@pie-players/tts-server-core": "0.3.75"
44
44
  },
45
45
  "devDependencies": {
46
46
  "typescript": "^5.9.3",