@mastra/voice-google 0.14.3-alpha.0 → 0.14.4-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.
@@ -1,6 +1,5 @@
1
- import { i as IMastraLogger, u as RegisteredLogger } from "../index-Biaf3BmX.js";
2
- //#region src/base/MastraBase.d.ts
3
- declare class MastraBase {
1
+ import { i as IMastraLogger, u as RegisteredLogger } from "../index-TNVgGNjs.js";
2
+ export declare class MastraBase {
4
3
  #private;
5
4
  component: RegisteredLogger;
6
5
  protected logger: IMastraLogger;
@@ -26,6 +25,4 @@ declare class MastraBase {
26
25
  */
27
26
  __setLogger(logger: IMastraLogger): void;
28
27
  }
29
- //#endregion
30
- export { MastraBase };
31
28
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { Transform } from "stream";
2
- //#region src/logger/adapter.d.ts
3
2
  /**
4
3
  * OpenTelemetry-compatible trace correlation fields, injected at the top
5
4
  * level of a logger's native record.
@@ -91,8 +90,6 @@ declare function exportTrackedException(ctx: LoggerAdapterContext | undefined, e
91
90
  * so the derived record preserves all context from the native call.
92
91
  */
93
92
  declare function buildLogRecordData(args: unknown[]): Record<string, unknown> | undefined;
94
- //#endregion
95
- //#region src/logger/index.d.ts
96
93
  declare const RegisteredLogger: {
97
94
  readonly AGENT: 'AGENT';
98
95
  readonly OBSERVABILITY: 'OBSERVABILITY';
@@ -314,6 +311,5 @@ declare class ConsoleLogger extends MastraLogger {
314
311
  hasMore: boolean;
315
312
  }>;
316
313
  }
317
- //#endregion
318
314
  export { buildLogRecordData as _, LogFilter as a, LoggerTransport as c, createCustomTransport as d, AdaptableLogger as f, TraceFields as g, LoggerAdapterOptions as h, IMastraLogger as i, MastraLogger as l, LoggerAdapterContext as m, ConsoleLogger as n, LogFilterContext as o, AdapterLogSink as p, ConsoleLoggerOptions as r, LogLevel as s, BaseLogMessage as t, RegisteredLogger as u, exportTrackedException as v, isAdaptableLogger as y };
319
- //# sourceMappingURL=index-Biaf3BmX.d.ts.map
315
+ //# sourceMappingURL=index-TNVgGNjs.d.ts.map
@@ -1,4 +1,3 @@
1
- //#region src/request-context/index.d.ts
2
1
  type RecordToTuple<T> = { [K in keyof T]: [K, T[K]]; }[keyof T][];
3
2
  /**
4
3
  * Reserved key for setting resourceId from middleware.
@@ -12,7 +11,7 @@ type RecordToTuple<T> = { [K in keyof T]: [K, T[K]]; }[keyof T][];
12
11
  * requestContext.set(MASTRA_RESOURCE_ID_KEY, authenticatedUser.id);
13
12
  * ```
14
13
  */
15
- declare const MASTRA_RESOURCE_ID_KEY = "mastra__resourceId";
14
+ export declare const MASTRA_RESOURCE_ID_KEY = "mastra__resourceId";
16
15
  /**
17
16
  * Reserved key for setting threadId from middleware.
18
17
  * When set in RequestContext, this takes precedence over client-provided values
@@ -25,7 +24,7 @@ declare const MASTRA_RESOURCE_ID_KEY = "mastra__resourceId";
25
24
  * requestContext.set(MASTRA_THREAD_ID_KEY, threadId);
26
25
  * ```
27
26
  */
28
- declare const MASTRA_THREAD_ID_KEY = "mastra__threadId";
27
+ export declare const MASTRA_THREAD_ID_KEY = "mastra__threadId";
29
28
  /**
30
29
  * Reserved key for setting agent scopes from middleware.
31
30
  *
@@ -46,7 +45,7 @@ declare const MASTRA_THREAD_ID_KEY = "mastra__threadId";
46
45
  * requestContext.set(MASTRA_SCOPES_KEY, [`org:${user.orgId}`, `resource:${user.id}`]);
47
46
  * ```
48
47
  */
49
- declare const MASTRA_SCOPES_KEY = "mastra__scopes";
48
+ export declare const MASTRA_SCOPES_KEY = "mastra__scopes";
50
49
  /**
51
50
  * Reserved key for storing version overrides on RequestContext.
52
51
  * When set, sub-agent delegation resolves versioned agents from these overrides.
@@ -58,13 +57,13 @@ declare const MASTRA_SCOPES_KEY = "mastra__scopes";
58
57
  * });
59
58
  * ```
60
59
  */
61
- declare const MASTRA_VERSIONS_KEY = "mastra__versions";
60
+ export declare const MASTRA_VERSIONS_KEY = "mastra__versions";
62
61
  /**
63
62
  * Reserved key for storing the raw auth token from the incoming request.
64
63
  * Used by the editor to forward authentication when connecting to MCP servers
65
64
  * that require the same auth as the Mastra server itself.
66
65
  */
67
- declare const MASTRA_AUTH_TOKEN_KEY = "mastra__authToken";
66
+ export declare const MASTRA_AUTH_TOKEN_KEY = "mastra__authToken";
68
67
  /**
69
68
  * Reserved key carrying a delegating agent's `MastraMemory` into a delegated
70
69
  * run, so a sub-agent without its own memory can persist that run's transcript
@@ -75,7 +74,7 @@ declare const MASTRA_AUTH_TOKEN_KEY = "mastra__authToken";
75
74
  * from the durable request-context snapshot and is not copied into further
76
75
  * nested delegated runs. Internal to delegation — do not set it yourself.
77
76
  */
78
- declare const MASTRA_INHERITED_MEMORY_KEY = "mastra__inheritedMemory";
77
+ export declare const MASTRA_INHERITED_MEMORY_KEY = "mastra__inheritedMemory";
79
78
  /**
80
79
  * Reserved key naming who sent a user message: `{ id, name?, avatarUrl? }`.
81
80
  * Set by the host that authenticated the request; the agent-controller copies
@@ -88,7 +87,7 @@ declare const MASTRA_INHERITED_MEMORY_KEY = "mastra__inheritedMemory";
88
87
  * requestContext.setRaw(MASTRA_MESSAGE_AUTHOR_KEY, { id: user.id, name: user.name, avatarUrl: user.avatarUrl });
89
88
  * ```
90
89
  */
91
- declare const MASTRA_MESSAGE_AUTHOR_KEY = "mastra__messageAuthor";
90
+ export declare const MASTRA_MESSAGE_AUTHOR_KEY = "mastra__messageAuthor";
92
91
  /**
93
92
  * Whether a request-context key is reserved for Mastra itself.
94
93
  *
@@ -98,18 +97,18 @@ declare const MASTRA_MESSAGE_AUTHOR_KEY = "mastra__messageAuthor";
98
97
  * Reserved keys are framework state rather than caller-provided data, so they
99
98
  * are left out of span serialization.
100
99
  */
101
- declare function isReservedRequestContextKey(key: string): boolean;
102
- type VersionSelector = {
100
+ export declare function isReservedRequestContextKey(key: string): boolean;
101
+ export type VersionSelector = {
103
102
  versionId: string;
104
103
  } | {
105
104
  status: 'draft' | 'published';
106
105
  };
107
- type VersionOverrides = {
106
+ export type VersionOverrides = {
108
107
  agents?: Record<string, VersionSelector>;
109
108
  /** Fallback status for sub-agents (and future primitives) without an explicit entry. */
110
109
  defaultStatus?: 'draft' | 'published';
111
110
  };
112
- declare function mergeVersionOverrides(base?: VersionOverrides, overrides?: VersionOverrides): VersionOverrides | undefined;
111
+ export declare function mergeVersionOverrides(base?: VersionOverrides, overrides?: VersionOverrides): VersionOverrides | undefined;
113
112
  /**
114
113
  * Carries typed, request-specific values through agents, tools, and workflows.
115
114
  * Pass the instance as `requestContext` when starting an operation.
@@ -131,7 +130,7 @@ declare function mergeVersionOverrides(base?: VersionOverrides, overrides?: Vers
131
130
  * @see [Request context documentation](https://mastra.ai/docs/server/request-context)
132
131
  * if packaged docs are unavailable.
133
132
  */
134
- declare class RequestContext<Values extends Record<string, any> | unknown = unknown> {
133
+ export declare class RequestContext<Values extends Record<string, any> | unknown = unknown> {
135
134
  private registry;
136
135
  constructor(iterable?: Values extends Record<string, any> ? RecordToTuple<Partial<Values>> : Iterable<readonly [string, unknown]>);
137
136
  /**
@@ -281,6 +280,5 @@ declare class RequestContext<Values extends Record<string, any> | unknown = unkn
281
280
  */
282
281
  get all(): Values extends Record<string, any> ? Values : Record<string, any>;
283
282
  }
284
- //#endregion
285
- export { MASTRA_AUTH_TOKEN_KEY, MASTRA_INHERITED_MEMORY_KEY, MASTRA_MESSAGE_AUTHOR_KEY, MASTRA_RESOURCE_ID_KEY, MASTRA_SCOPES_KEY, MASTRA_THREAD_ID_KEY, MASTRA_VERSIONS_KEY, RequestContext, VersionOverrides, VersionSelector, isReservedRequestContextKey, mergeVersionOverrides };
283
+ export {};
286
284
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,2 @@
1
- //#region src/types/index.d.ts
2
- type ToolsInput = Record<string, any>;
3
- //#endregion
4
- export { ToolsInput };
1
+ export type ToolsInput = Record<string, any>;
5
2
  //# sourceMappingURL=index.d.ts.map
@@ -834,8 +834,10 @@ export type $InferZodRecordOutput<Key extends $ZodRecordKey = $ZodRecordKey, Val
834
834
  export type $InferZodRecordInput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<core.input<Key> & PropertyKey, core.input<Value>>> : [
835
835
  Value
836
836
  ] extends [OptionalInSchema] ? Partial<Record<core.input<Key> & PropertyKey, core.input<Value>>> : Record<core.input<Key> & PropertyKey, core.input<Value>>;
837
- export interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals<$InferZodRecordOutput<Key, Value>, $InferZodRecordInput<Key, Value>> {
837
+ export interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals {
838
838
  def: $ZodRecordDef<Key, Value>;
839
+ output: $InferZodRecordOutput<Key, Value>;
840
+ input: $InferZodRecordInput<Key, Value>;
839
841
  isst: errors.$ZodIssueInvalidType | errors.$ZodIssueInvalidKey<Record<PropertyKey, unknown>>;
840
842
  optin?: "optional" | undefined;
841
843
  optout?: "optional" | undefined;
@@ -221,6 +221,8 @@ export declare function prefixIssues(path: PropertyKey, issues: errors.$ZodRawIs
221
221
  export declare function unwrapMessage(message: string | {
222
222
  message: string;
223
223
  } | undefined | null): string | undefined;
224
+ /** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
225
+ export declare function sizeCaps(defChecks: checks.$ZodCheck<never>[] | undefined): [number, checks.$ZodCheck<never>][];
224
226
  export declare function attachSchema(issues: errors.$ZodRawIssue[], start: number, inst: schemas.$ZodType): void;
225
227
  export declare function finalizeIssue(iss: errors.$ZodRawIssue, ctx: schemas.ParseContextInternal | undefined, config: $ZodConfig): errors.$ZodIssue;
226
228
  export declare function getSizableOrigin(input: any): "set" | "map" | "file" | "unknown";
@@ -3,7 +3,7 @@ name: mastra-voice-google
3
3
  description: Documentation for @mastra/voice-google. Use when working with @mastra/voice-google APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/voice-google"
6
- version: "0.14.3-alpha.0"
6
+ version: "0.14.4-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.14.3-alpha.0",
2
+ "version": "0.14.4-alpha.0",
3
3
  "package": "@mastra/voice-google",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -53,27 +53,27 @@ const voices = await voice.getSpeakers({ languageCode: 'en-US' })
53
53
 
54
54
  **speechModel** (`GoogleModelConfig`): Configuration for text-to-speech functionality (Default: `{ apiKey: process.env.GOOGLE_API_KEY }`)
55
55
 
56
- **speechModel.apiKey** (`string`): Google Cloud API key. Falls back to GOOGLE\_API\_KEY environment variable. Not used when vertexAI is true.
56
+ **speechModel.apiKey** (`string`): Google Cloud API key. Falls back to GOOGLE_API_KEY environment variable. Not used when vertexAI is true.
57
57
 
58
- **speechModel.keyFilename** (`string`): Path to service account JSON key file. Falls back to GOOGLE\_APPLICATION\_CREDENTIALS environment variable.
58
+ **speechModel.keyFilename** (`string`): Path to service account JSON key file. Falls back to GOOGLE_APPLICATION_CREDENTIALS environment variable.
59
59
 
60
- **speechModel.credentials** (`object`): In-memory service account credentials object with client\_email and private\_key properties.
60
+ **speechModel.credentials** (`object`): In-memory service account credentials object with client_email and private_key properties.
61
61
 
62
62
  **listeningModel** (`GoogleModelConfig`): Configuration for speech-to-text functionality (Default: `{ apiKey: process.env.GOOGLE_API_KEY }`)
63
63
 
64
- **listeningModel.apiKey** (`string`): Google Cloud API key. Falls back to GOOGLE\_API\_KEY environment variable. Not used when vertexAI is true.
64
+ **listeningModel.apiKey** (`string`): Google Cloud API key. Falls back to GOOGLE_API_KEY environment variable. Not used when vertexAI is true.
65
65
 
66
- **listeningModel.keyFilename** (`string`): Path to service account JSON key file. Falls back to GOOGLE\_APPLICATION\_CREDENTIALS environment variable.
66
+ **listeningModel.keyFilename** (`string`): Path to service account JSON key file. Falls back to GOOGLE_APPLICATION_CREDENTIALS environment variable.
67
67
 
68
- **listeningModel.credentials** (`object`): In-memory service account credentials object with client\_email and private\_key properties.
68
+ **listeningModel.credentials** (`object`): In-memory service account credentials object with client_email and private_key properties.
69
69
 
70
70
  **speaker** (`string`): Default voice ID to use for text-to-speech (Default: `'en-US-Casual-K'`)
71
71
 
72
72
  **vertexAI** (`boolean`): Enable Vertex AI mode for enterprise deployments. Uses project-based authentication instead of API keys. Requires 'project' to be set. (Default: `false`)
73
73
 
74
- **project** (`string`): Google Cloud project ID (required when vertexAI is true). Falls back to GOOGLE\_CLOUD\_PROJECT environment variable.
74
+ **project** (`string`): Google Cloud project ID (required when vertexAI is true). Falls back to GOOGLE_CLOUD_PROJECT environment variable.
75
75
 
76
- **location** (`string`): Google Cloud region for Vertex AI. Falls back to GOOGLE\_CLOUD\_LOCATION environment variable. (Default: `'us-central1'`)
76
+ **location** (`string`): Google Cloud region for Vertex AI. Falls back to GOOGLE_CLOUD_LOCATION environment variable. (Default: `'us-central1'`)
77
77
 
78
78
  ### Methods
79
79
 
@@ -128,9 +128,9 @@ const transcript = await voice.listen(iosSafariAacStream, {
128
128
 
129
129
  **options.v2** (`true`): Enables the v2 API path
130
130
 
131
- **options.config** (`v2.IRecognitionConfig`): v2 recognition configuration. Defaults to auto-decoding with languageCodes: \['en-US'] and model: 'long'. Set autoDecodingConfig: {} to auto-detect the audio format, or use explicitDecodingConfig to specify an encoding like MP4\_AAC, M4A\_AAC, or MOV\_AAC.
131
+ **options.config** (`v2.IRecognitionConfig`): v2 recognition configuration. Defaults to auto-decoding with languageCodes: \['en-US'] and model: 'long'. Set autoDecodingConfig: {} to auto-detect the audio format, or use explicitDecodingConfig to specify an encoding like MP4_AAC, M4A_AAC, or MOV_AAC.
132
132
 
133
- **options.recognizer** (`string`): v2 recognizer resource path. Defaults to projects/{project}/locations/global/recognizers/\_ where {project} is resolved from the constructor project option, GOOGLE\_CLOUD\_PROJECT, or the client's default project.
133
+ **options.recognizer** (`string`): v2 recognizer resource path. Defaults to projects/{project}/locations/global/recognizers/\_ where {project} is resolved from the constructor project option, GOOGLE_CLOUD_PROJECT, or the client's default project.
134
134
 
135
135
  Returns: `Promise<string>`
136
136
 
@@ -397,6 +397,12 @@ voice.close()
397
397
 
398
398
  **sessionConfig.contextCompression** (`boolean`): Enable automatic context compression.
399
399
 
400
+ **inputAudioTranscription** (`GeminiAudioTranscriptionConfig`): Transcription settings for the user's speech. Set languageCodes to BCP-47 hints (for example \['es-ES']) so short or accented utterances aren't transcribed in the wrong language. Without hints, the server auto-detects the language. Applied when the session connects.
401
+
402
+ **inputAudioTranscription.languageCodes** (`string[]`): BCP-47 language codes present in the audio.
403
+
404
+ **outputAudioTranscription** (`GeminiAudioTranscriptionConfig`): Transcription settings for the model's speech. Takes the same languageCodes hints as inputAudioTranscription. Applied when the session connects.
405
+
400
406
  **debug** (`boolean`): Enable debug logging for troubleshooting. (Default: `false`)
401
407
 
402
408
  ### Methods
@@ -543,7 +549,7 @@ The GeminiLiveVoice class emits the following events:
543
549
 
544
550
  **speaking** (`event`): Emitted with audio metadata. Callback receives { audioData?: Int16Array, sampleRate?: number }.
545
551
 
546
- **writing** (`event`): Emitted when transcribed text is available. Callback receives { text: string, role: 'assistant' | 'user' }. On native-audio models the assistant transcript is driven by the server's output\_audio\_transcription channel rather than modelTurn.parts.text.
552
+ **writing** (`event`): Emitted when transcribed text is available. Callback receives { text: string, role: 'assistant' | 'user' }. On native-audio models the assistant transcript is driven by the server's output_audio_transcription channel rather than modelTurn.parts.text.
547
553
 
548
554
  **thinking** (`event`): Emitted on native-audio models with the model's chain-of-thought / reasoning text from modelTurn.parts.text. Callback receives { text: string }. Does not fire on non-native-audio models, where modelTurn.parts.text is the spoken response and is emitted as writing instead.
549
555
 
@@ -20,7 +20,7 @@ const voiceAgent = new Agent({
20
20
  id: 'voice-agent',
21
21
  name: 'Voice Agent',
22
22
  instructions: 'You are a voice assistant that can help users with their tasks.',
23
- model: 'openai/gpt-5.6-sol',
23
+ model: 'openai/gpt-6.1-sol',
24
24
  voice: new OpenAIVoice(),
25
25
  })
26
26
  ```
@@ -44,7 +44,7 @@ const voiceAgent = new Agent({
44
44
  id: 'voice-agent',
45
45
  name: 'Voice Agent',
46
46
  instructions: 'You are a voice assistant that can help users with their tasks.',
47
- model: 'openai/gpt-5.6-sol',
47
+ model: 'openai/gpt-6.1-sol',
48
48
  voice: new OpenAIVoice(),
49
49
  })
50
50
 
@@ -72,7 +72,7 @@ const voiceAgent = new Agent({
72
72
  id: 'voice-agent',
73
73
  name: 'Voice Agent',
74
74
  instructions: 'You are a voice assistant that can help users with their tasks.',
75
- model: 'openai/gpt-5.6-sol',
75
+ model: 'openai/gpt-6.1-sol',
76
76
  voice: new AzureVoice(),
77
77
  })
78
78
 
@@ -99,7 +99,7 @@ const voiceAgent = new Agent({
99
99
  id: 'voice-agent',
100
100
  name: 'Voice Agent',
101
101
  instructions: 'You are a voice assistant that can help users with their tasks.',
102
- model: 'openai/gpt-5.6-sol',
102
+ model: 'openai/gpt-6.1-sol',
103
103
  voice: new ElevenLabsVoice(),
104
104
  })
105
105
 
@@ -126,7 +126,7 @@ const voiceAgent = new Agent({
126
126
  id: 'voice-agent',
127
127
  name: 'Voice Agent',
128
128
  instructions: 'You are a voice assistant that can help users with their tasks.',
129
- model: 'openai/gpt-5.6-sol',
129
+ model: 'openai/gpt-6.1-sol',
130
130
  voice: new GoogleVoice(),
131
131
  })
132
132
 
@@ -153,7 +153,7 @@ const voiceAgent = new Agent({
153
153
  id: 'voice-agent',
154
154
  name: 'Voice Agent',
155
155
  instructions: 'You are a voice assistant that can help users with their tasks.',
156
- model: 'openai/gpt-5.6-sol',
156
+ model: 'openai/gpt-6.1-sol',
157
157
  voice: new CloudflareVoice(),
158
158
  })
159
159
 
@@ -180,7 +180,7 @@ const voiceAgent = new Agent({
180
180
  id: 'voice-agent',
181
181
  name: 'Voice Agent',
182
182
  instructions: 'You are a voice assistant that can help users with their tasks.',
183
- model: 'openai/gpt-5.6-sol',
183
+ model: 'openai/gpt-6.1-sol',
184
184
  voice: new DeepgramVoice(),
185
185
  })
186
186
 
@@ -207,7 +207,7 @@ const voiceAgent = new Agent({
207
207
  id: 'voice-agent',
208
208
  name: 'Voice Agent',
209
209
  instructions: 'You are a voice assistant that can help users with their tasks.',
210
- model: 'openai/gpt-5.6-sol',
210
+ model: 'openai/gpt-6.1-sol',
211
211
  voice: new InworldVoice(),
212
212
  })
213
213
 
@@ -234,7 +234,7 @@ const voiceAgent = new Agent({
234
234
  id: 'voice-agent',
235
235
  name: 'Voice Agent',
236
236
  instructions: 'You are a voice assistant that can help users with their tasks.',
237
- model: 'openai/gpt-5.6-sol',
237
+ model: 'openai/gpt-6.1-sol',
238
238
  voice: new SpeechifyVoice(),
239
239
  })
240
240
 
@@ -261,7 +261,7 @@ const voiceAgent = new Agent({
261
261
  id: 'voice-agent',
262
262
  name: 'Voice Agent',
263
263
  instructions: 'You are a voice assistant that can help users with their tasks.',
264
- model: 'openai/gpt-5.6-sol',
264
+ model: 'openai/gpt-6.1-sol',
265
265
  voice: new SarvamVoice(),
266
266
  })
267
267
 
@@ -288,7 +288,7 @@ const voiceAgent = new Agent({
288
288
  id: 'voice-agent',
289
289
  name: 'Voice Agent',
290
290
  instructions: 'You are a voice assistant that can help users with their tasks.',
291
- model: 'openai/gpt-5.6-sol',
291
+ model: 'openai/gpt-6.1-sol',
292
292
  voice: new MurfVoice(),
293
293
  })
294
294
 
@@ -323,7 +323,7 @@ const voiceAgent = new Agent({
323
323
  id: 'voice-agent',
324
324
  name: 'Voice Agent',
325
325
  instructions: 'You are a voice assistant that can help users with their tasks.',
326
- model: 'openai/gpt-5.6-sol',
326
+ model: 'openai/gpt-6.1-sol',
327
327
  voice: new OpenAIVoice(),
328
328
  })
329
329
 
@@ -352,7 +352,7 @@ const voiceAgent = new Agent({
352
352
  id: 'voice-agent',
353
353
  name: 'Voice Agent',
354
354
  instructions: 'You are a voice assistant that can help users with their tasks.',
355
- model: 'openai/gpt-5.6-sol',
355
+ model: 'openai/gpt-6.1-sol',
356
356
  voice: new AzureVoice(),
357
357
  })
358
358
 
@@ -380,7 +380,7 @@ const voiceAgent = new Agent({
380
380
  id: 'voice-agent',
381
381
  name: 'Voice Agent',
382
382
  instructions: 'You are a voice assistant that can help users with their tasks.',
383
- model: 'openai/gpt-5.6-sol',
383
+ model: 'openai/gpt-6.1-sol',
384
384
  voice: new ElevenLabsVoice(),
385
385
  })
386
386
 
@@ -408,7 +408,7 @@ const voiceAgent = new Agent({
408
408
  id: 'voice-agent',
409
409
  name: 'Voice Agent',
410
410
  instructions: 'You are a voice assistant that can help users with their tasks.',
411
- model: 'openai/gpt-5.6-sol',
411
+ model: 'openai/gpt-6.1-sol',
412
412
  voice: new GoogleVoice(),
413
413
  })
414
414
 
@@ -436,7 +436,7 @@ const voiceAgent = new Agent({
436
436
  id: 'voice-agent',
437
437
  name: 'Voice Agent',
438
438
  instructions: 'You are a voice assistant that can help users with their tasks.',
439
- model: 'openai/gpt-5.6-sol',
439
+ model: 'openai/gpt-6.1-sol',
440
440
  voice: new CloudflareVoice(),
441
441
  })
442
442
 
@@ -464,7 +464,7 @@ const voiceAgent = new Agent({
464
464
  id: 'voice-agent',
465
465
  name: 'Voice Agent',
466
466
  instructions: 'You are a voice assistant that can help users with their tasks.',
467
- model: 'openai/gpt-5.6-sol',
467
+ model: 'openai/gpt-6.1-sol',
468
468
  voice: new DeepgramVoice(),
469
469
  })
470
470
 
@@ -492,7 +492,7 @@ const voiceAgent = new Agent({
492
492
  id: 'voice-agent',
493
493
  name: 'Voice Agent',
494
494
  instructions: 'You are a voice assistant that can help users with their tasks.',
495
- model: 'openai/gpt-5.6-sol',
495
+ model: 'openai/gpt-6.1-sol',
496
496
  voice: new InworldVoice(),
497
497
  })
498
498
 
@@ -520,7 +520,7 @@ const voiceAgent = new Agent({
520
520
  id: 'voice-agent',
521
521
  name: 'Voice Agent',
522
522
  instructions: 'You are a voice assistant that can help users with their tasks.',
523
- model: 'openai/gpt-5.6-sol',
523
+ model: 'openai/gpt-6.1-sol',
524
524
  voice: new SarvamVoice(),
525
525
  })
526
526
 
@@ -552,7 +552,7 @@ const voiceAgent = new Agent({
552
552
  id: 'voice-agent',
553
553
  name: 'Voice Agent',
554
554
  instructions: 'You are a voice assistant that can help users with their tasks.',
555
- model: 'openai/gpt-5.6-sol',
555
+ model: 'openai/gpt-6.1-sol',
556
556
  voice: new OpenAIRealtimeVoice(),
557
557
  })
558
558
 
@@ -582,7 +582,7 @@ const voiceAgent = new Agent({
582
582
  id: 'voice-agent',
583
583
  name: 'Voice Agent',
584
584
  instructions: 'You are a voice assistant that can help users with their tasks.',
585
- model: 'openai/gpt-5.6-sol',
585
+ model: 'openai/gpt-6.1-sol',
586
586
  voice: new GeminiLiveVoice({
587
587
  // Live API mode
588
588
  apiKey: process.env.GOOGLE_API_KEY,
@@ -631,7 +631,7 @@ const voiceAgent = new Agent({
631
631
  id: 'voice-agent',
632
632
  name: 'Voice Agent',
633
633
  instructions: 'You are a voice assistant that can help users with their tasks.',
634
- model: 'openai/gpt-5.6-sol',
634
+ model: 'openai/gpt-6.1-sol',
635
635
  voice: new NovaSonicVoice({
636
636
  region: 'us-east-1',
637
637
  speaker: 'matthew',
@@ -674,7 +674,7 @@ const voiceAgent = new Agent({
674
674
  id: 'voice-agent',
675
675
  name: 'Voice Agent',
676
676
  instructions: 'You are a voice assistant that can help users with their tasks.',
677
- model: 'openai/gpt-5.6-sol',
677
+ model: 'openai/gpt-6.1-sol',
678
678
  voice: new InworldRealtimeVoice({
679
679
  apiKey: process.env.INWORLD_API_KEY,
680
680
  model: 'inworld/models/gemma-4-26b-a4b-it',
@@ -1120,7 +1120,7 @@ const voiceAgent = new Agent({
1120
1120
  id: 'aisdk-voice-agent',
1121
1121
  name: 'AI SDK Voice Agent',
1122
1122
  instructions: 'You are a helpful assistant with voice capabilities.',
1123
- model: 'openai/gpt-5.6-sol',
1123
+ model: 'openai/gpt-6.1-sol',
1124
1124
  voice,
1125
1125
  })
1126
1126
  ```
package/dist/index.cjs CHANGED
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let stream = require("stream");
3
3
  let _google_cloud_speech = require("@google-cloud/speech");
4
4
  let _google_cloud_text_to_speech = require("@google-cloud/text-to-speech");
5
- //#region ../../packages/_internal-core/dist/logger/index.js
5
+ // ../../packages/_internal-core/dist/logger/index.js
6
6
  /**
7
7
  * Export a tracked exception through the adapter sink, mirroring the
8
8
  * DualLogger dual-write shape (`errorId`/`domain`/`category`/`details`/`cause`
@@ -235,8 +235,7 @@ var ConsoleLogger = class ConsoleLogger extends MastraLogger {
235
235
  };
236
236
  }
237
237
  };
238
- //#endregion
239
- //#region ../../packages/_internal-core/dist/base/index.js
238
+ // ../../packages/_internal-core/dist/base/index.js
240
239
  var MastraBase = class {
241
240
  component = RegisteredLogger.LLM;
242
241
  logger;
@@ -270,8 +269,7 @@ var MastraBase = class {
270
269
  this.logger = "child" in logger && typeof logger.child === "function" ? logger.child({ component: this.component }) : logger;
271
270
  }
272
271
  };
273
- //#endregion
274
- //#region ../../packages/_internals/voice/dist/aisdk-C_K-VCwq.js
272
+ // ../../packages/_internals/voice/dist/aisdk-c08VRfTf.js
275
273
  var MastraVoice = class extends MastraBase {
276
274
  listeningModel;
277
275
  speechModel;
@@ -375,8 +373,7 @@ var MastraVoice = class extends MastraBase {
375
373
  return Promise.resolve({ enabled: false });
376
374
  }
377
375
  };
378
- //#endregion
379
- //#region src/index.ts
376
+ // src/index.ts
380
377
  const resolveAuthConfig = (modelConfig, fallback, vertexConfig) => {
381
378
  const resolved = {};
382
379
  if (vertexConfig?.vertexAI) {
@@ -535,9 +532,9 @@ var GoogleVoice = class extends MastraVoice {
535
532
  languageCodes: voice.languageCodes
536
533
  }));
537
534
  }
538
- async streamToString(stream$1) {
535
+ async streamToString(stream) {
539
536
  const chunks = [];
540
- for await (const chunk of stream$1) if (typeof chunk === "string") chunks.push(Buffer.from(chunk));
537
+ for await (const chunk of stream) if (typeof chunk === "string") chunks.push(Buffer.from(chunk));
541
538
  else chunks.push(chunk);
542
539
  return Buffer.concat(chunks).toString("utf-8");
543
540
  }
@@ -570,9 +567,9 @@ var GoogleVoice = class extends MastraVoice {
570
567
  const [response] = await this.ttsClient.synthesizeSpeech(request);
571
568
  if (!response.audioContent) throw new Error("No audio content returned.");
572
569
  if (typeof response.audioContent === "string") throw new Error("Audio content is a string.");
573
- const stream$2 = new stream.PassThrough();
574
- stream$2.end(Buffer.from(response.audioContent));
575
- return stream$2;
570
+ const stream$1 = new stream.PassThrough();
571
+ stream$1.end(Buffer.from(response.audioContent));
572
+ return stream$1;
576
573
  }
577
574
  /**
578
575
  * Checks if listening capabilities are enabled.
@@ -638,7 +635,6 @@ var GoogleVoice = class extends MastraVoice {
638
635
  return transcription;
639
636
  }
640
637
  };
641
- //#endregion
642
638
  exports.GoogleVoice = GoogleVoice;
643
639
 
644
640
  //# sourceMappingURL=index.cjs.map