Skip to content

Commit

Permalink
fix: build error on sfos arm32
Browse files Browse the repository at this point in the history
  • Loading branch information
mkiol committed Aug 3, 2024
1 parent e9ea20e commit 09afd78
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions src/fasterwhisper_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,11 @@ void fasterwhisper_engine::decode_speech(const whisper_buf_t& buf) {

auto stats = report_stats(
buf.size(), m_sample_rate,
static_cast<size_t>(
std::max(0L, std::chrono::duration_cast<std::chrono::milliseconds>(
std::chrono::steady_clock::now() - decoding_start)
.count())));
static_cast<size_t>(std::max(
0L, static_cast<long int>(
std::chrono::duration_cast<std::chrono::milliseconds>(
std::chrono::steady_clock::now() - decoding_start)
.count()))));

auto result = merge_texts(m_intermediate_text.value_or(std::string{}),
std::move(text));
Expand Down
9 changes: 5 additions & 4 deletions src/whisper_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -661,10 +661,11 @@ void whisper_engine::decode_speech(const whisper_buf_t& buf) {

auto stats = report_stats(
buf.size(), m_sample_rate,
static_cast<size_t>(
std::max(0L, std::chrono::duration_cast<std::chrono::milliseconds>(
std::chrono::steady_clock::now() - decoding_start)
.count())));
static_cast<size_t>(std::max(
0L, static_cast<long int>(
std::chrono::duration_cast<std::chrono::milliseconds>(
std::chrono::steady_clock::now() - decoding_start)
.count()))));

auto auto_lang_id = [&]() -> std::string {
if (!m_wparams.language) { // auto-detected lang
Expand Down

0 comments on commit 09afd78

Please sign in to comment.