MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / word

Function word

tests/unittests/test_subtitle_formatter.cpp:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace {
12
13engine::runtime::WordTimestamp word(const std::string & text, int64_t start, int64_t end) {
14 engine::runtime::WordTimestamp out;
15 out.word = text;
16 out.span.start_sample = start;
17 out.span.end_sample = end;
18 out.confidence = 1.0F;
19 return out;
20}
21
22void require_throws(const std::function<void()> & fn, const std::string & label) {
23 bool threw = false;

Calls

no outgoing calls

Tested by

no test coverage detected