wip
This commit is contained in:
parent
96d10c3df0
commit
953fb3aff1
12
src/phone.ts
12
src/phone.ts
|
|
@ -271,14 +271,10 @@ const handleAgentEvents = (
|
||||||
break
|
break
|
||||||
|
|
||||||
case "interruption":
|
case "interruption":
|
||||||
if (waitingIndicator.isPlaying) {
|
log("🤖 User interrupted")
|
||||||
log("🤖 User interrupted but doing a tool lookup")
|
await waitingIndicator.stop()
|
||||||
} else {
|
streamPlayback?.stop()
|
||||||
log("🤖 User interrupted")
|
streamPlayback = player.playStream() // Reset playback stream
|
||||||
await waitingIndicator.stop()
|
|
||||||
streamPlayback?.stop()
|
|
||||||
streamPlayback = player.playStream() // Reset playback stream
|
|
||||||
}
|
|
||||||
break
|
break
|
||||||
|
|
||||||
case "tool_call":
|
case "tool_call":
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ export class WaitingSounds {
|
||||||
}
|
}
|
||||||
|
|
||||||
async stop() {
|
async stop() {
|
||||||
log(`🛑 Stopping waiting sounds. Has typingPlayback: ${!!this.typingPlayback}`)
|
log(`🛑 Stopping waiting sounds. Playing? ${this.playing}`)
|
||||||
if (!this.playing) return
|
if (!this.playing) return
|
||||||
this.playing = false
|
this.playing = false
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user