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

#include <voicesdk/media/speech_summary.h>

Public Member Functions

 SpeechEvent ()=default
 
 SpeechEvent (bool isVoice, const AudioInterval &audioInterval)
 
bool operator== (const SpeechEvent &other) const
 

Public Attributes

bool isVoice = false
 Whether the interval contains speech or not. More...
 
AudioInterval audioInterval
 Speech event audio interval. More...
 

Friends

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

Detailed Description

Represents a speech/non-speech marked audio interval

Constructor & Destructor Documentation

◆ SpeechEvent() [1/2]

voicesdk::SpeechEvent::SpeechEvent ( )
default

◆ SpeechEvent() [2/2]

voicesdk::SpeechEvent::SpeechEvent ( bool  isVoice,
const AudioInterval audioInterval 
)
inline

Member Function Documentation

◆ operator==()

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

Friends And Related Function Documentation

◆ operator<<

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

Member Data Documentation

◆ audioInterval

AudioInterval voicesdk::SpeechEvent::audioInterval

Speech event audio interval.

◆ isVoice

bool voicesdk::SpeechEvent::isVoice = false

Whether the interval contains speech or not.