@mastra/voice-openai-realtime 0.13.6 → 0.13.7-alpha.0
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/CHANGELOG.md +7 -0
- package/dist/docs/SKILL.md +3 -6
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/{guides-voice-overview.md → reference-voice-overview.md} +3 -3
- package/dist/docs/references/{guides-voice-speech-to-speech.md → reference-voice-speech-to-speech.md} +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/voice-openai-realtime
|
|
2
2
|
|
|
3
|
+
## 0.13.7-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`cf418b6`](https://github.com/mastra-ai/mastra/commit/cf418b65efb81997e9b8dc7638eee363c5d96c96)]:
|
|
8
|
+
- @mastra/schema-compat@1.3.7-alpha.0
|
|
9
|
+
|
|
3
10
|
## 0.13.6
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-voice-openai-realtime
|
|
|
3
3
|
description: Documentation for @mastra/voice-openai-realtime. Use when working with @mastra/voice-openai-realtime APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/voice-openai-realtime"
|
|
6
|
-
version: "0.13.
|
|
6
|
+
version: "0.13.7-alpha.0"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -14,17 +14,14 @@ Use this skill whenever you are working with @mastra/voice-openai-realtime to ob
|
|
|
14
14
|
|
|
15
15
|
Read the individual reference documents for detailed explanations and code examples.
|
|
16
16
|
|
|
17
|
-
### Guides
|
|
18
|
-
|
|
19
|
-
- [Voice in Mastra](references/guides-voice-overview.md) - Overview of voice capabilities in Mastra, including text-to-speech, speech-to-text, and real-time speech-to-speech interactions.
|
|
20
|
-
- [Speech-to-Speech capabilities in Mastra](references/guides-voice-speech-to-speech.md) - Overview of speech-to-speech capabilities in Mastra, including real-time interactions and event-driven architecture.
|
|
21
|
-
|
|
22
17
|
### Integrations
|
|
23
18
|
|
|
24
19
|
- [OpenAI](references/integrations-voice-openai.md) - Documentation for the OpenAIVoice class, providing text-to-speech and speech-to-text capabilities.
|
|
25
20
|
|
|
26
21
|
### Reference
|
|
27
22
|
|
|
23
|
+
- [Voice in Mastra](references/reference-voice-overview.md) - Overview of voice capabilities in Mastra, including text-to-speech, speech-to-text, and real-time speech-to-speech interactions.
|
|
24
|
+
- [Speech-to-Speech capabilities in Mastra](references/reference-voice-speech-to-speech.md) - Overview of speech-to-speech capabilities in Mastra, including real-time interactions and event-driven architecture.
|
|
28
25
|
- [Reference: voice.addInstructions()](references/reference-voice-voice.addInstructions.md) - Documentation for the addInstructions() method available in voice providers, which adds instructions to guide the voice model's behavior.
|
|
29
26
|
- [Reference: voice.addTools()](references/reference-voice-voice.addTools.md) - Documentation for the addTools() method available in voice providers, which equips voice models with function calling capabilities.
|
|
30
27
|
- [Reference: voice.answer()](references/reference-voice-voice.answer.md) - Documentation for the answer() method available in real-time voice providers, which triggers the voice provider to generate a response.
|
|
@@ -29,7 +29,7 @@ You can then use the following voice capabilities:
|
|
|
29
29
|
|
|
30
30
|
Turn your agent's responses into natural-sounding speech using Mastra's TTS capabilities. Choose from multiple providers like OpenAI, ElevenLabs, and more.
|
|
31
31
|
|
|
32
|
-
For detailed configuration options and advanced features, check out our [Text-to-Speech guide](https://mastra.ai/
|
|
32
|
+
For detailed configuration options and advanced features, check out our [Text-to-Speech guide](https://mastra.ai/reference/voice/text-to-speech).
|
|
33
33
|
|
|
34
34
|
**OpenAI**:
|
|
35
35
|
|
|
@@ -304,7 +304,7 @@ Visit the [Murf Voice Reference](https://mastra.ai/integrations/voice/murf) for
|
|
|
304
304
|
|
|
305
305
|
### Speech to Text (STT)
|
|
306
306
|
|
|
307
|
-
Transcribe spoken content using providers like OpenAI, ElevenLabs, and more. For detailed configuration options and more, check out [Speech to Text](https://mastra.ai/
|
|
307
|
+
Transcribe spoken content using providers like OpenAI, ElevenLabs, and more. For detailed configuration options and more, check out [Speech to Text](https://mastra.ai/reference/voice/speech-to-text).
|
|
308
308
|
|
|
309
309
|
You can download a sample audio file from [here](https://github.com/mastra-ai/realtime-voice-demo/raw/refs/heads/main/how_can_i_help_you.mp3).
|
|
310
310
|
|
|
@@ -537,7 +537,7 @@ Visit the [Sarvam Voice Reference](https://mastra.ai/integrations/voice/sarvam)
|
|
|
537
537
|
|
|
538
538
|
### Speech to Speech (STS)
|
|
539
539
|
|
|
540
|
-
Create conversational experiences with speech-to-speech capabilities. The unified API enables real-time voice interactions between users and AI agents. For detailed configuration options and advanced features, check out [Speech to Speech](https://mastra.ai/
|
|
540
|
+
Create conversational experiences with speech-to-speech capabilities. The unified API enables real-time voice interactions between users and AI agents. For detailed configuration options and advanced features, check out [Speech to Speech](https://mastra.ai/reference/voice/speech-to-speech).
|
|
541
541
|
|
|
542
542
|
**OpenAI**:
|
|
543
543
|
|
|
@@ -54,7 +54,7 @@ const micStream = getMicrophoneStream()
|
|
|
54
54
|
await agent.voice.send(micStream)
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
For a broader overview of voice providers on agents, see [Voice in Mastra](https://mastra.ai/
|
|
57
|
+
For a broader overview of voice providers on agents, see [Voice in Mastra](https://mastra.ai/reference/voice/overview).
|
|
58
58
|
|
|
59
59
|
## Use tools in realtime sessions
|
|
60
60
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/voice-openai-realtime",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.7-alpha.0",
|
|
4
4
|
"description": "Mastra OpenAI Realtime API integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"openai-realtime-api": "^1.0.8",
|
|
28
28
|
"ws": "^8.21.0",
|
|
29
|
-
"@mastra/schema-compat": "1.3.
|
|
29
|
+
"@mastra/schema-compat": "1.3.7-alpha.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "22.20.1",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"typescript": "^6.0.3",
|
|
40
40
|
"vitest": "4.1.10",
|
|
41
41
|
"zod": "^4.4.3",
|
|
42
|
+
"@internal/voice": "0.0.20",
|
|
42
43
|
"@internal/lint": "0.0.122",
|
|
43
|
-
"@internal/types-builder": "0.0.97"
|
|
44
|
-
"@internal/voice": "0.0.20"
|
|
44
|
+
"@internal/types-builder": "0.0.97"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"zod": "^3.25.0 || ^4.0.0"
|