@@ -102,6 +102,7 @@ export interface Session {
102
102
| 'gpt-4o-realtime-preview'
103
103
| 'gpt-4o-realtime-preview-2024-10-01'
104
104
| 'gpt-4o-realtime-preview-2024-12-17'
105
+ | 'gpt-4o-realtime-preview-2025-06-03'
105
106
| 'gpt-4o-mini-realtime-preview'
106
107
| 'gpt-4o-mini-realtime-preview-2024-12-17' ;
107
108
@@ -111,6 +112,13 @@ export interface Session {
111
112
*/
112
113
output_audio_format ?: 'pcm16' | 'g711_ulaw' | 'g711_alaw' ;
113
114
115
+ /**
116
+ * The speed of the model's spoken response. 1.0 is the default speed. 0.25 is the
117
+ * minimum speed. 1.5 is the maximum speed. This value can only be changed in
118
+ * between model turns, not while a response is in progress.
119
+ */
120
+ speed ?: number ;
121
+
114
122
/**
115
123
* Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a
116
124
* temperature of 0.8 is highly recommended for best performance.
@@ -128,6 +136,15 @@ export interface Session {
128
136
*/
129
137
tools ?: Array < Session . Tool > ;
130
138
139
+ /**
140
+ * Configuration options for tracing. Set to null to disable tracing. Once tracing
141
+ * is enabled for a session, the configuration cannot be modified.
142
+ *
143
+ * `auto` will create a trace for the session with default values for the workflow
144
+ * name, group id, and metadata.
145
+ */
146
+ tracing ?: 'auto' | Session . UnionMember1 ;
147
+
131
148
/**
132
149
* Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
133
150
* set to `null` to turn off, in which case the client must manually trigger model
@@ -145,7 +162,8 @@ export interface Session {
145
162
/**
146
163
* The voice the model uses to respond. Voice cannot be changed during the session
147
164
* once the model has responded with audio at least once. Current voice options are
148
- * `alloy`, `ash`, `ballad`, `coral`, `echo` `sage`, `shimmer` and `verse`.
165
+ * `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`,
166
+ * `shimmer`, and `verse`.
149
167
*/
150
168
voice ?:
151
169
| ( string & { } )
@@ -236,6 +254,29 @@ export namespace Session {
236
254
type ?: 'function' ;
237
255
}
238
256
257
+ /**
258
+ * Granular configuration for tracing.
259
+ */
260
+ export interface UnionMember1 {
261
+ /**
262
+ * The group id to attach to this trace to enable filtering and grouping in the
263
+ * traces dashboard.
264
+ */
265
+ group_id ?: string ;
266
+
267
+ /**
268
+ * The arbitrary metadata to attach to this trace to enable filtering in the traces
269
+ * dashboard.
270
+ */
271
+ metadata ?: unknown ;
272
+
273
+ /**
274
+ * The name of the workflow to attach to this trace. This is used to name the trace
275
+ * in the traces dashboard.
276
+ */
277
+ workflow_name ?: string ;
278
+ }
279
+
239
280
/**
240
281
* Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
241
282
* set to `null` to turn off, in which case the client must manually trigger model
@@ -353,6 +394,13 @@ export interface SessionCreateResponse {
353
394
*/
354
395
output_audio_format ?: string ;
355
396
397
+ /**
398
+ * The speed of the model's spoken response. 1.0 is the default speed. 0.25 is the
399
+ * minimum speed. 1.5 is the maximum speed. This value can only be changed in
400
+ * between model turns, not while a response is in progress.
401
+ */
402
+ speed ?: number ;
403
+
356
404
/**
357
405
* Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8.
358
406
*/
@@ -369,6 +417,15 @@ export interface SessionCreateResponse {
369
417
*/
370
418
tools ?: Array < SessionCreateResponse . Tool > ;
371
419
420
+ /**
421
+ * Configuration options for tracing. Set to null to disable tracing. Once tracing
422
+ * is enabled for a session, the configuration cannot be modified.
423
+ *
424
+ * `auto` will create a trace for the session with default values for the workflow
425
+ * name, group id, and metadata.
426
+ */
427
+ tracing ?: 'auto' | SessionCreateResponse . UnionMember1 ;
428
+
372
429
/**
373
430
* Configuration for turn detection. Can be set to `null` to turn off. Server VAD
374
431
* means that the model will detect the start and end of speech based on audio
@@ -453,6 +510,29 @@ export namespace SessionCreateResponse {
453
510
type ?: 'function' ;
454
511
}
455
512
513
+ /**
514
+ * Granular configuration for tracing.
515
+ */
516
+ export interface UnionMember1 {
517
+ /**
518
+ * The group id to attach to this trace to enable filtering and grouping in the
519
+ * traces dashboard.
520
+ */
521
+ group_id ?: string ;
522
+
523
+ /**
524
+ * The arbitrary metadata to attach to this trace to enable filtering in the traces
525
+ * dashboard.
526
+ */
527
+ metadata ?: unknown ;
528
+
529
+ /**
530
+ * The name of the workflow to attach to this trace. This is used to name the trace
531
+ * in the traces dashboard.
532
+ */
533
+ workflow_name ?: string ;
534
+ }
535
+
456
536
/**
457
537
* Configuration for turn detection. Can be set to `null` to turn off. Server VAD
458
538
* means that the model will detect the start and end of speech based on audio
@@ -555,6 +635,7 @@ export interface SessionCreateParams {
555
635
| 'gpt-4o-realtime-preview'
556
636
| 'gpt-4o-realtime-preview-2024-10-01'
557
637
| 'gpt-4o-realtime-preview-2024-12-17'
638
+ | 'gpt-4o-realtime-preview-2025-06-03'
558
639
| 'gpt-4o-mini-realtime-preview'
559
640
| 'gpt-4o-mini-realtime-preview-2024-12-17' ;
560
641
@@ -564,6 +645,13 @@ export interface SessionCreateParams {
564
645
*/
565
646
output_audio_format ?: 'pcm16' | 'g711_ulaw' | 'g711_alaw' ;
566
647
648
+ /**
649
+ * The speed of the model's spoken response. 1.0 is the default speed. 0.25 is the
650
+ * minimum speed. 1.5 is the maximum speed. This value can only be changed in
651
+ * between model turns, not while a response is in progress.
652
+ */
653
+ speed ?: number ;
654
+
567
655
/**
568
656
* Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a
569
657
* temperature of 0.8 is highly recommended for best performance.
@@ -581,6 +669,15 @@ export interface SessionCreateParams {
581
669
*/
582
670
tools ?: Array < SessionCreateParams . Tool > ;
583
671
672
+ /**
673
+ * Configuration options for tracing. Set to null to disable tracing. Once tracing
674
+ * is enabled for a session, the configuration cannot be modified.
675
+ *
676
+ * `auto` will create a trace for the session with default values for the workflow
677
+ * name, group id, and metadata.
678
+ */
679
+ tracing ?: 'auto' | SessionCreateParams . UnionMember1 ;
680
+
584
681
/**
585
682
* Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
586
683
* set to `null` to turn off, in which case the client must manually trigger model
@@ -719,6 +816,29 @@ export namespace SessionCreateParams {
719
816
type ?: 'function' ;
720
817
}
721
818
819
+ /**
820
+ * Granular configuration for tracing.
821
+ */
822
+ export interface UnionMember1 {
823
+ /**
824
+ * The group id to attach to this trace to enable filtering and grouping in the
825
+ * traces dashboard.
826
+ */
827
+ group_id ?: string ;
828
+
829
+ /**
830
+ * The arbitrary metadata to attach to this trace to enable filtering in the traces
831
+ * dashboard.
832
+ */
833
+ metadata ?: unknown ;
834
+
835
+ /**
836
+ * The name of the workflow to attach to this trace. This is used to name the trace
837
+ * in the traces dashboard.
838
+ */
839
+ workflow_name ?: string ;
840
+ }
841
+
722
842
/**
723
843
* Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
724
844
* set to `null` to turn off, in which case the client must manually trigger model
0 commit comments