@mastra/voice-inworld 0.4.0-alpha.0 → 0.4.1-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 +12 -0
- package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/request-context/index.d.ts +10 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-voice-overview.md +2 -0
- package/dist/docs/references/docs-voice-speech-to-speech.md +2 -0
- package/dist/docs/references/reference-voice-inworld-realtime.md +2 -0
- package/dist/docs/references/reference-voice-inworld.md +2 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mastra/voice-inworld
|
|
2
2
|
|
|
3
|
+
## 0.4.1-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated the ws dependency to ^8.21.0 to pull in fixes for an uninitialized memory disclosure (GHSA-58qx-3vcg-4xpx) and a memory exhaustion denial-of-service (GHSA-96hv-2xvq-fx4p) in the WebSocket server. ([#18789](https://github.com/mastra-ai/mastra/pull/18789))
|
|
8
|
+
|
|
9
|
+
## 0.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- Random bump ([#18178](https://github.com/mastra-ai/mastra/pull/18178))
|
|
14
|
+
|
|
3
15
|
## 0.4.0-alpha.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/request-context/index.d.ts
CHANGED
|
@@ -129,6 +129,16 @@ declare class RequestContext<Values extends Record<string, any> | unknown = unkn
|
|
|
129
129
|
* a clean JSON-safe dict for cross-context cycles.
|
|
130
130
|
*/
|
|
131
131
|
private isSerializable;
|
|
132
|
+
/**
|
|
133
|
+
* Custom span serialization to prevent leaking internal state (like auth
|
|
134
|
+
* tokens stored in the private `registry` Map) into observability spans.
|
|
135
|
+
*
|
|
136
|
+
* `deepClean` in `@mastra/observability` calls this method before falling
|
|
137
|
+
* back to `Object.keys()` — which would walk the runtime-enumerable
|
|
138
|
+
* `registry` field and serialize its raw Map entries (including any
|
|
139
|
+
* bearer tokens) into exported spans.
|
|
140
|
+
*/
|
|
141
|
+
serializeForSpan(): Record<string, unknown>;
|
|
132
142
|
/**
|
|
133
143
|
* Get all values as a typed object for destructuring.
|
|
134
144
|
* Returns Record<string, any> when untyped, or the Values type when typed.
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-voice-inworld
|
|
|
3
3
|
description: Documentation for @mastra/voice-inworld. Use when working with @mastra/voice-inworld APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/voice-inworld"
|
|
6
|
-
version: "0.4.
|
|
6
|
+
version: "0.4.1-alpha.0"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
1
3
|
# Voice in Mastra
|
|
2
4
|
|
|
3
5
|
Mastra's Voice system provides a unified interface for voice interactions, enabling text-to-speech (TTS), speech-to-text (STT), and real-time speech-to-speech (STS) capabilities in your applications.
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
1
3
|
# Inworld Realtime voice
|
|
2
4
|
|
|
3
5
|
The `InworldRealtimeVoice` class provides real-time, full-duplex voice interaction using [Inworld AI's Realtime API](https://docs.inworld.ai/realtime/quickstart-websocket) over WebSockets. It supports speech-to-speech, tool calling, and Inworld-specific session knobs such as semantic voice activity detection, MCP tool routing, and playback speed.
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
1
3
|
# Inworld
|
|
2
4
|
|
|
3
5
|
The Inworld voice implementation in Mastra provides streaming text-to-speech (TTS) and batch speech-to-text (STT) capabilities using Inworld AI's API. It supports multiple TTS and STT models, configurable audio encodings, and progressive audio streaming.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/voice-inworld",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1-alpha.0",
|
|
4
4
|
"description": "Mastra Inworld AI voice integration — streaming TTS, batch STT, and realtime full-duplex voice",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"ws": "^8.
|
|
27
|
+
"ws": "^8.21.0",
|
|
28
28
|
"zod-to-json-schema": "^3.25.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"typescript": "^6.0.3",
|
|
39
39
|
"vitest": "4.1.8",
|
|
40
40
|
"zod": "^4.4.3",
|
|
41
|
-
"@internal/
|
|
42
|
-
"@internal/voice": "0.0.
|
|
43
|
-
"@internal/
|
|
41
|
+
"@internal/lint": "0.0.110",
|
|
42
|
+
"@internal/voice": "0.0.10",
|
|
43
|
+
"@internal/types-builder": "0.0.85"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"zod": "^3.25.0 || ^4.0.0"
|