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

This commit is contained in:
2026-09-16 22:05:09 +08:00
parent f67a82a6da
commit ac22f9e36b
17 changed files with 150 additions and 29 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: