Skip to content

Commit 759b00f

Browse files
jpvajdanaomi-lgbt
andcommitted
Update README.md
Co-authored-by: Naomi <commits@nhcarrigan.com>
1 parent 3a5e9b0 commit 759b00f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,12 +433,12 @@ agent.on(AgentEvents.Open, () => {
433433
});
434434

435435
// Handle agent responses
436-
agent.on(AgentEvents.Speech, (speech) => {
437-
console.log("Agent is speaking:", speech);
436+
agent.on(AgentEvents.AgentStartedSpeaking, (data) => {
437+
console.log("Agent started speaking:", data["total_latency"]);
438438
});
439439

440-
agent.on(AgentEvents.Transcript, (transcript) => {
441-
console.log("User said:", transcript);
440+
agent.on(AgentEvents.ConversationText, (message) => {
441+
console.log(`${message.role} said: ${message.content}`);
442442
});
443443

444444
agent.on(AgentEvents.Audio, (audio) => {

0 commit comments

Comments
 (0)