Skip to content

Commit d8e1815

Browse files
committed
Comment
1 parent ca1466e commit d8e1815

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

  • services/openai-dialog/src

services/openai-dialog/src/lib.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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(),

0 commit comments

Comments
 (0)