Skip to content

Commit

Permalink
Extend RegisterUtterance with processing information (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
teelisyys committed Apr 12, 2023
1 parent da3765e commit e1f0519
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
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

0 comments on commit e1f0519

Please sign in to comment.