Skip to content

feat: add local speaker diarization demo pipeline#25

Open
xyx-creator wants to merge 1 commit intoruxailab:mainfrom
xyx-creator:feat/local-speaker-diarization-demo
Open

feat: add local speaker diarization demo pipeline#25
xyx-creator wants to merge 1 commit intoruxailab:mainfrom
xyx-creator:feat/local-speaker-diarization-demo

Conversation

@xyx-creator
Copy link
Copy Markdown

Summary

  • add a local-only speaker diarization pipeline using pyannote
  • add a standalone test.py entry for running speaker-aware transcription and sentiment locally
  • keep the original Flask/API pipeline unchanged
  • ignore the downloaded local diarization model directory in git

What Changed

  • added app/models/speaker_diarization_model.py
  • added app/data/speaker_diarization_data.py
  • added app/services/speaker_diarization_service.py
  • added app/services/local_audio_transcription_sentiment_pipeline.py
  • added test.py
  • updated .gitignore to ignore speaker-diarization-community-1/

Notes

  • this PR is intentionally minimal-intrusion: it does not modify the existing Flask routes or the original audio_transcription_sentiment_pipeline
  • the local demo pipeline uses a downloaded local pyannote model directory and assigns speaker labels such as speaker_1
  • test.py also suppresses noisy third-party warnings so local output stays readable

Validation

  • ran conda run -n saa python test.py
  • ran conda run -n saa python -m pytest tests -q

Example Local Output

[1] 0.00s -> 3.00s | speaker_1 | NEU (0.8703)
[2] 3.00s -> 5.00s | speaker_1 | NEU (0.9020)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant