@mastra/voice-openai-realtime 0.13.6 → 0.13.7

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @mastra/voice-openai-realtime
2
2
 
3
+ ## 0.13.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`cf418b6`](https://github.com/mastra-ai/mastra/commit/cf418b65efb81997e9b8dc7638eee363c5d96c96)]:
8
+ - @mastra/schema-compat@1.3.7
9
+
10
+ ## 0.13.7-alpha.0
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`cf418b6`](https://github.com/mastra-ai/mastra/commit/cf418b65efb81997e9b8dc7638eee363c5d96c96)]:
15
+ - @mastra/schema-compat@1.3.7-alpha.0
16
+
3
17
  ## 0.13.6
4
18
 
5
19
  ### Patch Changes
@@ -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"
6
+ version: "0.13.7"
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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.13.6",
2
+ "version": "0.13.7",
3
3
  "package": "@mastra/voice-openai-realtime",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -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/guides/voice/text-to-speech).
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/guides/voice/speech-to-text).
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/guides/voice/speech-to-speech).
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
 
@@ -748,7 +748,7 @@ Visit the [xAI Realtime Voice Reference](https://mastra.ai/integrations/voice/xa
748
748
 
749
749
  ### Realtime voice
750
750
 
751
- Run live calls a user can talk over, in the browser or over the phone. Mastra hands the audio loop to LiveKit, which covers voice activity detection, semantic turn detection, and barge-in, while your agent generates each reply with its own model, tools, and memory. For setup and configuration options, check out [Realtime voice](https://mastra.ai/integrations/voice/livekit).
751
+ Run live calls that a user can talk over in a browser or by phone. Mastra hands the audio loop to LiveKit for voice activity and semantic turn detection, plus barge-in. Your agent generates each reply with its own model, tools, and memory. For setup and configuration options, check out [Realtime voice](https://mastra.ai/integrations/voice/livekit).
752
752
 
753
753
  ## Voice configuration
754
754
 
@@ -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/guides/voice/overview).
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
 
@@ -80,7 +80,7 @@ export const agent = new Agent({
80
80
 
81
81
  ## Listen for realtime events
82
82
 
83
- Realtime voice providers emit events you can use to update your UI, play assistant audio, log transcriptions, and handle errors:
83
+ Realtime voice providers emit events you can use to update your UI and play assistant audio, while logging transcriptions and handling errors:
84
84
 
85
85
  ```typescript
86
86
  agent.voice.on('speaking', ({ audio }) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  # voice.on()
4
4
 
5
- The `on()` method registers event listeners for voice events. This is particularly important for real-time voice providers, where events are used to communicate transcribed text, audio responses, and other state changes.
5
+ The `on()` method registers event listeners for voice events. This is particularly important for real-time voice providers, where events are used to communicate transcribed text and audio responses, as well as other state changes.
6
6
 
7
7
  ## Usage example
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # voice.updateConfig()
4
4
 
5
- The `updateConfig()` method allows you to update the configuration of a voice provider at runtime. This is useful for changing voice settings, API keys, or other provider-specific options without creating a new instance.
5
+ The `updateConfig()` method allows you to update the configuration of a voice provider at runtime. This is useful for changing voice settings and API keys, along with other provider-specific options without creating a new instance.
6
6
 
7
7
  ## Usage example
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/voice-openai-realtime",
3
- "version": "0.13.6",
3
+ "version": "0.13.7",
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.6"
29
+ "@mastra/schema-compat": "1.3.7"
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/lint": "0.0.122",
43
- "@internal/types-builder": "0.0.97",
44
- "@internal/voice": "0.0.20"
42
+ "@internal/lint": "0.0.123",
43
+ "@internal/types-builder": "0.0.98",
44
+ "@internal/voice": "0.0.21"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "zod": "^3.25.0 || ^4.0.0"