feat(audio): 修复说话人聚类并更新至0.4.0-alpha.1

This commit is contained in:
2026-09-16 22:05:09 +08:00
parent 81003d3106
commit e86809b238
18 changed files with 151 additions and 30 deletions
@@ -174,6 +174,8 @@ async def _execute(job_id, request, routing=None):
for segment, speaker in zip(job.segments, result["speakers"], strict=True):
segment.speaker = speaker
job.warnings.append("DIARIZATION_SEGMENT_LEVEL")
if result.get("unassigned_segments"):
job.warnings.append("DIARIZATION_PARTIAL")
except ProviderError:
job.warnings.append("DIARIZATION_UNAVAILABLE")
else: