SpeechRT Model

The SpeechRT model can classify audio into "speech", "music", "other" or "silence". The "silence" class indicates audio fragments with very low volume (according to the requested threshold). Compared to the Speech model, the SpeechRT model can react to changes in the audio much faster due to its shorter receptive field. The SpeechRT model is also our default model for detecting speech within other models.

When deciding between the Speech and SpeechRT models, it is advisable to experiment with your own data and review the latest advice to ensure optimal performance for your use case.

The receptive field of this model is 146ms.

Specification

Receptive FieldResult Type
146msresult ∈ ["speech", "music", "other", "silence"]

Time-series

The time-series result will be an iterable with elements that contain the following information:

{
"timestamp": 0,
"results":{
"speech-rt": {
"result": "speech",
"confidence": 0.92
}
}
}

Time-series with raw values

If raw values were requested, they will be added to the time-series result:

{
"timestamp": 0,
"results":{
"speech-rt": {
"result": "speech",
"confidence": 0.92
}
},
"raw": {
"speech-rt": {
"other": 0.08,
"music": 0.00,
"speech": 0.92
}
}
}

Summary

In case a summary is requested the following will be returned

{
"speech": {
"speech_fraction": 0.20,
"music_fraction": 0.10,
"other_fraction": 0.70,
"silence_fraction": 0.0
}
}

where x_fraction represents the percentage of time that x class was identified for the duration of the input.

Transitions

In case the transitions are requested a time-series with the following transition elements will be returned:

{
"timestamp_start": 0,
"timestamp_end": 1500,
"result": "speech",
"confidence": 0.96
},
{
"timestamp_start": 1500,
"timestamp_end": 6000,
"result": "other",
"confidence": 0.86
}

The result above means that the first 1500ms of the audio snippet contained speech, and between 1500ms and 6000ms of the audio no speech or music was detected.