Tell me about your approach to building a voice AI agent that users can actually call.
Implement the transcript-processing component for that agent. Given timestamped ASR segments, select the highest-confidence non-overlapping segments independently for each speaker, then merge adjacent turns from the same speaker when their silence is within max_silence.
Implement build_call_turns(segments, max_silence). Each segment is a dictionary with numeric start, end, and confidence, plus string speaker and text. Return chronologically ordered dictionaries containing only speaker, start, end, and text.
def build_call_turns(segments, max_silence):