Skip to content

Commit 520b5ed

Browse files
committed
feat: add support for STT orchestration
1 parent 50ec513 commit 520b5ed

3 files changed

Lines changed: 28 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## Version 0.4.0 (2026-01-14)
4+
5+
- feat: add support for STT orchestration
6+
37
## Version 0.3.0 (2025-10-10)
48

59
- feat: add support for passing audio as a `{"audio": str | Path}` mapping

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,21 @@ diarization = client.retrieve(job_id)
3434

3535
Use `help(client.diarize)` to learn about options.
3636

37+
## STT orchestration
38+
39+
```python
40+
# submit a diarization job with STT orchestration
41+
job_id = client.diarize(
42+
media_url,
43+
transcription=True,
44+
transcription_config={"model": "parakeet-tdt-0.6b-v3"})
45+
46+
# retrieve speaker-attributed transcription
47+
orchestration = client.retrieve(job_id)
48+
# orchestration['output']['turnLevelTranscription']
49+
# orchestration['output']['wordLevelTranscription']
50+
```
51+
3752
## Speaker identification
3853

3954
```python

src/pyannoteai/sdk/client.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,8 @@ def diarize(
370370
turn_level_confidence: bool = False,
371371
exclusive: bool = False,
372372
model: str = "precision-2",
373+
transcription: bool = False,
374+
transcription_config: dict | None = None,
373375
**kwargs,
374376
) -> str:
375377
"""Initiate a diarization job on the pyannoteAI web API
@@ -394,6 +396,10 @@ def diarize(
394396
Enable exclusive speaker diarization.
395397
model : str, optional
396398
Defaults to "precision-2"
399+
transcription : bool, optional
400+
Enable STT orchestration.
401+
transcription_config : dict, optional
402+
STT configuration parameters, including model selection.
397403
**kwargs : optional
398404
Extra arguments to send in the body of the request.
399405
@@ -416,7 +422,10 @@ def diarize(
416422
"confidence": confidence,
417423
"turnLevelConfidence": turn_level_confidence,
418424
"exclusive": exclusive,
425+
"transcription": transcription,
426+
"transcriptionConfig": transcription_config or dict(),
419427
}
428+
420429
# add extra arguments to the request body
421430
json.update(kwargs)
422431

0 commit comments

Comments
 (0)