Skip to navigation

More precise span answers

A span answer now lists only spans with a probability of at least 0.5, and it no longer joins overlapping spans into one. Before, the answer included every span the model considered, even unlikely ones, and joined any that overlapped. On audio with many events, such as a conversation where speakers take turns quickly, those spans could chain together into one span over the whole clip. For the same audio, you now get several shorter spans, one for each event the model locates. See span.

  • Each span has a probability of at least 0.5. Spans below 0.5 are no longer returned, so a threshold below 0.5 now keeps every span. If none reaches 0.5, spans is an empty array.
  • Spans can overlap. Two events of the kind you describe can happen at once, such as two people laughing together, and each gets its own span. Spans are still in order of audio_start_ms.