Recording duration and timestamp not aligned
# support
m
Hi, i wanted to know why timestamp (startedAt and endedAt) from an API response is not aligned with the call recording duration?
v
@ming I understand that discrepancies between timestamps and call recording durations can be confusing. There are a few common reasons why this might happen: 1. **Time Zone Differences**: The timestamps in the API response might be in a different time zone than the one used for the call recording duration. 2. **Server Time vs. Client Time**: The timestamps could be based on the server's clock, while the call recording duration might be measured on the client side, leading to slight differences due to network latency or clock drift. 3. **Start/End Delays**: There might be a delay between the actual start of the recording and the initiation of the call (or vice versa for the end), which could cause the timestamps not to match up perfectly with the recording duration. 4. **Processing Time**: Sometimes, there is processing time before and after the call that might not be included in the call recording duration but is included in the timestamps. 5. **API Design**: The API might be designed to include additional time before and after the actual call in the timestamps for buffering or other reasons. If you're experiencing this issue with our API and need a more specific explanation or resolution, please provide me with the
orgId
,
rangeStart
, and
rangeEnd
parameters so I can look into the matter further for you.
You can continue this conversation by mentioning me in the message.
m
@Vapi 4.29 minutes on recording audio and the call log startedAt endedAt returns 4.48 minutes. also the VAPI cost minutes follow the 4.48 minutes
v
@ming It seems like the VAPI cost is calculated based on the
startedAt
and
endedAt
timestamps, which is why you're seeing the cost associated with 4.48 minutes instead of the 4.29 minutes of audio recording. This discrepancy could be due to several factors, such as initial connection setup time, post-call processing, or even a delay in stopping the recording after the call ended. If the difference in time is causing an issue with your billing or if you need a more detailed explanation, I would recommend reaching out to our support team with specific details of the call, including the
orgId
,
callId
, and the exact timestamps you're referring to. They will be able to investigate the matter and provide you with a detailed breakdown of the time calculation. Would you like me to assist you in contacting support for more detailed information on this?
m
@Vapi what are all the factors and can you please explain each of them
s
@ming Sorry for the late response. Can you please help me with, what's exactly confusing you? _"timestamp (startedAt and endedAt) from an API response is not aligned with the call recording duration?" _
Because of no response closing this ticket.