File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
packages/agents-realtime/src Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @openai/agents-realtime ' : patch
3+ ---
4+
5+ Adds support for the speed parameter
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ export type RealtimeSessionConfig = {
8383 tools : FunctionToolDefinition [ ] ;
8484 tracing ?: RealtimeTracingConfig | null ;
8585 providerData ?: Record < string , any > ;
86+ speed : number ;
8687} ;
8788
8889export type FunctionToolDefinition = {
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ export const DEFAULT_OPENAI_REALTIME_SESSION_CONFIG: Partial<RealtimeSessionConf
6565 turnDetection : {
6666 type : 'semantic_vad' ,
6767 } ,
68+ speed : 1 ,
6869 } ;
6970
7071/**
@@ -380,6 +381,7 @@ export abstract class OpenAIRealtimeBase
380381 this . #model ??
381382 DEFAULT_OPENAI_REALTIME_SESSION_CONFIG . model ,
382383 voice : config . voice ?? DEFAULT_OPENAI_REALTIME_SESSION_CONFIG . voice ,
384+ speed : config . speed ?? DEFAULT_OPENAI_REALTIME_SESSION_CONFIG . speed ,
383385 modalities :
384386 config . modalities ?? DEFAULT_OPENAI_REALTIME_SESSION_CONFIG . modalities ,
385387 input_audio_format :
You can’t perform that action at this time.
0 commit comments