1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*
* include/transcribe/sortformer.h - Sortformer-family public extension.
*
* Includes transcribe.h; safe to include in C or C++ TUs. Holds the
* streaming-operating-point run extension, its kind constant, and its
* init function.
*
* Sortformer (diar_streaming_sortformer_4spk-v2.1) is a diarization-only model: a run
* produces no text; the product is the who-spoke-when rows read back via
* transcribe_n_speaker_segments / transcribe_get_speaker_segment
* (TRANSCRIBE_FEATURE_DIARIZATION). The compute core is streaming
* (AOSC speaker cache + FIFO) but the shipped entry point is the batch
* transcribe_run over a whole recording, so this extension lives on the
* RUN slot. A future push-audio entry point (transcribe_stream_begin/
* feed) would register a separate STREAM-slot kind taking the same
* preset enum.
*
* Probe via transcribe_model_accepts_ext_kind(model,
* TRANSCRIBE_EXT_SLOT_RUN, TRANSCRIBE_EXT_KIND_SORTFORMER_STREAM)
* before pointing transcribe_run_params::family at the struct.
*
* FourCC kinds are reserved in docs/extension-kinds.md.
*/
extern "C" __cplusplus
}
/* TRANSCRIBE_SORTFORMER_H */