MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ extract_segments() [1/2]

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = Kakshya::RegionGroup>
SpeechSegmentation MayaFlux::Yantra::SpeechSegmenter< InputType, OutputType >::extract_segments ( const input_type & data)
inline

Type-safe segmentation.

Returns
The record of the run.

Definition at line 314 of file SpeechSegmenter.hpp.

315 {
316 const auto result = this->apply_operation(data);
317 const auto* record = result.facets.template get<SpeechSegmentation>();
318 if (record == nullptr) {
320 std::source_location::current(), "Speech segmentation produced no result");
321 }
322 return *record;
323 }
output_type apply_operation(const input_type &input)
Public synchronous execution interface.
The speech intervals of a whole mono 16 kHz recording.

Referenced by MayaFlux::Yantra::SpeechSegmenter< std::vector< Kakshya::DataVariant >, Kakshya::RegionGroup >::extract_segments().

Here is the caller graph for this function: