Skip to content

Instantly share code, notes, and snippets.

@himanshu-dixit
Created February 16, 2024 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save himanshu-dixit/d3613004b4ad2331ff1c3eaded057a0f to your computer and use it in GitHub Desktop.
Save himanshu-dixit/d3613004b4ad2331ff1c3eaded057a0f to your computer and use it in GitHub Desktop.
[2024-02-16 15:32:57.140 IST] INFO Moving status to processing from initiated {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "127659000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "127659000"
}
[2024-02-16 15:32:57.140 IST] INFO Moving status to done from processing {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "127659000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "127659000"
}
[2024-02-16 15:32:57.140 IST] INFO Closing audio output channel {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "127659000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "127659000"
}
[2024-02-16 15:32:57.140 IST] INFO Stats: Immediate LLM Initiated time is zero so not proceeding {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "127659000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "127659000"
}
[2024-02-16 15:32:57.140 IST] INFO Sending first packet {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","id":"127659000","phoneNumber":"+916376004208"}
[2024-02-16 15:32:57.140 IST] INFO Everything that is supposed to be spoken from Response Generator has been sent {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","id":"127659000","phoneNumber":"+916376004208"}
[2024-02-16 15:32:57.141 IST] INFO Waiting for state {
"botStateStr": "listening",
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"humanStateStr": "\u003cnil\u003e",
"phoneNumber": "+916376004208",
"reason": "Waiting to process the next response generator and this response generator has been marked as completed"
}
[2024-02-16 15:32:57.141 IST] INFO Desired state not reached {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"currentBotState": "speaking",
"currentHumanState": "active",
"phoneNumber": "+916376004208",
"reason": "Waiting to process the next response generator and this response generator has been marked as completed"
}
[2024-02-16 15:32:59.489 IST] INFO [2024-02-16T15:32:59+05:30] Transcription: hey, Message Results isFinal true SpeechFinal true {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:32:59.489 IST] INFO Processing Transcription : {
"Message: ": "hey",
"Status": 1,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"phoneNumber": "+916376004208",
"source": "outbound"
}
[2024-02-16 15:32:59.489 IST] INFO Processed Transcription : {
"Message: ": "hey",
"Status": 1,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"phoneNumber": "+916376004208",
"source": "outbound"
}
[2024-02-16 15:33:00.222 IST] INFO [2024-02-16T15:33:00+05:30] Transcription: my name is, Message Results isFinal false SpeechFinal false {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:00.222 IST] INFO Processing Transcription : {
"Message: ": "my name is",
"Status": 0,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"phoneNumber": "+916376004208",
"source": "outbound"
}
[2024-02-16 15:33:00.222 IST] INFO Processed Transcription : {
"Message: ": "my name is",
"Status": 0,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"phoneNumber": "+916376004208",
"source": "outbound"
}
[2024-02-16 15:33:00.273 IST] INFO Received mark event {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","mark":"127659000"}
[2024-02-16 15:33:00.273 IST] INFO Response spoken out, changing state to listening {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","id":"127659000"}
[2024-02-16 15:33:00.273 IST] INFO Response generator has been cancelled {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "127659000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "127659000"
}
[2024-02-16 15:33:00.273 IST] INFO Bot is Starting to listen and Stopping to Speak {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:00.273 IST] INFO Sending clear event {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:00.273 IST] INFO Desired state reached {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"currentBotState": "listening",
"currentHumanState": "active",
"phoneNumber": "+916376004208",
"reason": "Waiting to process the next response generator and this response generator has been marked as completed"
}
[2024-02-16 15:33:00.273 IST] INFO Response generator context cancelled after audio was sent. {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","id":"127659000","phoneNumber":"+916376004208"}
[2024-02-16 15:33:00.273 IST] INFO Exiting the speaking state {
"Reason": "Audio sent",
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "127659000",
"phoneNumber": "+916376004208"
}
[2024-02-16 15:33:00.273 IST] INFO Waiting for state {
"botStateStr": "speaking",
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"humanStateStr": "\u003cnil\u003e",
"phoneNumber": "+916376004208",
"reason": "Waiting for speaking state to process media output"
}
[2024-02-16 15:33:00.273 IST] INFO Desired state not reached {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"currentBotState": "listening",
"currentHumanState": "active",
"phoneNumber": "+916376004208",
"reason": "Waiting for speaking state to process media output"
}
[2024-02-16 15:33:01.034 IST] INFO [2024-02-16T15:33:01+05:30] Transcription: my name is testable and check what's going, Message Results isFinal false SpeechFinal false {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:01.034 IST] INFO Processing Transcription : {
"Message: ": "my name is testable and check what's going",
"Status": 0,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"phoneNumber": "+916376004208",
"source": "outbound"
}
[2024-02-16 15:33:01.034 IST] INFO Processed Transcription : {
"Message: ": "my name is testable and check what's going",
"Status": 0,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"phoneNumber": "+916376004208",
"source": "outbound"
}
[2024-02-16 15:33:01.425 IST] INFO [2024-02-16T15:33:01+05:30] Transcription: my name is testable and check what's going wrong, Message Results isFinal true SpeechFinal true {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:01.425 IST] INFO Processing Transcription : {
"Message: ": "my name is testable and check what's going wrong",
"Status": 1,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"phoneNumber": "+916376004208",
"source": "outbound"
}
[2024-02-16 15:33:01.425 IST] INFO Processed Transcription : {
"Message: ": "my name is testable and check what's going wrong",
"Status": 1,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"phoneNumber": "+916376004208",
"source": "outbound"
}
[2024-02-16 15:33:02.128 IST] INFO No new transcription received, prompting user again. {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:02.128 IST] INFO User not speaking, asking again {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:02.128 IST] INFO Starting to speak introduction {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:02.128 IST] INFO Starting to process audio only for introduction {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:02.128 IST] INFO Changing internal state to speaking {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:02.128 IST] INFO Moving status to initiated from created {
"ResponseSpeed": true,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000"
}
[2024-02-16 15:33:02.128 IST] INFO Moving status to initiated from created {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000"
}
[2024-02-16 15:33:02.128 IST] INFO Moving LLM status to initiated from created {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000"
}
[2024-02-16 15:33:02.128 IST] INFO Moving LLM status to processing from initiated {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000"
}
[2024-02-16 15:33:02.128 IST] INFO Moving LLM status to done from processing {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000"
}
[2024-02-16 15:33:02.129 IST] INFO Desired state reached {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"currentBotState": "speaking",
"currentHumanState": "active",
"phoneNumber": "+916376004208",
"reason": "Waiting for speaking state to process media output"
}
[2024-02-16 15:33:02.129 IST] INFO Speaking has been set and relaying the audio output {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:02.129 IST] INFO Response generator is not nil, will send response {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"conversation": [
{
"content": "hey my name is testable and check what's going wrong\n",
"role": "assistant"
}
],
"id": "128502000",
"phoneNumber": "+916376004208"
}
[2024-02-16 15:33:02.129 IST] INFO Processing of sentence for TTS started {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000"
}
[2024-02-16 15:33:02.129 IST] INFO Moving TTS status to initiated from created {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000"
}
[2024-02-16 15:33:02.129 IST] INFO Received sentence {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000",
"sentence": "Are you there?"
}
[2024-02-16 15:33:02.129 IST] INFO Sending sentence to TTS {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000",
"sentence": "Are you there?"
}
[2024-02-16 15:33:02.129 IST] INFO Started converting text to audio {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208","text":"Are you there?"}
[2024-02-16 15:33:02.131 IST] INFO Cache hit for text {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","key":"9d83ff719dded6f2099bffed51853f4c927ff8c2dab5622f604669292b485d1c:rlDqmoZDpyhbwukbf6lX:eleven_turbo_v2:false","phoneNumber":"+916376004208"}
[2024-02-16 15:33:02.131 IST] INFO Sentences channel closed, exiting {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000"
}
[2024-02-16 15:33:02.131 IST] INFO Moving TTS status to processing from initiated {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000"
}
[2024-02-16 15:33:02.131 IST] INFO Audio Processing Done for sentence {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000",
"sentence": "Are you there?"
}
[2024-02-16 15:33:02.131 IST] INFO Audio Processing Done for all sentences {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000"
}
[2024-02-16 15:33:02.131 IST] INFO Moving TTS status to done from processing {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000"
}
[2024-02-16 15:33:02.132 IST] INFO Sending First Audio Chunk to Output {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000"
}
[2024-02-16 15:33:02.132 IST] INFO Waiting for immediate response to be initiated {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000"
}
[2024-02-16 15:33:02.132 IST] INFO Immediate response initiated {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000"
}
[2024-02-16 15:33:02.132 IST] INFO Moving status to processing from initiated {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000"
}
[2024-02-16 15:33:02.132 IST] INFO Moving status to done from processing {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000"
}
[2024-02-16 15:33:02.132 IST] INFO Closing audio output channel {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000"
}
[2024-02-16 15:33:02.132 IST] INFO Stats: Immediate LLM Initiated time is zero so not proceeding {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000"
}
[2024-02-16 15:33:02.132 IST] INFO Sending first packet {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","id":"128502000","phoneNumber":"+916376004208"}
[2024-02-16 15:33:02.132 IST] INFO Everything that is supposed to be spoken from Response Generator has been sent {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","id":"128502000","phoneNumber":"+916376004208"}
[2024-02-16 15:33:02.132 IST] INFO Waiting for state {
"botStateStr": "listening",
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"humanStateStr": "\u003cnil\u003e",
"phoneNumber": "+916376004208",
"reason": "Waiting to process the next response generator and this response generator has been marked as completed"
}
[2024-02-16 15:33:02.132 IST] INFO Desired state not reached {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"currentBotState": "speaking",
"currentHumanState": "active",
"phoneNumber": "+916376004208",
"reason": "Waiting to process the next response generator and this response generator has been marked as completed"
}
[2024-02-16 15:33:03.212 IST] INFO Received mark event {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","mark":"128502000"}
[2024-02-16 15:33:03.212 IST] INFO Response spoken out, changing state to listening {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","id":"128502000"}
[2024-02-16 15:33:03.212 IST] INFO Response generator has been cancelled {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "128502000"
}
[2024-02-16 15:33:03.212 IST] INFO Bot is Starting to listen and Stopping to Speak {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:03.212 IST] INFO Sending clear event {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:03.212 IST] INFO Desired state reached {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"currentBotState": "listening",
"currentHumanState": "active",
"phoneNumber": "+916376004208",
"reason": "Waiting to process the next response generator and this response generator has been marked as completed"
}
[2024-02-16 15:33:03.212 IST] INFO Response generator context cancelled after audio was sent. {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","id":"128502000","phoneNumber":"+916376004208"}
[2024-02-16 15:33:03.212 IST] INFO Exiting the speaking state {
"Reason": "Audio sent",
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "128502000",
"phoneNumber": "+916376004208"
}
[2024-02-16 15:33:03.212 IST] INFO Waiting for state {
"botStateStr": "speaking",
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"humanStateStr": "\u003cnil\u003e",
"phoneNumber": "+916376004208",
"reason": "Waiting for speaking state to process media output"
}
[2024-02-16 15:33:03.212 IST] INFO Desired state not reached {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"currentBotState": "listening",
"currentHumanState": "active",
"phoneNumber": "+916376004208",
"reason": "Waiting for speaking state to process media output"
}
[2024-02-16 15:33:03.763 IST] INFO [2024-02-16T15:33:03+05:30] Transcription: are you there, Message Results isFinal true SpeechFinal true {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:03.763 IST] INFO Processing Transcription : {
"Message: ": "are you there",
"Status": 1,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"phoneNumber": "+916376004208",
"source": "outbound"
}
[2024-02-16 15:33:03.763 IST] INFO Processed Transcription : {
"Message: ": "are you there",
"Status": 1,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"phoneNumber": "+916376004208",
"source": "outbound"
}
[2024-02-16 15:33:07.129 IST] INFO No new transcription received, prompting user again. {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:07.129 IST] INFO User not speaking, asking again {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:07.130 IST] INFO Starting to speak introduction {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:07.130 IST] INFO Starting to process audio only for introduction {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:07.130 IST] INFO Changing internal state to speaking {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:07.130 IST] INFO Moving status to initiated from created {
"ResponseSpeed": true,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000"
}
[2024-02-16 15:33:07.130 IST] INFO Moving status to initiated from created {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000"
}
[2024-02-16 15:33:07.130 IST] INFO Moving LLM status to initiated from created {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000"
}
[2024-02-16 15:33:07.130 IST] INFO Moving LLM status to processing from initiated {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000"
}
[2024-02-16 15:33:07.130 IST] INFO Moving LLM status to done from processing {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000"
}
[2024-02-16 15:33:07.130 IST] INFO Desired state reached {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"currentBotState": "speaking",
"currentHumanState": "active",
"phoneNumber": "+916376004208",
"reason": "Waiting for speaking state to process media output"
}
[2024-02-16 15:33:07.130 IST] INFO Speaking has been set and relaying the audio output {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:07.130 IST] INFO Response generator is not nil, will send response {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"conversation": [
{
"content": "hey my name is testable and check what's going wrong are you there\n",
"role": "assistant"
}
],
"id": "130073000",
"phoneNumber": "+916376004208"
}
[2024-02-16 15:33:07.130 IST] INFO Processing of sentence for TTS started {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000"
}
[2024-02-16 15:33:07.130 IST] INFO Moving TTS status to initiated from created {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000"
}
[2024-02-16 15:33:07.130 IST] INFO Received sentence {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000",
"sentence": "I can't hear you."
}
[2024-02-16 15:33:07.130 IST] INFO Sending sentence to TTS {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000",
"sentence": "I can't hear you."
}
[2024-02-16 15:33:07.130 IST] INFO Started converting text to audio {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208","text":"I can't hear you."}
[2024-02-16 15:33:07.132 IST] INFO Cache hit for text {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","key":"4473f6ef9a5acb9d1cd33b6d3d9d5fd25a237e12fcd9445afd8f7b74416239c6:rlDqmoZDpyhbwukbf6lX:eleven_turbo_v2:false","phoneNumber":"+916376004208"}
[2024-02-16 15:33:07.132 IST] INFO Sentences channel closed, exiting {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000"
}
[2024-02-16 15:33:07.132 IST] INFO Moving TTS status to processing from initiated {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000"
}
[2024-02-16 15:33:07.132 IST] INFO Audio Processing Done for sentence {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000",
"sentence": "I can't hear you."
}
[2024-02-16 15:33:07.132 IST] INFO Audio Processing Done for all sentences {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000"
}
[2024-02-16 15:33:07.132 IST] INFO Moving TTS status to done from processing {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000"
}
[2024-02-16 15:33:07.132 IST] INFO Sending First Audio Chunk to Output {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000"
}
[2024-02-16 15:33:07.132 IST] INFO Waiting for immediate response to be initiated {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000"
}
[2024-02-16 15:33:07.132 IST] INFO Immediate response initiated {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000"
}
[2024-02-16 15:33:07.132 IST] INFO Moving status to processing from initiated {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000"
}
[2024-02-16 15:33:07.132 IST] INFO Moving status to done from processing {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000"
}
[2024-02-16 15:33:07.132 IST] INFO Closing audio output channel {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000"
}
[2024-02-16 15:33:07.132 IST] INFO Stats: Immediate LLM Initiated time is zero so not proceeding {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000"
}
[2024-02-16 15:33:07.132 IST] INFO Sending first packet {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","id":"130073000","phoneNumber":"+916376004208"}
[2024-02-16 15:33:07.133 IST] INFO Everything that is supposed to be spoken from Response Generator has been sent {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","id":"130073000","phoneNumber":"+916376004208"}
[2024-02-16 15:33:07.133 IST] INFO Waiting for state {
"botStateStr": "listening",
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"humanStateStr": "\u003cnil\u003e",
"phoneNumber": "+916376004208",
"reason": "Waiting to process the next response generator and this response generator has been marked as completed"
}
[2024-02-16 15:33:07.133 IST] INFO Desired state not reached {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"currentBotState": "speaking",
"currentHumanState": "active",
"phoneNumber": "+916376004208",
"reason": "Waiting to process the next response generator and this response generator has been marked as completed"
}
[2024-02-16 15:33:08.353 IST] INFO Received mark event {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","mark":"130073000"}
[2024-02-16 15:33:08.355 IST] INFO Response spoken out, changing state to listening {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","id":"130073000"}
[2024-02-16 15:33:08.355 IST] INFO Response generator has been cancelled {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "130073000"
}
[2024-02-16 15:33:08.355 IST] INFO Bot is Starting to listen and Stopping to Speak {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:08.355 IST] INFO Sending clear event {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:08.355 IST] INFO Desired state reached {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"currentBotState": "listening",
"currentHumanState": "active",
"phoneNumber": "+916376004208",
"reason": "Waiting to process the next response generator and this response generator has been marked as completed"
}
[2024-02-16 15:33:08.355 IST] INFO Response generator context cancelled after audio was sent. {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","id":"130073000","phoneNumber":"+916376004208"}
[2024-02-16 15:33:08.355 IST] INFO Exiting the speaking state {
"Reason": "Audio sent",
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "130073000",
"phoneNumber": "+916376004208"
}
[2024-02-16 15:33:08.355 IST] INFO Waiting for state {
"botStateStr": "speaking",
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"humanStateStr": "\u003cnil\u003e",
"phoneNumber": "+916376004208",
"reason": "Waiting for speaking state to process media output"
}
[2024-02-16 15:33:08.355 IST] INFO Desired state not reached {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"currentBotState": "listening",
"currentHumanState": "active",
"phoneNumber": "+916376004208",
"reason": "Waiting for speaking state to process media output"
}
[2024-02-16 15:33:08.714 IST] INFO [2024-02-16T15:33:08+05:30] Transcription: i can't hear you, Message Results isFinal false SpeechFinal false {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:08.714 IST] INFO Processing Transcription : {
"Message: ": "i can't hear you",
"Status": 0,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"phoneNumber": "+916376004208",
"source": "outbound"
}
[2024-02-16 15:33:08.715 IST] INFO Processed Transcription : {
"Message: ": "i can't hear you",
"Status": 0,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"phoneNumber": "+916376004208",
"source": "outbound"
}
[2024-02-16 15:33:08.785 IST] INFO [2024-02-16T15:33:08+05:30] Transcription: i can't hear you, Message Results isFinal true SpeechFinal true {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:08.785 IST] INFO Processing Transcription : {
"Message: ": "i can't hear you",
"Status": 1,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"phoneNumber": "+916376004208",
"source": "outbound"
}
[2024-02-16 15:33:08.786 IST] INFO Processed Transcription : {
"Message: ": "i can't hear you",
"Status": 1,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"phoneNumber": "+916376004208",
"source": "outbound"
}
[2024-02-16 15:33:12.128 IST] INFO Sending request to API {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208","url":"https://oai.hconeai.com/v1/chat/completions"}
[2024-02-16 15:33:12.128 IST] INFO Payload {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","payload":{"max_tokens":100,"messages":[{"content":"You are a expert conversationalist, and you are very good at identifying voicemails or real human conversations. Given a conversation, you can identify if it is a voicemail or a real human","role":"system"},{"content":"hey my name is testable and check what's going wrong are you there i can't hear you\n","role":"assistant"},{"content":"### User is still on call, Please continue the conversation from the last assistant message and it should look like a natural continuation. ###","role":"user"}],"model":"gpt-4-1106-preview","tool_choice":{"function":{"name":"identifyVoiceMail"},"type":"function"},"tools":[{"function":{"description":"Identify if the conversation is with a voicemail or a real human","name":"identifyVoiceMail","parameters":{"properties":{"isVoiceMail":{"description":"Whether the conversation is with a voicemail or not","type":"boolean"}},"required":["isVoiceMail"],"type":"object"}},"type":"function"}]},"phoneNumber":"+916376004208"}
[2024-02-16 15:33:12.131 IST] INFO No new transcription received, prompting user again. {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:12.131 IST] INFO User not speaking, asking again {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:12.131 IST] INFO Starting to speak introduction {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:12.131 IST] INFO Starting to process audio only for introduction {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:12.131 IST] INFO Changing internal state to speaking {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:12.132 IST] INFO Moving status to initiated from created {
"ResponseSpeed": true,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000"
}
[2024-02-16 15:33:12.132 IST] INFO Moving status to initiated from created {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000"
}
[2024-02-16 15:33:12.132 IST] INFO Moving LLM status to initiated from created {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000"
}
[2024-02-16 15:33:12.132 IST] INFO Moving LLM status to processing from initiated {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000"
}
[2024-02-16 15:33:12.132 IST] INFO Moving LLM status to done from processing {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000"
}
[2024-02-16 15:33:12.132 IST] INFO Desired state reached {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"currentBotState": "speaking",
"currentHumanState": "active",
"phoneNumber": "+916376004208",
"reason": "Waiting for speaking state to process media output"
}
[2024-02-16 15:33:12.132 IST] INFO Speaking has been set and relaying the audio output {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:12.132 IST] INFO Response generator is not nil, will send response {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"conversation": [
{
"content": "hey my name is testable and check what's going wrong are you there i can't hear you\n",
"role": "assistant"
}
],
"id": "131919000",
"phoneNumber": "+916376004208"
}
[2024-02-16 15:33:12.132 IST] INFO Processing of sentence for TTS started {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000"
}
[2024-02-16 15:33:12.132 IST] INFO Moving TTS status to initiated from created {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000"
}
[2024-02-16 15:33:12.132 IST] INFO Received sentence {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000",
"sentence": "I think we're having an issue, We'll connect later."
}
[2024-02-16 15:33:12.132 IST] INFO Sending sentence to TTS {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000",
"sentence": "I think we're having an issue, We'll connect later."
}
[2024-02-16 15:33:12.132 IST] INFO Started converting text to audio {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208","text":"I think we're having an issue, We'll connect later."}
[2024-02-16 15:33:12.135 IST] INFO Cache hit for text {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","key":"a5c00ddc18f1f24abe18b85e48bb045119a9c96a66b05872e81c5c294fdc891a:rlDqmoZDpyhbwukbf6lX:eleven_turbo_v2:false","phoneNumber":"+916376004208"}
[2024-02-16 15:33:12.135 IST] INFO Sentences channel closed, exiting {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000"
}
[2024-02-16 15:33:12.135 IST] INFO Moving TTS status to processing from initiated {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000"
}
[2024-02-16 15:33:12.135 IST] INFO Audio Processing Done for sentence {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000",
"sentence": "I think we're having an issue, We'll connect later."
}
[2024-02-16 15:33:12.135 IST] INFO Audio Processing Done for all sentences {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000"
}
[2024-02-16 15:33:12.135 IST] INFO Moving TTS status to done from processing {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000"
}
[2024-02-16 15:33:12.135 IST] INFO Sending First Audio Chunk to Output {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000"
}
[2024-02-16 15:33:12.135 IST] INFO Waiting for immediate response to be initiated {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000"
}
[2024-02-16 15:33:12.135 IST] INFO Immediate response initiated {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000"
}
[2024-02-16 15:33:12.135 IST] INFO Moving status to processing from initiated {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000"
}
[2024-02-16 15:33:12.135 IST] INFO Moving status to done from processing {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000"
}
[2024-02-16 15:33:12.135 IST] INFO Closing audio output channel {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000"
}
[2024-02-16 15:33:12.135 IST] INFO Sending first packet {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","id":"131919000","phoneNumber":"+916376004208"}
[2024-02-16 15:33:12.135 IST] INFO Stats: Immediate LLM Initiated time is zero so not proceeding {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000"
}
[2024-02-16 15:33:12.135 IST] INFO Everything that is supposed to be spoken from Response Generator has been sent {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","id":"131919000","phoneNumber":"+916376004208"}
[2024-02-16 15:33:12.135 IST] INFO Waiting for state {
"botStateStr": "listening",
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"humanStateStr": "\u003cnil\u003e",
"phoneNumber": "+916376004208",
"reason": "Waiting to process the next response generator and this response generator has been marked as completed"
}
[2024-02-16 15:33:12.135 IST] INFO Desired state not reached {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"currentBotState": "speaking",
"currentHumanState": "active",
"phoneNumber": "+916376004208",
"reason": "Waiting to process the next response generator and this response generator has been marked as completed"
}
[2024-02-16 15:33:13.679 IST] INFO [2024-02-16T15:33:13+05:30] Transcription: i think we're having an, Message Results isFinal false SpeechFinal false {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:13.679 IST] INFO Processing Transcription : {
"Message: ": "i think we're having an",
"Status": 0,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"phoneNumber": "+916376004208",
"source": "outbound"
}
[2024-02-16 15:33:13.679 IST] INFO Processed Transcription : {
"Message: ": "i think we're having an",
"Status": 0,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"phoneNumber": "+916376004208",
"source": "outbound"
}
[2024-02-16 15:33:14.512 IST] INFO Received mark event {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","mark":"131919000"}
[2024-02-16 15:33:14.512 IST] INFO Response spoken out, changing state to listening {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","id":"131919000"}
[2024-02-16 15:33:14.512 IST] INFO Response generator has been cancelled {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "131919000"
}
[2024-02-16 15:33:14.512 IST] INFO Bot is Starting to listen and Stopping to Speak {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:14.512 IST] INFO Sending clear event {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:14.512 IST] INFO Desired state reached {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"currentBotState": "listening",
"currentHumanState": "active",
"phoneNumber": "+916376004208",
"reason": "Waiting to process the next response generator and this response generator has been marked as completed"
}
[2024-02-16 15:33:14.512 IST] INFO Response generator context cancelled after audio was sent. {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","id":"131919000","phoneNumber":"+916376004208"}
[2024-02-16 15:33:14.512 IST] INFO Exiting the speaking state {
"Reason": "Audio sent",
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "131919000",
"phoneNumber": "+916376004208"
}
[2024-02-16 15:33:14.512 IST] INFO Waiting for state {
"botStateStr": "speaking",
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"humanStateStr": "\u003cnil\u003e",
"phoneNumber": "+916376004208",
"reason": "Waiting for speaking state to process media output"
}
[2024-02-16 15:33:14.512 IST] INFO Desired state not reached {
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"currentBotState": "listening",
"currentHumanState": "active",
"phoneNumber": "+916376004208",
"reason": "Waiting for speaking state to process media output"
}
[2024-02-16 15:33:14.671 IST] INFO [2024-02-16T15:33:14+05:30] Transcription: i think we're having an issue we'll connect later, Message Results isFinal false SpeechFinal false {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:14.671 IST] INFO Processing Transcription : {
"Message: ": "i think we're having an issue we'll connect later",
"Status": 0,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"phoneNumber": "+916376004208",
"source": "outbound"
}
[2024-02-16 15:33:14.672 IST] INFO Processed Transcription : {
"Message: ": "i think we're having an issue we'll connect later",
"Status": 0,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"phoneNumber": "+916376004208",
"source": "outbound"
}
[2024-02-16 15:33:14.985 IST] INFO [2024-02-16T15:33:14+05:30] Transcription: i think we're having an issue we'll connect later, Message Results isFinal true SpeechFinal true {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:14.985 IST] INFO Processing Transcription : {
"Message: ": "i think we're having an issue we'll connect later",
"Status": 1,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"phoneNumber": "+916376004208",
"source": "outbound"
}
[2024-02-16 15:33:14.985 IST] INFO Processed Transcription : {
"Message: ": "i think we're having an issue we'll connect later",
"Status": 1,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"phoneNumber": "+916376004208",
"source": "outbound"
}
[2024-02-16 15:33:15.891 IST] INFO Sending request to API {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208","url":"https://oai.hconeai.com/v1/chat/completions"}
[2024-02-16 15:33:15.891 IST] INFO Payload {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","payload":{"max_tokens":100,"messages":[{"content":"You are a expert conversationalist, and you are very good at identifying voicemails or real human conversations. Given a conversation, you can identify if it is a voicemail or a real human","role":"system"},{"content":"hey my name is testable and check what's going wrong are you there i can't hear you\n","role":"assistant"},{"content":"### User is still on call, Please continue the conversation from the last assistant message and it should look like a natural continuation. ###","role":"user"}],"model":"gpt-4-1106-preview","tool_choice":{"function":{"name":"identifyVoiceMail"},"type":"function"},"tools":[{"function":{"description":"Identify if the conversation is with a voicemail or a real human","name":"identifyVoiceMail","parameters":{"properties":{"isVoiceMail":{"description":"Whether the conversation is with a voicemail or not","type":"boolean"}},"required":["isVoiceMail"],"type":"object"}},"type":"function"}]},"phoneNumber":"+916376004208"}
[2024-02-16 15:33:17.133 IST] INFO No new transcription received, prompting user again. {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
Ending call
[2024-02-16 15:33:17.133 IST] INFO Cancelling context {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:17.134 IST] INFO Call context cancelled, ending call processing {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:17.134 IST] INFO Context cancelled, stopping audio receiving goroutine {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:17.134 IST] INFO Media output processing cancelled due to context cancellation {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:17.134 IST] INFO transcription processing cancelled due to context cancellation {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:17.134 IST] INFO Call Context cancelled, stopping call processing {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:17.134 IST] INFO Context cancelled, stopping audio receiving goroutine {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:17.136 IST] INFO Ending call {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:17.136 IST] INFO Call ended successfully {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:17.137 IST] INFO Got convo so far {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:17.137 IST] INFO Context cancelled, stopping wait for state change {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208","reason":"Waiting for speaking state to process media output"}
[2024-02-16 15:33:17.172 IST] INFO Context cancelled, stopping transcription receiving goroutine {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
[2024-02-16 15:33:17.592 IST] INFO Context cancelled, stopping transcription receiving goroutine {"callSid":"CAdae2ea839feb7c8f83547d956b58cda4","phoneNumber":"+916376004208"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment