File tree Expand file tree Collapse file tree
services/openai-dialog/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -590,9 +590,14 @@ impl Client {
590590 }
591591 } ;
592592 output. service_event (
593- // We send out the function call via the media path. For example if
594- // we use a prompt to initiate a function call, this might overtake
595- // currently pending audio output.
593+ // Send the function call via the media path.
594+ //
595+ // This means that audio scheduled before will finish playing before
596+ // the client receives the event to execute the function call.
597+ //
598+ // For example if we use a prompt to initiate a function call, it
599+ // might overtake currently pending audio output and an answer
600+ // before the participant even heard the audio.
596601 OutputPath :: Media ,
597602 ServiceOutputEvent :: FunctionCall {
598603 name : name. clone ( ) ,
You can’t perform that action at this time.
0 commit comments