gender_identification.proto
path phonexia/grpc/technologies/gender_identification/v1/gender_identification.proto
package phonexia.grpc.technologies.gender_identification.v1
Phonexia Gender Identification gRPC API.
Messages
IdentifyConfig
Message used for configuration of the Identify method.
| Name | Type | Description |
|---|---|---|
speech_length | google.protobuf.Duration | Specifies the maximum speech length from which the gender will be identified. If there is less speech in the audio than the specified duration, the gender will be identified from the entire audio. This option is applicable only for Audio data. |
IdentifyRequest
The top-level message sent by the client for the Identify
method.
The method accepts either audio data or voiceprints.
| Name | Type | Description |
|---|---|---|
voiceprints | repeated phonexia.grpc.common.Voiceprint | List of voiceprints for the identification. |
audio | phonexia.grpc.common.Audio | Audio data in which gender is to be identified. There is no minimum audio length limit. |
config | IdentifyConfig | Configuration for the gender identification. |
IdentifyResponse
The top-level message returned to the client by the Identify
method. It contains the result as one or more IdentifyResult
messages.
| Name | Type | Description |
|---|---|---|
results | repeated IdentifyResult | Sequential list of results corresponding to sequential list of voiceprints
in |
processed_audio_length | google.protobuf.Duration | When available, total length of the processed audio.
Set only if audio is used in |
IdentifyResult
A gender identification result. It contains scores for respective genders.
| Name | Type | Description |
|---|---|---|
score_male | optional Score | Score for male. Not set if file is empty or doesn't contain enough speech. |
score_female | optional Score | Score for female. Not set if file is empty or doesn't contain enough speech. |
speech_length | google.protobuf.Duration | Total speech length from which the gender were recognized. |
Score
| Name | Type | Description |
|---|---|---|
score_llr | float | Log-likelihood ratio score. The LLR provides a quantitative measure of how much more likely the data is under one model (gender) compared to another. A positive LLR suggests that the respective model is more likely to be supported by the data than the other model, while the negative LLR suggests the opposite. |
probability | float | Decimal value between 0.0 and 1.0, representing a probability. |
Services
GenderIdentification
Service that implements gender identification.
Identify
| Method | Identify |
|---|---|
| Request | IdentifyRequest stream |
| Response | IdentifyResponse stream |
| Description | Performs synchronous gender identification from one or more voiceprints or audio. Identification is performed on each received chunk, and partial results corresponding to each chunk are returned when using voiceprints. Only single result is returned when using audio. |