Repository navigation
feat(audio): AudioTranscribe speakers=true — 누가 말했는지 붙인다 (4.106.0) - #180
Merged
Merged
Conversation
회의 녹음을 채팅에 올려 회의록을 받으려면 "누가 말했는지" 가 있어야 하는데 전사 결과는 글자뿐이었다. 화자 분리는 항상 켜지 않고 고른다: - 호스트: extras["stt"]["diarization"] 을 켰을 때만(그 STT 서버가 화자를 나눌 수 있을 때). - 호출: 모델이 여러 사람이 말하는 녹음이면 speakers=true, 사용자가 인원을 말했으면 num_speakers. - AudioTranscribe: speakers·num_speakers(1~32) 입력. 호스트가 꺼 두었으면 그냥 받아쓰고 "화자 표시를 쓸 수 없다" 한 줄을 붙인다(재호출 없음). diarization 키는 provider 에 넘기지 않는다. - 출력: 같은 화자가 이어 말한 구간을 한 줄로 — "[00:00–00:14] A: ..." (A, B 는 파일 안 첫 등장 순). - openai_compatible: response_format=diarized_json(OpenAI 형식) + chunking_strategy=auto, segments[].speaker 파싱. num_speakers 는 OpenAI 필드가 아니라 모델이 줬을 때만 보낸다. - STTSegment.speaker(선택). 화자 인자는 요청됐을 때만 넘겨 예전 provider 시그니처를 깨지 않는다. 못 받는 provider 는 STT_NO_SPEAKERS. - 사이드카: speakers·num_speakers 기록. 화자 요청은 화자 캐시만 쓰고 인원이 다르면 다시 부른다. 서버가 화자 표시 없이 돌려주면 화자 캐시로 적지 않는다. AudioInfo 에 speakers 노출. 서버 쪽은 xgen-model develop 의 response_format=diarized_json(50901 실측: 101초 3화자 회의 3.0~3.5초, 10분 통화 19초). 테스트: speakers 8개 추가(턴 묶기·캐시·인원 불일치·호스트 꺼짐·provider 미지원·라벨 없는 응답· 설정 키 비전달·전송 형식). 전체 6316 passed / 16 skipped, ruff format·check, gen_event_docs --check 통과. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
왜
회의 녹음을 채팅에 올려 회의록을 받으려면 "누가 말했는지" 가 있어야 하는데
AudioTranscribe결과는 글자뿐이었다. 화자 분리는 항상 켜지 않고 고른다 — 호스트가 켜 두었을 때, 모델이 녹음마다.무엇 (4.106.0)
AudioTranscribe:speakers(기본 false)·num_speakers(1~32, 사용자가 인원을 말했을 때) 입력.extras["stt"]["diarization"]이 꺼져 있으면 그냥 받아쓰고 "화자 표시를 쓸 수 없다" 한 줄을 붙인다(재호출 없음). 이 키는 provider 에 넘기지 않는다.[00:00–00:14] A: ...speakers·num_speakers. 화자 요청은 화자 캐시만 쓰고 인원이 다르면 다시 부른다. 서버가 라벨 없이 돌려주면 화자 캐시로 적지 않는다.openai_compatible:response_format=diarized_json+chunking_strategy=auto(OpenAI 형식),segments[].speaker파싱.num_speakers는 OpenAI 필드가 아니라 모델이 줬을 때만 보낸다.STTSegment.speaker(선택). 화자 인자는 요청됐을 때만 넘겨 예전 provider 시그니처를 깨지 않는다. 못 받는 provider 는STT_NO_SPEAKERS.AudioInfo에speakers.검증
ruff format --check·ruff check·gen_event_docs.py --check통과.짝
GENY_STT_DIARIZATION→extras["stt"]["diarization"], 이 버전 고정🤖 Generated with Claude Code