WAPI Lifecycle Metrics

Available Dimensions

Metrics table

WAPI

Business Definition

Logical Definition

Aggregator

Max Final Result Response

The max amount of time it took to receive all the audio.

Events Used:

  • wapi.speechRecognition

Metric Condition:

  • Returns max time between lastAudioBufferReceivedTime and firstAudioBufferReceivedTime in seconds

Max

Max First Intermediate Result Response

The max amount of time it took to receive the first intermediate result after the first audio packet was sent.

Events Used:

  • wapi.speechRecognition

Metric Condition:

  • Returns max time between firstIntermediateResultTime and wapiStartTime in seconds

Max

Max Media Duration

The max amount of audio that was sent, in seconds.

Events Used:

  • wapi.speechSynthesis

  • wapi.speechRecognition

Metric Condition:

  • Returns max mediaDuration in seconds

Max

Max Request Processing Time

The max amount of time that was spent executing the command.

Events Used:

  • wapi.uploadDynamicVocabulary

  • wapi.startSession

  • wapi.speechSynthesis

  • wapi.speechRecognition

  • wapi.endSession

Metric Condition:

  • Returns max time between wapiEndTime and wapiStartTime in seconds

Max

Max Text Input Chars

The max number of characters in speechSynthesis requests.

Events Used:

  • wapi.speechSynthesis

Metric Condition:

  • Returns max dataLength

Max

Max Word Count

The max number of words in uploadDynamicVocabulary requests.

Events Used:

  • wapi.uploadDynamicVocabulary

Metric Condition:

  • Returns max uploadWordCount

Max

Min Final Result Response

The min amount of time it took to receive all the audio.

Events Used:

  • wapi.speechRecognition

Metric Condition:

  • Returns min time between lastAudioBufferReceivedTime and firstAudioBufferReceivedTime in seconds

Min

Min First Intermediate Result Response

The min amount of time it took to receive the first intermediate result after the first audio packet was sent.

Events Used:

  • wapi.speechRecognition

Metric Condition:

  • Returns min time between firstIntermediateResultTime and wapiStartTime in seconds

Min

Min Media Duration

The min amount of audio that was sent, in seconds.

Events Used:

  • wapi.speechSynthesis

  • wapi.speechRecognition

Metric Condition:

  • Returns min mediaDuration in seconds

Min

Min Request Processing Time

The min amount of time that was spent executing the command.

Events Used:

  • wapi.uploadDynamicVocabulary

  • wapi.startSession

  • wapi.speechSynthesis

  • wapi.speechRecognition

  • wapi.endSession

Metric Condition:

  • Returns min time between wapiEndTime and wapiStartTime in seconds

Min

Min Text Input Chars

The min number of characters in speechSynthesis requests.

Events Used:

  • wapi.speechSynthesis

Metric Condition:

  • Returns min dataLength

Min

Min Word Count

The min number of words in uploadDynamicVocabulary requests.

Events Used:

  • wapi.uploadDynamicVocabulary

Metric Condition:

  • Returns min uploadWordCount

Min

Total Final Result Response

The amount of time it took to receive all the audio.

Events Used:

  • wapi.speechRecognition

Metric Condition:

  • Returns sum of time between lastAudioBufferReceivedTime and firstAudioBufferReceivedTime in seconds

Sum

Total First Intermediate Result Response

The amount of time it took to receive the first intermediate result after the first audio packet was sent.

Events Used:

  • wapi.speechRecognition

Metric Condition:

  • Returns sum of time between firstIntermediateResultTime and wapiStartTime in seconds

Sum

Total Media Duration

The amount of audio that was sent in seconds.

Events Used:

  • wapi.speechSynthesis

  • wapi.speechRecognition

Metric Condition:

  • Returns sum of mediaDuration in seconds

Sum

Total Request Processing Time

The amount of time that was spent executing the command.

Events Used:

  • wapi.uploadDynamicVocabulary

  • wapi.startSession

  • wapi.speechSynthesis

  • wapi.speechRecognition

  • wapi.endSession

Metric Condition:

  • Returns sum of time between wapiStartTime and wapiEndTime in seconds

Sum

Total Requests

The total amount of requests that were made to the API.

Events Used:

  • wapi.uploadDynamicVocabulary

  • wapi.startSession

  • wapi.speechSynthesis

  • wapi.speechRecognition

Metric Condition:

  • Returns total count of events

Sum

Total Text Input Chars

The total number of characters in speechSynthesis requests.

Events Used:

  • wapi.speechSynthesis

Metric Condition:

  • Returns sum of dataLength

Sum

Total Word Count

The total number of words in uploadDynamicVocabulary requests.

Events Used:

  • wapi.uploadDynamicVocabulary

Metric Condition:

  • Returns sum of uploadWordCount

Sum

Total Duration Intervals

 

Events Used:

  • wapi.speechRecognition

Metric Condition:

  • Returns rounded up value of mediaDuration (sec) divided by 15

Sum

User Perceived Latency

 

Events Used:

  • wapi.speechRecognition

  • wapi.speechSynthesis

  • wapi.uploadDynamicVocabulary

  • wapi.interpretation

Metric Condition:

  • Returns time between first response time (firstIntermediateResultTime in wapi.speechRecognition OR firstAudioBufferSentTime in wapi.speechSynthesis OR wapiEndTime) and first request time (firstAudioBufferReceivedTime in wapi.speechRecognition OR wapiStartTime) in seconds

Sum