speaker_diarization.proto
path phonexia/grpc/technologies/speaker_diarization/v1/speaker_diarization.proto
package phonexia.grpc.technologies.speaker_diarization.v1
Phonexia Speaker Diarization gRPC API
Messages
DiarizeConfig
| Name | Type | Description |
|---|---|---|
max_speakers | optional int32 | Upper limit for the number of speakers in the audio. The value must be larger than 0. If omitted, the default value is set to 100. |
total_speakers | optional int32 | Enforces exact number of speakers in the audio. If set, it overwrites
|
DiarizeRequest
The top-level message sent by the client for the Diarize method.
| Name | Type | Description |
|---|---|---|
audio | phonexia.grpc.common.Audio | Audio to be diarized.
The audio should have minimum length of 0.8 seconds. If the audio is shorter,
the |
config | DiarizeConfig | Speaker diarization configuration. |
DiarizeResponse
The top-level message returned to the client by the Diarize
method.
| Name | Type | Description |
|---|---|---|
speakers_count | int32 | Detected number of speakers in the audio. |
segments | repeated Segment | List of detected segments in the audio. Will be empty if the audio is shorter than 0.8 seconds. |
processed_audio_length | google.protobuf.Duration | Total length of the processed audio. |
speech_length | google.protobuf.Duration | Total Speech length of the processed audio. |
Segment
| Name | Type | Description |
|---|---|---|
speaker_id | int32 | Identifier of a speaker in the segment. |
start_time | google.protobuf.Duration | Start time of the segment. |
end_time | google.protobuf.Duration | End time of the segment. |
Services
SpeakerDiarization
Service implementing speaker diarization.
Diarize
| Method | Diarize |
|---|---|
| Request | DiarizeRequest stream |
| Response | DiarizeResponse |
| Description | Performs synchronous speaker diarization of an audio. Returns a result after completely sent and processed audio. |