@mastra/voice-openai 0.1.14-alpha.4 → 0.1.14
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.
- package/dist/index.cjs +1 -0
- package/dist/index.js +1 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -115,6 +115,7 @@ var OpenAIVoice = class extends voice.MastraVoice {
|
|
|
115
115
|
const response = await this.speechClient.audio.speech.create({
|
|
116
116
|
model: this.speechModel?.name ?? "tts-1",
|
|
117
117
|
voice: options?.speaker ?? this.speaker,
|
|
118
|
+
response_format: options?.responseFormat ?? "mp3",
|
|
118
119
|
input,
|
|
119
120
|
speed: options?.speed || 1
|
|
120
121
|
});
|
package/dist/index.js
CHANGED
|
@@ -109,6 +109,7 @@ var OpenAIVoice = class extends MastraVoice {
|
|
|
109
109
|
const response = await this.speechClient.audio.speech.create({
|
|
110
110
|
model: this.speechModel?.name ?? "tts-1",
|
|
111
111
|
voice: options?.speaker ?? this.speaker,
|
|
112
|
+
response_format: options?.responseFormat ?? "mp3",
|
|
112
113
|
input,
|
|
113
114
|
speed: options?.speed || 1
|
|
114
115
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/voice-openai",
|
|
3
|
-
"version": "0.1.14
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "Mastra OpenAI speech integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"openai": "^4.89.0",
|
|
27
27
|
"zod": "^3.24.2",
|
|
28
|
-
"@mastra/core": "^0.8.3
|
|
28
|
+
"@mastra/core": "^0.8.3"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@microsoft/api-extractor": "^7.52.2",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"tsup": "^8.4.0",
|
|
35
35
|
"typescript": "^5.8.2",
|
|
36
36
|
"vitest": "^2.1.9",
|
|
37
|
-
"@internal/lint": "0.0.2
|
|
37
|
+
"@internal/lint": "0.0.2"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",
|