Skip to main content

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.

NameTypeDescription
speech_lengthgoogle.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.

NameTypeDescription
voiceprintsrepeated phonexia.grpc.common.Voiceprint

List of voiceprints for the identification.

audiophonexia.grpc.common.Audio

Audio data in which gender is to be identified. There is no minimum audio length limit.

configIdentifyConfig

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.

NameTypeDescription
resultsrepeated IdentifyResult

Sequential list of results corresponding to sequential list of voiceprints in IdentifyRequest. Contains single result when using audio.

processed_audio_lengthgoogle.protobuf.Duration

When available, total length of the processed audio. Set only if audio is used in IdentifyRequest.

IdentifyResult​

A gender identification result. It contains scores for respective genders.

NameTypeDescription
score_maleoptional Score

Score for male. Not set if file is empty or doesn't contain enough speech.

score_femaleoptional Score

Score for female. Not set if file is empty or doesn't contain enough speech.

speech_lengthgoogle.protobuf.Duration

Total speech length from which the gender were recognized.

Score​

NameTypeDescription
score_llrfloat

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.

probabilityfloat

Decimal value between 0.0 and 1.0, representing a probability.


Services​

GenderIdentification​

Service that implements gender identification.

Identify​

MethodIdentify
RequestIdentifyRequest stream
ResponseIdentifyResponse 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.