Skip to main content

keyword_spotting.proto

path phonexia/grpc/technologies/keyword_spotting/v1/keyword_spotting.proto

package phonexia.grpc.technologies.keyword_spotting.v1

Phonexia Keyword Spotting gRPC API.


Messages​

DetectConfig​

NameTypeDescription
confidence_sharpnessoptional float

Specifies how the dynamic range of score is used (default is 1.0). Must be greater than zero.

DetectRequest​

A request to detect keywords in an audio file.

NameTypeDescription
audiophonexia.grpc.common.Audio

The audio data to process. There is no minimum audio length limit.

keywordsrepeated Keyword

The list of keywords to detect.

configDetectConfig

Optional Detect request configuration.

DetectResponse​

The response of the detect operation.

NameTypeDescription
resultDetectResult

The result of the detect operation.

processed_audio_lengthgoogle.protobuf.Duration

The length of the processed audio.

DetectResult​

The result of the detect operation.

NameTypeDescription
matchesrepeated Match

The list of matches.

Keyword​

A keyword.

NameTypeDescription
spellingstring

The spelling of the keyword written in graphemes. Only supported graphemes listed by ListAllowedSymbols can be used. The keyword may contain multiple words separated by the word separator '+'.

pronunciationsrepeated string

Pronunciations written in phonemes separated by spaces. Only supported phonemes listed by ListAllowedSymbols can be used. Keyword is matched if any of the pronunciations matches. If not set, the pronunciation is searched in the system's vocabulary and if it is not found, it is automatically generated by the system.

ListAllowedSymbolsRequest​

The request to list allowed symbols.

NameTypeDescription

ListAllowedSymbolsResponse​

The response of the list allowed symbols operation.

NameTypeDescription
graphemesrepeated string

The list of allowed graphemes.

phonemesrepeated string

The list of allowed phonemes.

Match​

A match.

NameTypeDescription
start_timegoogle.protobuf.Duration

The start time of the match.

end_timegoogle.protobuf.Duration

The end time of the match.

confidencefloat

The confidence of the match in range [0, 1].

scorefloat

Score is calculated as log likelihood ratio in range [-inf, inf].

keywordMatchedKeyword

The matched keyword.

MatchedKeyword​

A matched keyword.

NameTypeDescription
spellingstring

The spelling of the matched keyword written in graphemes.

pronunciationstring

The pronunciation of the matched keyword written in phonemes separated by spaces.

pronunciation_sourceMatchedKeyword.PronunciationSource

The source of the matched pronunciation.


Enums​

MatchedKeyword.PronunciationSource​

The source of the matched keyword.

NameNumberDescription
DICTIONARY0

The pronunciation is in system's vocabulary.

GENERATED1

The pronunciation has been generated by the system

USER2

The pronunciation was set by the user.

PARTLY_GENERATED3

Part of the pronunciation was generated by the system, the rest of the pronunciation is in system's vocabulary. Only applicable for words separated with '+' separator.


Services​

KeywordSpotting​

Service implementing Keyword Spotting. For more information, see https://docs.cloud.phonexia.com/products/speech-platform-4/technologies/keyword-spotting/

Detect​

MethodDetect
RequestDetectRequest stream
ResponseDetectResponse stream
Description

Detect performs keyword spotting on the audio data. Returns detected keywords and their pronunciations.

ListAllowedSymbols​

MethodListAllowedSymbols
RequestListAllowedSymbolsRequest
ResponseListAllowedSymbolsResponse
Description

ListAllowedSymbols returns lists of allowed symbols for the keyword spotting model.