Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend RegisterUtterance with processing information #69

Merged
merged 1 commit into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion proto/speechly/analytics/v1/analytics.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ message UtteranceStatisticsPeriod {
int32 utterances_seconds = 5;
// Total duration of annotated utterances in the current period.
int32 annotated_seconds = 6;
// project_id or empty, if specifiying a project.
// project_id or empty, if specifying a project.
string project_id = 7;
}

Expand All @@ -53,3 +53,24 @@ message DecoderInfo {
// Cumulative sum of the utterance length in seconds for the decoder.
int32 total_seconds_transcribed = 3;
}

// The various types of processing that can be applied to the audio.
enum ProcessingType {
PROCESSING_TYPE_INVALID = 0;
PROCESSING_TYPE_TRANSCRIPTION = 1;
PROCESSING_TYPE_NLU = 2;
PROCESSING_TYPE_LANGUAGE_DETECTION = 3;
PROCESSING_TYPE_VAD = 4;
PROCESSING_TYPE_TRANSLATION = 5;
PROCESSING_TYPE_AUDIO_EVENT_DETECTION = 6;
PROCESSING_TYPE_TONE_OF_VOICE_LABELLING = 7;
PROCESSING_TYPE_SHALLOW_FUSION = 8;
}

// Specifies what processing has been applied to an utterance.
message ProcessingInfo {
// The processing types that were applied
repeated ProcessingType processing_types = 1;
// id of the model that was used for processing
string model_id = 2;
}
7 changes: 7 additions & 0 deletions proto/speechly/analytics/v1/analytics_api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ message UtterancesResponse {

// A single data point of an utterance recognized by Speechly On Device or Speechly On Premise.
message RegisterUtteranceRequest {
// id of the application the operation belongs to
string app_id = 1;
// device_id of the utterance.
string device_id = 2;
Expand Down Expand Up @@ -124,6 +125,12 @@ message RegisterUtteranceRequest {
string operation_id = 9;
// id of the batch the operation belongs to
string batch_id = 10;
// id of the project the operation belongs to
string project_id = 11;
// language of the utterance (BCP-47)
string language = 12;
// Information about the processing applied to the utterance
ProcessingInfo processing_info = 13;
}

message RegisterUtteranceResponse {
Expand Down