diff --git a/proto/speechly/analytics/v1/analytics.proto b/proto/speechly/analytics/v1/analytics.proto index 8029462..00f9d6c 100644 --- a/proto/speechly/analytics/v1/analytics.proto +++ b/proto/speechly/analytics/v1/analytics.proto @@ -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; } @@ -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; +} diff --git a/proto/speechly/analytics/v1/analytics_api.proto b/proto/speechly/analytics/v1/analytics_api.proto index d15991e..7bc132d 100644 --- a/proto/speechly/analytics/v1/analytics_api.proto +++ b/proto/speechly/analytics/v1/analytics_api.proto @@ -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; @@ -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 {