@dataclouder/nest-vertex 0.0.32 → 0.0.33

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.
@@ -30,7 +30,9 @@ let VertexTtsAdapterController = class VertexTtsAdapterController {
30
30
  const audioBuffer = await this.nestTtsService.synthesizeSpeech(body);
31
31
  if (!audioBuffer) {
32
32
  this.logger.error('Synthesis resulted in null buffer');
33
- throw new nest_core_1.AppException({ error_message: 'Could not generate audio for the given input.' });
33
+ throw new nest_core_1.AppException({
34
+ error_message: 'Could not generate audio for the given input.',
35
+ });
34
36
  }
35
37
  res.header('Content-Length', audioBuffer.length.toString());
36
38
  this.logger.log(`Successfully synthesized audio (${audioBuffer.length} bytes)`);
@@ -53,10 +55,26 @@ __decorate([
53
55
  type: 'object',
54
56
  properties: {
55
57
  text: { type: 'string', example: 'Hello world' },
56
- languageCode: { type: 'string', example: 'en-US', description: 'Optional language code (default: en-US)' },
57
- ssmlGender: { type: 'string', example: 'NEUTRAL', description: 'Optional SSML gender (default: NEUTRAL)' },
58
- voiceName: { type: 'string', example: 'en-US-Neural2-F', description: 'Optional specific voice name' },
59
- audioEncoding: { type: 'string', example: 'MP3', description: 'Optional audio encoding (default: MP3)' },
58
+ languageCode: {
59
+ type: 'string',
60
+ example: 'en-US',
61
+ description: 'Optional language code (default: en-US)',
62
+ },
63
+ ssmlGender: {
64
+ type: 'string',
65
+ example: 'NEUTRAL',
66
+ description: 'Optional SSML gender (default: NEUTRAL)',
67
+ },
68
+ voiceName: {
69
+ type: 'string',
70
+ example: 'en-US-Neural2-F',
71
+ description: 'Optional specific voice name',
72
+ },
73
+ audioEncoding: {
74
+ type: 'string',
75
+ example: 'MP3',
76
+ description: 'Optional audio encoding (default: MP3)',
77
+ },
60
78
  },
61
79
  required: ['text'],
62
80
  },
@@ -70,8 +88,15 @@ __decorate([
70
88
  ], VertexTtsAdapterController.prototype, "synthesizeSpeech", null);
71
89
  __decorate([
72
90
  (0, common_1.Get)('list'),
73
- (0, swagger_1.ApiOperation)({ summary: 'List available TTS voices, optionally filtered by language' }),
74
- (0, swagger_1.ApiQuery)({ name: 'languageCode', required: false, type: String, description: 'Optional language code (e.g., en-US) to filter voices' }),
91
+ (0, swagger_1.ApiOperation)({
92
+ summary: 'List available TTS voices, optionally filtered by language',
93
+ }),
94
+ (0, swagger_1.ApiQuery)({
95
+ name: 'languageCode',
96
+ required: false,
97
+ type: String,
98
+ description: 'Optional language code (e.g., en-US) to filter voices',
99
+ }),
75
100
  __param(0, (0, common_1.Query)('languageCode')),
76
101
  __metadata("design:type", Function),
77
102
  __metadata("design:paramtypes", [String]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataclouder/nest-vertex",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "description": "NestJS Vertex AI library for Dataclouder",
5
5
  "author": "dataclouder",
6
6
  "license": "MIT",