@mastra/voice-openai-realtime 0.13.7-alpha.0 → 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 +7 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-voice-overview.md +1 -1
- package/dist/docs/references/reference-voice-speech-to-speech.md +1 -1
- package/dist/docs/references/reference-voice-voice.on.md +1 -1
- package/dist/docs/references/reference-voice-voice.updateConfig.md +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
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
|
+
|
|
3
10
|
## 0.13.7-alpha.0
|
|
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.7
|
|
6
|
+
version: "0.13.7"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -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
|
|
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
|
|
|
@@ -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
|
|
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
|
|
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
|
|
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.7
|
|
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.7
|
|
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/
|
|
43
|
-
"@internal/
|
|
44
|
-
"@internal/
|
|
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"
|