VoiceSDK  5.0.2
Public Member Functions | Public Attributes | Friends | List of all members
voicesdk::SpeechInfo Struct Reference

#include <voicesdk/media/speech_summary.h>

Public Member Functions

 SpeechInfo ()=default
 
 SpeechInfo (float speechLengthMs, float backgroundLengthMs, float totalLengthMs)
 
bool operator== (const SpeechInfo &other) const
 

Public Attributes

float speechLengthMs = 0.0f
 Speech signal length in milliseconds. More...
 
float backgroundLengthMs = 0.0f
 Non-speech signal length in milliseconds. More...
 
float totalLengthMs = 0.0f
 Processed audio total length (totalLengthMs = speechLengthMs + backgroundLengthMs) in milliseconds. More...
 

Friends

std::ostream & operator<< (std::ostream &os, const SpeechInfo &obj)
 

Constructor & Destructor Documentation

◆ SpeechInfo() [1/2]

voicesdk::SpeechInfo::SpeechInfo ( )
default

◆ SpeechInfo() [2/2]

voicesdk::SpeechInfo::SpeechInfo ( float  speechLengthMs,
float  backgroundLengthMs,
float  totalLengthMs 
)
inline

Member Function Documentation

◆ operator==()

bool voicesdk::SpeechInfo::operator== ( const SpeechInfo other) const
inline

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const SpeechInfo obj 
)
friend

Member Data Documentation

◆ backgroundLengthMs

float voicesdk::SpeechInfo::backgroundLengthMs = 0.0f

Non-speech signal length in milliseconds.

◆ speechLengthMs

float voicesdk::SpeechInfo::speechLengthMs = 0.0f

Speech signal length in milliseconds.

◆ totalLengthMs

float voicesdk::SpeechInfo::totalLengthMs = 0.0f

Processed audio total length (totalLengthMs = speechLengthMs + backgroundLengthMs) in milliseconds.