@dataclouder/conversation-card-nestjs 0.0.21 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. package/dist/{libs/conversation-cards/src/ai-models.service.d.ts → ai-models.service.d.ts} +1 -0
  2. package/dist/ai-models.service.d.ts.map +1 -0
  3. package/dist/ai-models.service.js +71 -173
  4. package/dist/ai-models.service.js.map +1 -0
  5. package/dist/{libs/conversation-cards/src/clases → clases}/conversation.interface.d.ts +3 -19
  6. package/dist/clases/conversation.interface.d.ts.map +1 -0
  7. package/dist/clases/conversation.interface.js +9 -20
  8. package/dist/clases/conversation.interface.js.map +1 -0
  9. package/dist/{libs/conversation-cards/src → controllers}/conversation-ai.controller.d.ts +8 -11
  10. package/dist/controllers/conversation-ai.controller.d.ts.map +1 -0
  11. package/dist/{libs/conversation-cards/src → controllers}/conversation-ai.controller.js +19 -36
  12. package/dist/controllers/conversation-ai.controller.js.map +1 -0
  13. package/dist/{libs/conversation-cards/src → controllers}/conversation.controller.d.ts +1 -0
  14. package/dist/controllers/conversation.controller.d.ts.map +1 -0
  15. package/dist/controllers/conversation.controller.js.map +1 -0
  16. package/dist/conversation-ai.controller.d.ts +18 -0
  17. package/dist/conversation-ai.controller.d.ts.map +1 -0
  18. package/dist/conversation-ai.controller.js +117 -209
  19. package/dist/conversation-ai.controller.js.map +1 -0
  20. package/dist/conversation-cards.module.d.ts +3 -0
  21. package/dist/conversation-cards.module.d.ts.map +1 -0
  22. package/dist/conversation-cards.module.js +22 -69
  23. package/dist/conversation-cards.module.js.map +1 -0
  24. package/dist/conversation.controller.d.ts +4 -0
  25. package/dist/conversation.controller.d.ts.map +1 -0
  26. package/dist/conversation.controller.js +27 -106
  27. package/dist/conversation.controller.js.map +1 -0
  28. package/dist/{libs/conversation-cards/src/dto → dto}/create-conversation.dto.d.ts +1 -0
  29. package/dist/dto/create-conversation.dto.d.ts.map +1 -0
  30. package/dist/dto/create-conversation.dto.js +35 -78
  31. package/dist/dto/create-conversation.dto.js.map +1 -0
  32. package/dist/{libs/conversation-cards/src/entities → entities}/conversation.entity.d.ts +3 -2
  33. package/dist/entities/conversation.entity.d.ts.map +1 -0
  34. package/dist/entities/conversation.entity.js +84 -145
  35. package/dist/entities/conversation.entity.js.map +1 -0
  36. package/dist/{libs/conversation-cards/src/index.d.ts → index.d.ts} +3 -3
  37. package/dist/index.d.ts.map +1 -0
  38. package/dist/index.js +3 -3
  39. package/dist/index.js.map +1 -0
  40. package/dist/services/audio-transcription.service.d.ts +1 -0
  41. package/dist/services/audio-transcription.service.d.ts.map +1 -0
  42. package/dist/services/audio-transcription.service.js +1 -27
  43. package/dist/services/audio-transcription.service.js.map +1 -0
  44. package/dist/{libs/conversation-cards/src/services → services}/conversation-ai.service.d.ts +15 -0
  45. package/dist/services/conversation-ai.service.d.ts.map +1 -0
  46. package/dist/services/conversation-ai.service.js +74 -143
  47. package/dist/services/conversation-ai.service.js.map +1 -0
  48. package/dist/services/conversation-card-models.service.d.ts +13 -0
  49. package/dist/services/conversation-card-models.service.d.ts.map +1 -0
  50. package/dist/{libs/conversation-cards/src/ai-models.service.js → services/conversation-card-models.service.js} +8 -8
  51. package/dist/services/conversation-card-models.service.js.map +1 -0
  52. package/dist/services/conversation-cards.service.d.ts +3 -0
  53. package/dist/services/conversation-cards.service.d.ts.map +1 -0
  54. package/dist/services/conversation-cards.service.js +12 -58
  55. package/dist/services/conversation-cards.service.js.map +1 -0
  56. package/dist/tts/tts-service.d.ts +1 -0
  57. package/dist/tts/tts-service.d.ts.map +1 -0
  58. package/dist/tts/tts-service.js +1 -250
  59. package/dist/tts/tts-service.js.map +1 -0
  60. package/dist/{libs/conversation-cards/src/tts → tts}/tts.classes.d.ts +1 -0
  61. package/dist/tts/tts.classes.d.ts.map +1 -0
  62. package/dist/tts/tts.classes.js +3 -13
  63. package/dist/tts/tts.classes.js.map +1 -0
  64. package/dist/{libs/conversation-cards/src/tts → tts}/voices.d.ts +1 -0
  65. package/dist/tts/voices.d.ts.map +1 -0
  66. package/dist/tts/voices.js +1 -10
  67. package/dist/tts/voices.js.map +1 -0
  68. package/package.json +1 -1
  69. package/dist/conversation-ai.module.js +0 -74
  70. package/dist/libs/conversation-cards/src/ai-models.service.js.map +0 -1
  71. package/dist/libs/conversation-cards/src/clases/conversation.interface.js +0 -40
  72. package/dist/libs/conversation-cards/src/clases/conversation.interface.js.map +0 -1
  73. package/dist/libs/conversation-cards/src/conversation-ai.controller.js.map +0 -1
  74. package/dist/libs/conversation-cards/src/conversation-ai.module.d.ts +0 -2
  75. package/dist/libs/conversation-cards/src/conversation-ai.module.js +0 -28
  76. package/dist/libs/conversation-cards/src/conversation-ai.module.js.map +0 -1
  77. package/dist/libs/conversation-cards/src/conversation-cards.module.d.ts +0 -2
  78. package/dist/libs/conversation-cards/src/conversation-cards.module.js +0 -28
  79. package/dist/libs/conversation-cards/src/conversation-cards.module.js.map +0 -1
  80. package/dist/libs/conversation-cards/src/conversation.controller.js.map +0 -1
  81. package/dist/libs/conversation-cards/src/dto/create-conversation.dto.js +0 -42
  82. package/dist/libs/conversation-cards/src/dto/create-conversation.dto.js.map +0 -1
  83. package/dist/libs/conversation-cards/src/entities/conversation.entity.js +0 -97
  84. package/dist/libs/conversation-cards/src/entities/conversation.entity.js.map +0 -1
  85. package/dist/libs/conversation-cards/src/index.js +0 -24
  86. package/dist/libs/conversation-cards/src/index.js.map +0 -1
  87. package/dist/libs/conversation-cards/src/services/audio-transcription.service.d.ts +0 -0
  88. package/dist/libs/conversation-cards/src/services/audio-transcription.service.js +0 -1
  89. package/dist/libs/conversation-cards/src/services/audio-transcription.service.js.map +0 -1
  90. package/dist/libs/conversation-cards/src/services/conversation-ai.service.js +0 -58
  91. package/dist/libs/conversation-cards/src/services/conversation-ai.service.js.map +0 -1
  92. package/dist/libs/conversation-cards/src/services/conversation-cards.service.d.ts +0 -2
  93. package/dist/libs/conversation-cards/src/services/conversation-cards.service.js +0 -17
  94. package/dist/libs/conversation-cards/src/services/conversation-cards.service.js.map +0 -1
  95. package/dist/libs/conversation-cards/src/tts/tts-service.d.ts +0 -20
  96. package/dist/libs/conversation-cards/src/tts/tts-service.js +0 -124
  97. package/dist/libs/conversation-cards/src/tts/tts-service.js.map +0 -1
  98. package/dist/libs/conversation-cards/src/tts/tts.classes.js +0 -200
  99. package/dist/libs/conversation-cards/src/tts/tts.classes.js.map +0 -1
  100. package/dist/libs/conversation-cards/src/tts/voices.js +0 -208
  101. package/dist/libs/conversation-cards/src/tts/voices.js.map +0 -1
  102. package/dist/src/common/app-exception.d.ts +0 -28
  103. package/dist/src/common/app-exception.js +0 -28
  104. package/dist/src/common/app-exception.js.map +0 -1
  105. package/dist/tsconfig.lib.tsbuildinfo +0 -1
  106. /package/dist/{libs/conversation-cards/src → controllers}/conversation.controller.js +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"conversation-cards.module.js","sourceRoot":"","sources":["../../../../src/conversation-cards.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,+CAAkD;AAClD,6EAAwE;AACxE,wEAAkF;AAClF,mDAA+C;AAC/C,2DAAsD;AACtD,gFAA2E;AAQpE,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAAG,CAAA;AAA1B,0DAAuB;kCAAvB,uBAAuB;IANnC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,yBAAc,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,kCAAY,CAAC,IAAI,EAAE,MAAM,EAAE,wCAAkB,EAAE,CAAC,CAAC,CAAC;QAC/F,WAAW,EAAE,CAAC,qDAAwB,CAAC;QACvC,SAAS,EAAE,CAAC,+CAAqB,EAAE,wBAAU,EAAE,mCAAe,CAAC;QAC/D,OAAO,EAAE,CAAC,+CAAqB,EAAE,mCAAe,EAAE,wBAAU,CAAC;KAC9D,CAAC;GACW,uBAAuB,CAAG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"conversation.controller.js","sourceRoot":"","sources":["../../../../src/conversation.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAiD;AACjD,6CAAqE;AAI9D,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAI7B,AAAN,KAAK,CAAC,QAAQ;QACZ,OAAO,aAAa,CAAC;IACvB,CAAC;CACF,CAAA;AAPY,4DAAwB;AAI7B;IAHL,IAAA,YAAG,EAAC,QAAQ,CAAC;IACb,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC;IAC1C,IAAA,qBAAW,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;;;;wDAG9D;mCANU,wBAAwB;IAFpC,IAAA,iBAAO,EAAC,4BAA4B,CAAC;IACrC,IAAA,mBAAU,EAAC,gCAAgC,CAAC;GAChC,wBAAwB,CAOpC"}
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ConversationDTO = exports.CreateConversationDto = void 0;
13
- const swagger_1 = require("@nestjs/swagger");
14
- class CreateConversationDto {
15
- }
16
- exports.CreateConversationDto = CreateConversationDto;
17
- __decorate([
18
- (0, swagger_1.ApiProperty)({
19
- description: 'The message content of the conversation',
20
- example: 'Hello, how can I help you today?',
21
- }),
22
- __metadata("design:type", String)
23
- ], CreateConversationDto.prototype, "message", void 0);
24
- __decorate([
25
- (0, swagger_1.ApiProperty)({
26
- description: 'The user ID associated with the conversation',
27
- example: 'user123',
28
- }),
29
- __metadata("design:type", String)
30
- ], CreateConversationDto.prototype, "userId", void 0);
31
- __decorate([
32
- (0, swagger_1.ApiProperty)({
33
- description: 'Additional context for the conversation',
34
- required: false,
35
- example: { previousContext: 'User asked about weather' },
36
- }),
37
- __metadata("design:type", Object)
38
- ], CreateConversationDto.prototype, "context", void 0);
39
- class ConversationDTO {
40
- }
41
- exports.ConversationDTO = ConversationDTO;
42
- //# sourceMappingURL=create-conversation.dto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-conversation.dto.js","sourceRoot":"","sources":["../../../../../src/dto/create-conversation.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,6CAA8C;AAG9C,MAAa,qBAAqB;CAmBjC;AAnBD,sDAmBC;AAdC;IAJC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,yCAAyC;QACtD,OAAO,EAAE,kCAAkC;KAC5C,CAAC;;sDACc;AAMhB;IAJC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,8CAA8C;QAC3D,OAAO,EAAE,SAAS;KACnB,CAAC;;qDACa;AAOf;IALC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,yCAAyC;QACtD,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,EAAE,eAAe,EAAE,0BAA0B,EAAE;KACzD,CAAC;;sDAC4B;AAGhC,MAAa,eAAe;CAU3B;AAVD,0CAUC"}
@@ -1,97 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ConversationSchema = exports.Conversation = void 0;
13
- const mongoose_1 = require("@nestjs/mongoose");
14
- const mongoose_2 = require("mongoose");
15
- const conversation_interface_1 = require("../clases/conversation.interface");
16
- let Conversation = class Conversation {
17
- };
18
- exports.Conversation = Conversation;
19
- __decorate([
20
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, auto: true }),
21
- __metadata("design:type", mongoose_2.Schema.Types.ObjectId)
22
- ], Conversation.prototype, "_id", void 0);
23
- __decorate([
24
- (0, mongoose_1.Prop)(),
25
- __metadata("design:type", String)
26
- ], Conversation.prototype, "id", void 0);
27
- __decorate([
28
- (0, mongoose_1.Prop)({ required: false }),
29
- __metadata("design:type", String)
30
- ], Conversation.prototype, "version", void 0);
31
- __decorate([
32
- (0, mongoose_1.Prop)({ required: false }),
33
- __metadata("design:type", String)
34
- ], Conversation.prototype, "title", void 0);
35
- __decorate([
36
- (0, mongoose_1.Prop)({ type: Object, required: false }),
37
- __metadata("design:type", Object)
38
- ], Conversation.prototype, "characterCard", void 0);
39
- __decorate([
40
- (0, mongoose_1.Prop)({ required: true, enum: conversation_interface_1.TextEngines }),
41
- __metadata("design:type", String)
42
- ], Conversation.prototype, "textEngine", void 0);
43
- __decorate([
44
- (0, mongoose_1.Prop)({ required: true, enum: conversation_interface_1.ConversationType }),
45
- __metadata("design:type", String)
46
- ], Conversation.prototype, "conversationType", void 0);
47
- __decorate([
48
- (0, mongoose_1.Prop)({ required: false }),
49
- __metadata("design:type", String)
50
- ], Conversation.prototype, "lang", void 0);
51
- __decorate([
52
- (0, mongoose_1.Prop)({ type: Object, required: false }),
53
- __metadata("design:type", Object)
54
- ], Conversation.prototype, "assets", void 0);
55
- __decorate([
56
- (0, mongoose_1.Prop)({ type: Object, required: false }),
57
- __metadata("design:type", Object)
58
- ], Conversation.prototype, "tts", void 0);
59
- __decorate([
60
- (0, mongoose_1.Prop)({ required: false }),
61
- __metadata("design:type", String)
62
- ], Conversation.prototype, "voice", void 0);
63
- __decorate([
64
- (0, mongoose_1.Prop)({ required: false }),
65
- __metadata("design:type", String)
66
- ], Conversation.prototype, "secondaryVoice", void 0);
67
- __decorate([
68
- (0, mongoose_1.Prop)({ required: false }),
69
- __metadata("design:type", String)
70
- ], Conversation.prototype, "speed", void 0);
71
- __decorate([
72
- (0, mongoose_1.Prop)({ required: false }),
73
- __metadata("design:type", Number)
74
- ], Conversation.prototype, "speedRate", void 0);
75
- __decorate([
76
- (0, mongoose_1.Prop)({ type: Object, required: false }),
77
- __metadata("design:type", Object)
78
- ], Conversation.prototype, "metaApp", void 0);
79
- __decorate([
80
- (0, mongoose_1.Prop)(),
81
- __metadata("design:type", Date)
82
- ], Conversation.prototype, "createdAt", void 0);
83
- __decorate([
84
- (0, mongoose_1.Prop)(),
85
- __metadata("design:type", Date)
86
- ], Conversation.prototype, "updatedAt", void 0);
87
- exports.Conversation = Conversation = __decorate([
88
- (0, mongoose_1.Schema)({ timestamps: true })
89
- ], Conversation);
90
- exports.ConversationSchema = mongoose_1.SchemaFactory.createForClass(Conversation);
91
- exports.ConversationSchema.pre('save', function (next) {
92
- if (this.isNew) {
93
- this.id = this._id.toString();
94
- }
95
- next();
96
- });
97
- //# sourceMappingURL=conversation.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"conversation.entity.js","sourceRoot":"","sources":["../../../../../src/entities/conversation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAA8D;AAC9D,6EAAqH;AAK9G,IAAM,YAAY,GAAlB,MAAM,YAAY;CAkExB,CAAA;AAlEY,oCAAY;AAEvB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAA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AE,QAAQ,EAAE,KAAK,EAAE,CAAC;;6CAStC;AAGF;IADC,IAAA,eAAI,GAAE;8BACI,IAAI;+CAAC;AAGhB;IADC,IAAA,eAAI,GAAE;8BACI,IAAI;+CAAC;uBAjEL,YAAY;IADxB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GAChB,YAAY,CAkExB;AAEY,QAAA,kBAAkB,GAAG,wBAAa,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;AAE7E,0BAAkB,CAAC,GAAG,CAAC,MAAM,EAAE,UAAU,IAAI;IAC3C,IAAI,IAAI,CAAC,KAAK,EAAE;QACd,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;KAC/B;IACD,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC"}
@@ -1,24 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./conversation-cards.module"), exports);
18
- __exportStar(require("./services/conversation-cards.service"), exports);
19
- __exportStar(require("./conversation-ai.controller"), exports);
20
- __exportStar(require("./services/conversation-ai.service"), exports);
21
- __exportStar(require("./tts/tts-service"), exports);
22
- __exportStar(require("./ai-models.service"), exports);
23
- __exportStar(require("./clases/conversation.interface"), exports);
24
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,wEAAsD;AACtD,+DAA6C;AAC7C,qEAAmD;AACnD,oDAAkC;AAClC,sDAAoC;AACpC,kEAAgD"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=audio-transcription.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"audio-transcription.service.js","sourceRoot":"","sources":["../../../../../src/services/audio-transcription.service.ts"],"names":[],"mappings":""}
@@ -1,58 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ConversationAiService = void 0;
16
- const common_1 = require("@nestjs/common");
17
- const mongoose_1 = require("@nestjs/mongoose");
18
- const mongoose_2 = require("mongoose");
19
- const groq_sdk_1 = require("groq-sdk");
20
- const mongodb_1 = require("mongodb");
21
- const conversation_entity_1 = require("../entities/conversation.entity");
22
- let ConversationAiService = class ConversationAiService {
23
- constructor(conversationModel) {
24
- this.conversationModel = conversationModel;
25
- this.groqClient = new groq_sdk_1.default({
26
- apiKey: process.env['GROQ_API_KEY'],
27
- });
28
- }
29
- async saveConversation(conversation) {
30
- if (!conversation['_id']) {
31
- delete conversation['_id'];
32
- }
33
- const newConversation = new this.conversationModel(conversation);
34
- return newConversation.save();
35
- }
36
- async updateConversation(id, updateData) {
37
- const _id = new mongodb_1.ObjectId(id);
38
- return this.conversationModel.findByIdAndUpdate(_id, updateData, { new: true }).exec();
39
- }
40
- async getConversations() {
41
- return this.conversationModel.find().exec();
42
- }
43
- async getConversationById(id) {
44
- const _id = new mongodb_1.ObjectId(id);
45
- return this.conversationModel.findById(_id).exec();
46
- }
47
- async deleteConversationById(id) {
48
- const _id = new mongodb_1.ObjectId(id);
49
- return this.conversationModel.findByIdAndDelete(_id).exec();
50
- }
51
- };
52
- exports.ConversationAiService = ConversationAiService;
53
- exports.ConversationAiService = ConversationAiService = __decorate([
54
- (0, common_1.Injectable)(),
55
- __param(0, (0, mongoose_1.InjectModel)(conversation_entity_1.Conversation.name)),
56
- __metadata("design:paramtypes", [mongoose_2.Model])
57
- ], ConversationAiService);
58
- //# sourceMappingURL=conversation-ai.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"conversation-ai.service.js","sourceRoot":"","sources":["../../../../../src/services/conversation-ai.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AACjC,uCAA4B;AAE5B,qCAAmC;AAGnC,yEAAqF;AAG9E,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAGhC,YAAoD,iBAA8C;QAA9C,sBAAiB,GAAjB,iBAAiB,CAA6B;QAChG,IAAI,CAAC,UAAU,GAAG,IAAI,kBAAI,CAAC;YACzB,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC;SACpC,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,YAA+B;QACpD,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE;YACxB,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC;SAC5B;QAED,MAAM,eAAe,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC;QACjE,OAAO,eAAe,CAAC,IAAI,EAAE,CAAC;IAChC,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,EAAU,EAAE,UAAiC;QACpE,MAAM,GAAG,GAAG,IAAI,kBAAQ,CAAC,EAAE,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,EAAE,UAAU,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACzF,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,OAAO,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC;IAC9C,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,EAAU;QAClC,MAAM,GAAG,GAAG,IAAI,kBAAQ,CAAC,EAAE,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,sBAAsB,CAAC,EAAU;QACrC,MAAM,GAAG,GAAG,IAAI,kBAAQ,CAAC,EAAE,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;IAC9D,CAAC;CACF,CAAA;AApCY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;IAIE,WAAA,IAAA,sBAAW,EAAC,kCAAY,CAAC,IAAI,CAAC,CAAA;qCAA4B,gBAAK;GAHjE,qBAAqB,CAoCjC"}
@@ -1,2 +0,0 @@
1
- export declare class ConversationCardsService {
2
- }
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.ConversationCardsService = void 0;
10
- const common_1 = require("@nestjs/common");
11
- let ConversationCardsService = class ConversationCardsService {
12
- };
13
- exports.ConversationCardsService = ConversationCardsService;
14
- exports.ConversationCardsService = ConversationCardsService = __decorate([
15
- (0, common_1.Injectable)()
16
- ], ConversationCardsService);
17
- //# sourceMappingURL=conversation-cards.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"conversation-cards.service.js","sourceRoot":"","sources":["../../../../../src/services/conversation-cards.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAGrC,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAAG,CAAA;AAA3B,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,mBAAU,GAAE;GACA,wBAAwB,CAAG"}
@@ -1,20 +0,0 @@
1
- /// <reference types="node" />
2
- import { SynthAudioOptions } from './tts.classes';
3
- export interface TTSOptions {
4
- voiceName: string;
5
- text: string;
6
- options: SynthAudioOptions;
7
- lang: string;
8
- isSsml: boolean;
9
- }
10
- export declare class TTSService {
11
- private client;
12
- constructor();
13
- getSpeech(tts: TTSOptions): Promise<{
14
- audioContent: Buffer;
15
- voiceName: string;
16
- }>;
17
- private getSpeedRate;
18
- listVoices(languageCode?: string): Promise<void>;
19
- textToWav(voiceName: string, text: string): Promise<void>;
20
- }
@@ -1,124 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.TTSService = void 0;
13
- const textToSpeech = require("@google-cloud/text-to-speech");
14
- const tts_classes_1 = require("./tts.classes");
15
- const app_exception_1 = require("src/common/app-exception");
16
- const common_1 = require("@nestjs/common");
17
- let TTSService = class TTSService {
18
- constructor() {
19
- try {
20
- console.log('Initializing Text-to-Speech client');
21
- this.client = new textToSpeech.TextToSpeechClient();
22
- }
23
- catch (error) {
24
- console.error('Error initializing Text-to-Speech client:', error);
25
- throw new app_exception_1.AppException({
26
- error_message: 'Failed to initialize Text-to-Speech client',
27
- explanation: 'Please ensure Google Cloud credentials are properly configured.',
28
- exception: error,
29
- });
30
- }
31
- }
32
- async getSpeech(tts) {
33
- console.log('Voice name:', tts.voiceName, 'Options:', tts.options, 'Lang:', tts.lang, 'is_ssml:', tts.isSsml);
34
- let selectedVoiceName;
35
- let languageCode;
36
- if (!tts.voiceName) {
37
- const voiceOptions = tts_classes_1.GoogleVoiceHQOptions.filter(voice => voice.lang.includes(tts.lang));
38
- const voiceData = voiceOptions[Math.floor(Math.random() * voiceOptions.length)];
39
- selectedVoiceName = voiceData.id;
40
- languageCode = voiceData.lang;
41
- }
42
- else {
43
- const voice = tts_classes_1.GoogleVoiceOptions.find(item => item.id === tts.voiceName);
44
- if (!voice) {
45
- throw new app_exception_1.AppException({ error_message: `Voice ${tts.voiceName} not found` });
46
- }
47
- selectedVoiceName = tts.voiceName;
48
- languageCode = voice.lang;
49
- }
50
- let speakingRate = 1;
51
- if (tts.options && !selectedVoiceName.includes('Journey')) {
52
- speakingRate = tts.options.speed_rate && tts.options.speed_rate > 0 ? tts.options.speed_rate : this.getSpeedRate(tts.options?.speed);
53
- }
54
- const request = {
55
- input: tts.isSsml ? { ssml: tts.text } : { text: tts.text },
56
- voice: {
57
- languageCode: languageCode,
58
- name: selectedVoiceName,
59
- },
60
- audioConfig: {
61
- audioEncoding: 'MP3',
62
- speakingRate: speakingRate,
63
- },
64
- };
65
- const [response] = await this.client.synthesizeSpeech(request);
66
- return {
67
- audioContent: response.audioContent,
68
- voiceName: selectedVoiceName,
69
- };
70
- }
71
- getSpeedRate(speed) {
72
- switch (speed) {
73
- case tts_classes_1.AudioSpeed.VeryFast:
74
- return 1.5;
75
- case tts_classes_1.AudioSpeed.Fast:
76
- return 1.25;
77
- case tts_classes_1.AudioSpeed.Regular:
78
- return 1.0;
79
- case tts_classes_1.AudioSpeed.Slow:
80
- return 0.75;
81
- case tts_classes_1.AudioSpeed.VerySlow:
82
- return 0.5;
83
- default:
84
- return 1.0;
85
- }
86
- }
87
- async listVoices(languageCode = 'en-US') {
88
- const [response] = await this.client.listVoices({ languageCode });
89
- const voices = response.voices?.sort((a, b) => a.name.localeCompare(b.name)) || [];
90
- console.log(` Voices: ${voices.length} `.padStart(60, '-').padEnd(60, '-'));
91
- voices.forEach(voice => {
92
- const languages = voice.languageCodes?.join(', ') || '';
93
- const name = voice.name;
94
- const gender = voice.ssmlGender;
95
- const rate = voice.naturalSampleRateHertz;
96
- console.log(`${languages} | ${name} | ${gender} | ${rate?.toLocaleString()} Hz`);
97
- });
98
- }
99
- async textToWav(voiceName, text) {
100
- const languageCode = voiceName.split('-').slice(0, 2).join('-');
101
- const request = {
102
- input: { text: text },
103
- voice: {
104
- languageCode: languageCode,
105
- name: voiceName,
106
- },
107
- audioConfig: {
108
- audioEncoding: 'LINEAR16',
109
- pitch: -1.0,
110
- speakingRate: 0.9,
111
- },
112
- };
113
- const [response] = await this.client.synthesizeSpeech(request);
114
- console.log(response);
115
- const filename = `${languageCode}.wav`;
116
- console.log(`Generated speech saved to "${filename}"`);
117
- }
118
- };
119
- exports.TTSService = TTSService;
120
- exports.TTSService = TTSService = __decorate([
121
- (0, common_1.Injectable)(),
122
- __metadata("design:paramtypes", [])
123
- ], TTSService);
124
- //# sourceMappingURL=tts-service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tts-service.js","sourceRoot":"","sources":["../../../../../src/tts/tts-service.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,6DAA6D;AAK7D,+CAAmH;AACnH,4DAAwD;AACxD,2CAA4C;AAarC,IAAM,UAAU,GAAhB,MAAM,UAAU;IAGrB;QACE,IAAI;YAOF,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;YAElD,IAAI,CAAC,MAAM,GAAG,IAAI,YAAY,CAAC,kBAAkB,EAAE,CAAC;SACrD;QAAC,OAAO,KAAK,EAAE;YACd,OAAO,CAAC,KAAK,CAAC,2CAA2C,EAAE,KAAK,CAAC,CAAC;YAClE,MAAM,IAAI,4BAAY,CAAC;gBACrB,aAAa,EAAE,4CAA4C;gBAC3D,WAAW,EAAE,iEAAiE;gBAC9E,SAAS,EAAE,KAAK;aACjB,CAAC,CAAC;SACJ;IACH,CAAC;IAGD,KAAK,CAAC,SAAS,CAAC,GAAe;QAC7B,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;QAE9G,IAAI,iBAAyB,CAAC;QAC9B,IAAI,YAAoB,CAAC;QAEzB,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE;YAClB,MAAM,YAAY,GAAG,kCAAoB,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,QA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Property(exports, "__esModule", { value: true });
3
- exports.TTSDto = exports.GoogleVoiceOptions = exports.GoogleVoiceHQOptions = exports.VoiceCode = exports.AudioSpeed = void 0;
4
- var AudioSpeed;
5
- (function (AudioSpeed) {
6
- AudioSpeed["VerySlow"] = "VerySlow";
7
- AudioSpeed["Slow"] = "Slow";
8
- AudioSpeed["Regular"] = "Regular";
9
- AudioSpeed["Fast"] = "Fast";
10
- AudioSpeed["VeryFast"] = "VeryFast";
11
- })(AudioSpeed || (exports.AudioSpeed = AudioSpeed = {}));
12
- var VoiceCode;
13
- (function (VoiceCode) {
14
- VoiceCode["MX"] = "MX";
15
- })(VoiceCode || (exports.VoiceCode = VoiceCode = {}));
16
- exports.GoogleVoiceHQOptions = [
17
- { id: 'en-US-Neural2-A', lang: 'en-US' },
18
- ];
19
- exports.GoogleVoiceOptions = [
20
- {
21
- provider: 'google',
22
- name: '👨‍🦰 Man ♂️ 🇫🇷 fr-FR-Neural2-B',
23
- id: 'fr-FR-Neural2-B',
24
- gender: 'male',
25
- lang: 'fr-FR',
26
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_fr-FR-Neural2-B.mp3',
27
- },
28
- {
29
- provider: 'google',
30
- name: '👩 Woman ♀️ 🇫🇷 fr-FR-Neural2-E',
31
- id: 'fr-FR-Neural2-E',
32
- gender: 'female',
33
- lang: 'fr-FR',
34
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_fr-FR-Neural2-E.mp3',
35
- },
36
- {
37
- provider: 'google',
38
- name: '👩 Woman ♀️ 🇮🇹 it-IT-Neural2-A',
39
- id: 'it-IT-Neural2-A',
40
- gender: 'female',
41
- lang: 'it-IT',
42
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_it-IT-Neural2-A.mp3',
43
- },
44
- {
45
- provider: 'google',
46
- name: '👨‍🦰 Man ♂️ 🇮🇹 it-IT-Neural2-C',
47
- id: 'it-IT-Neural2-C',
48
- gender: 'male',
49
- lang: 'it-IT',
50
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_it-IT-Neural2-C.mp3',
51
- },
52
- {
53
- provider: 'google',
54
- name: '👩 Woman ♀️ 🇧🇷 pt-BR-Neural2-C',
55
- id: 'pt-BR-Neural2-C',
56
- gender: 'female',
57
- lang: 'pt-BR',
58
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_pt-BR-Neural2-C.mp3',
59
- },
60
- {
61
- provider: 'google',
62
- name: '👨‍🦰 Man ♂️ 🇧🇷 pt-BR-Neural2-B',
63
- id: 'pt-BR-Neural2-B',
64
- gender: 'male',
65
- lang: 'pt-BR',
66
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_pt-BR-Neural2-B.mp3',
67
- },
68
- {
69
- provider: 'google',
70
- name: '👨‍🦰 Man 🇲🇽 es-US-Neural2-B',
71
- id: 'es-US-Neural2-B',
72
- gender: 'male',
73
- lang: 'es-US',
74
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_es-US-Neural2-B.mp3',
75
- },
76
- {
77
- provider: 'google',
78
- name: '👩 Woman ♀️ 🇲🇽 es-US-Neural2-A',
79
- id: 'es-US-Neural2-A',
80
- gender: 'female',
81
- lang: 'es-US',
82
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_es-US-Neural2-A.mp3',
83
- },
84
- {
85
- provider: 'google',
86
- name: '👨‍🦰 Man ♂️ 🇲🇽 es-US-Neural2-C',
87
- id: 'es-US-Neural2-C',
88
- gender: 'male',
89
- lang: 'es-US',
90
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_es-US-Neural2-C.mp3',
91
- },
92
- {
93
- provider: 'google',
94
- name: '👨‍🦰 Man ♂️ 🇪🇸 es-ES-Neural2-B',
95
- id: 'es-ES-Neural2-B',
96
- gender: 'male',
97
- lang: 'es-ES',
98
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_es-ES-Neural2-B.mp3',
99
- },
100
- {
101
- provider: 'google',
102
- name: '👩 Woman ♀️ 🇪🇸 es-ES-Neural2-C',
103
- id: 'es-ES-Neural2-C',
104
- gender: 'male',
105
- lang: 'es-ES',
106
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_es-ES-Neural2-C.mp3',
107
- },
108
- {
109
- provider: 'google',
110
- name: '👨‍🦰 Man ♂️ 🇪🇸 es-ES-Neural2-F',
111
- id: 'es-ES-Neural2-F',
112
- gender: 'male',
113
- lang: 'es-ES',
114
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_es-ES-Neural2-F.mp3',
115
- },
116
- {
117
- provider: 'google',
118
- name: '👩 Woman ♀️ 🇪🇸 es-ES-Neural2-E',
119
- id: 'es-ES-Neural2-E',
120
- gender: 'female',
121
- lang: 'es-ES',
122
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_es-ES-Neural2-E.mp3',
123
- },
124
- {
125
- provider: 'google',
126
- name: '👩 Woman ♀️ 🇺🇸 en-US-Journey-F',
127
- id: 'en-US-Journey-F',
128
- gender: 'female',
129
- lang: 'en-US',
130
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_en-US-Journey-F.mp3',
131
- },
132
- {
133
- provider: 'google',
134
- name: '👩 Woman ♀️ 🇺🇸 en-US-Journey-O',
135
- id: 'en-US-Journey-O',
136
- gender: 'female',
137
- lang: 'en-US',
138
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_en-US-Journey-O.mp3',
139
- },
140
- {
141
- provider: 'google',
142
- name: '👩 Woman ♀️ 🇺🇸 en-US-Journey-D',
143
- id: 'en-US-Journey-D',
144
- gender: 'female',
145
- lang: 'en-US',
146
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_en-US-Journey-D.mp3',
147
- },
148
- {
149
- provider: 'google',
150
- name: '👩 Woman ♀️ 🇺🇸 en-US-Journey-N',
151
- id: 'en-US-News-N',
152
- gender: 'female',
153
- lang: 'en-US',
154
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_en-US-News-N.mp3',
155
- },
156
- {
157
- provider: 'google',
158
- name: '👩 Woman ♀️ 🇺🇸 en-US-News-L',
159
- id: 'en-US-News-L',
160
- gender: 'female',
161
- lang: 'en-US',
162
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_en-US-News-L.mp3',
163
- },
164
- {
165
- provider: 'google',
166
- name: '👩 Woman ♀️ 🇺🇸 en-US-Neural2-F',
167
- id: 'en-US-Neural2-F',
168
- gender: 'female',
169
- lang: 'en-US',
170
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_en-US-Neural2-F.mp3',
171
- },
172
- {
173
- provider: 'google',
174
- name: '👩 Woman ♀️ 🇺🇸 en-US-Neural2-H',
175
- id: 'en-US-Neural2-H',
176
- gender: 'female',
177
- lang: 'en-US',
178
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_en-US-Neural2-H.mp3',
179
- },
180
- {
181
- provider: 'google',
182
- name: '👨‍🦰 Man ♂️ 🇺🇸 en-US-Neural2-J',
183
- id: 'en-US-Neural2-J',
184
- gender: 'male',
185
- lang: 'en-US',
186
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_en-US-Neural2-J.mp3',
187
- },
188
- {
189
- provider: 'google',
190
- name: '👨‍🦰 Man ♂️ 🇺🇸 en-US-Neural2-I',
191
- id: 'en-US-Neural2-I',
192
- gender: 'male',
193
- lang: 'en-US',
194
- exampleUrl: 'https://storage.googleapis.com/appingles-pro.appspot.com/voice_demos/google_en-US-Neural2-I.mp3',
195
- },
196
- ];
197
- class TTSDto {
198
- }
199
- exports.TTSDto = TTSDto;
200
- //# sourceMappingURL=tts.classes.js.map