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
| Name | Type | Description |
|---|---|---|
confidence_sharpness | optional 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.
| Name | Type | Description |
|---|---|---|
audio | phonexia.grpc.common.Audio | The audio data to process. There is no minimum audio length limit. |
keywords | repeated Keyword | The list of keywords to detect. |
config | DetectConfig | Optional Detect request configuration. |
DetectResponse
The response of the detect operation.
| Name | Type | Description |
|---|---|---|
result | DetectResult | The result of the detect operation. |
processed_audio_length | google.protobuf.Duration | The length of the processed audio. |
DetectResult
The result of the detect operation.
| Name | Type | Description |
|---|---|---|
matches | repeated Match | The list of matches. |
Keyword
A keyword.
| Name | Type | Description |
|---|---|---|
spelling | string | The spelling of the keyword written in graphemes.
Only supported graphemes listed by |
pronunciations | repeated string | Pronunciations written in phonemes separated by spaces.
Only supported phonemes listed by |
ListAllowedSymbolsRequest
The request to list allowed symbols.
| Name | Type | Description |
|---|
ListAllowedSymbolsResponse
The response of the list allowed symbols operation.
| Name | Type | Description |
|---|---|---|
graphemes | repeated string | The list of allowed graphemes. |
phonemes | repeated string | The list of allowed phonemes. |
Match
A match.
| Name | Type | Description |
|---|---|---|
start_time | google.protobuf.Duration | The start time of the match. |
end_time | google.protobuf.Duration | The end time of the match. |
confidence | float | The confidence of the match in range [0, 1]. |
score | float | Score is calculated as log likelihood ratio in range [-inf, inf]. |
keyword | MatchedKeyword | The matched keyword. |
MatchedKeyword
A matched keyword.
| Name | Type | Description |
|---|---|---|
spelling | string | The spelling of the matched keyword written in graphemes. |
pronunciation | string | The pronunciation of the matched keyword written in phonemes separated by spaces. |
pronunciation_source | MatchedKeyword.PronunciationSource | The source of the matched pronunciation. |
Enums
MatchedKeyword.PronunciationSource
The source of the matched keyword.
| Name | Number | Description |
|---|---|---|
DICTIONARY | 0 | The pronunciation is in system's vocabulary. |
GENERATED | 1 | The pronunciation has been generated by the system |
USER | 2 | The pronunciation was set by the user. |
PARTLY_GENERATED | 3 | 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
| Method | Detect |
|---|---|
| Request | DetectRequest stream |
| Response | DetectResponse stream |
| Description | Detect performs keyword spotting on the audio data. Returns detected keywords and their pronunciations. |
ListAllowedSymbols
| Method | ListAllowedSymbols |
|---|---|
| Request | ListAllowedSymbolsRequest |
| Response | ListAllowedSymbolsResponse |
| Description | ListAllowedSymbols returns lists of allowed symbols for the keyword spotting model. |