hbredin commited on
Commit
d2450b6
·
verified ·
1 Parent(s): 1115e04

Upload 2 files

Browse files
Files changed (2) hide show
  1. README.md +42 -0
  2. config.yaml +7 -0
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - pyannote
4
+ - pyannote-audio
5
+ - pyannote-audio-pipeline
6
+ - audio
7
+ - voice
8
+ - speech
9
+ - speaker
10
+ - speaker-diarization
11
+ - speaker-change-detection
12
+ - voice-activity-detection
13
+ - overlapped-speech-detection
14
+ ---
15
+
16
+ # Hosted `Community-1` speaker diarization
17
+
18
+ This pipeline runs [`Community-1`](https://hf.co/pyannote/speaker-diarization-community-1) speaker diarization on [pyannoteAI](https://www.pyannote.ai) cloud.
19
+ Read the announcement [blog post](https://www.pyannote.ai/blog/community-1).
20
+
21
+ ## Setup
22
+
23
+ 1. `pip install pyannote.audio`
24
+ 2. Create an API key on [`pyannoteAI` dashboard](https://dashboard.pyannote.ai) (free credits included)
25
+
26
+ ## Usage
27
+
28
+ ```python
29
+ # initialize speaker diarization pipeline
30
+ from pyannote.audio import Pipeline
31
+ pipeline = Pipeline.from_pretrained(
32
+ 'pyannote/speaker-diarization-community-1-cloud',
33
+ token="{pyannoteAI-api-key}")
34
+
35
+ # run speaker diarization on pyannoteAI cloud
36
+ output = pipeline("/path/to/audio.wav")
37
+
38
+ # print speaker diarization
39
+ for turn, _, speaker in output.speaker_diarization.itertracks(yield_label=True):
40
+ print(f"start={turn.start:.1f}s stop={turn.end:.1f}s speaker_{speaker}")
41
+ ```
42
+
config.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ dependencies:
2
+ pyannote.audio: 4.0.0
3
+
4
+ pipeline:
5
+ name: pyannote.audio.pipelines.pyannoteai.sdk.SDK
6
+ params:
7
+ model: community-1