Speech summary engine class (interface), intended to calculate SpeechSummary with given audio samples.
More...
#include <voicesdk/media/speech_summary.h>
Speech summary engine class (interface), intended to calculate SpeechSummary with given audio samples.
◆ create()
static SpeechSummaryEngine::Ptr voicesdk::SpeechSummaryEngine::create |
( |
const std::string & |
initPath = "" | ) |
|
|
static |
Creates SpeechSummaryEngine instance.
- Parameters
-
initPath | Initialization data path |
- Returns
- Smart pointer to created SpeechSummaryEngine instance
- Exceptions
-
std::runtime_error | if runtime error occurred |
◆ createStream()
virtual SpeechSummaryStream::Ptr voicesdk::SpeechSummaryEngine::createStream |
( |
int |
sampleRate | ) |
|
|
pure virtual |
Factory method for creating SpeechSummaryStream.
- Parameters
-
sampleRate | sample rate of audio stream |
- Returns
- speech summary stream
- Exceptions
-
std::runtime_error | if runtime error occurred* |
◆ getSpeechSummary() [1/4]
virtual SpeechSummary voicesdk::SpeechSummaryEngine::getSpeechSummary |
( |
const float * |
floatSamples, |
|
|
size_t |
samplesNum, |
|
|
size_t |
sampleRate |
|
) |
| |
|
pure virtual |
Calculates speech summary with given float audio samples (in [-1; 1] range)
- Parameters
-
floatSamples | pointer to array with samples |
samplesNum | size of array with samples |
sampleRate | sample rate |
- Returns
- speech summary
- Exceptions
-
std::runtime_error | if runtime error occurred |
◆ getSpeechSummary() [2/4]
virtual SpeechSummary voicesdk::SpeechSummaryEngine::getSpeechSummary |
( |
const int16_t * |
pcm16Samples, |
|
|
size_t |
samplesNum, |
|
|
size_t |
sampleRate |
|
) |
| |
|
pure virtual |
Calculates speech summary with given PCM16 audio samples.
- Parameters
-
pcm16Samples | pointer to array with samples |
samplesNum | size of array with samples |
sampleRate | sample rate |
- Returns
- speech summary
- Exceptions
-
std::runtime_error | if runtime error occurred |
◆ getSpeechSummary() [3/4]
virtual SpeechSummary voicesdk::SpeechSummaryEngine::getSpeechSummary |
( |
const std::string & |
audioFile | ) |
|
|
pure virtual |
Calculates speech summary with given audio file.
- Parameters
-
audioFile | path to audio file |
- Returns
- speech summary
- Exceptions
-
std::runtime_error | if runtime error occurred |
◆ getSpeechSummary() [4/4]
virtual SpeechSummary voicesdk::SpeechSummaryEngine::getSpeechSummary |
( |
const uint8_t * |
bytes, |
|
|
size_t |
bytesNum, |
|
|
size_t |
sampleRate |
|
) |
| |
|
pure virtual |
Calculates speech summary with given PCM16 audio samples.
- Parameters
-
bytes | pointer to array with samples |
bytesNum | size of array with samples |
sampleRate | sample rate |
- Returns
- speech summary
- Exceptions
-
std::runtime_error | if runtime error occurred |