File tree Expand file tree Collapse file tree
electron/native/whisper-stt
tools/stt-eval/word-timing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -174,6 +174,9 @@ configure_file("${CMAKE_CURRENT_BINARY_DIR}/whisper-patched/whisper.cpp.tmp"
174174 "${CMAKE_CURRENT_BINARY_DIR } /whisper-patched/whisper.cpp" COPYONLY )
175175get_target_property (osc_whisper_srcs whisper SOURCES )
176176list (TRANSFORM osc_whisper_srcs REPLACE "^whisper\\ .cpp$" "${CMAKE_CURRENT_BINARY_DIR } /whisper-patched/whisper.cpp" )
177+ if (NOT "${CMAKE_CURRENT_BINARY_DIR } /whisper-patched/whisper.cpp" IN_LIST osc_whisper_srcs)
178+ message (FATAL_ERROR "char-dtw: the whisper target does not list whisper.cpp as expected (${osc_whisper_srcs} )" )
179+ endif ()
177180set_property (TARGET whisper PROPERTY SOURCES ${osc_whisper_srcs} )
178181
179182add_executable (whisper-stt-server src/main.cpp )
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export const SR = 16000;
2727 * 20500-20599 (OSC_WORD_TIMING_PORT moves the range) and waits until it answers. The process is killed on exit.
2828 */
2929export async function startHelper ( exe , { cpu = false , env = process . env } = { } ) {
30- const port = Number ( process . env . OSC_WORD_TIMING_PORT ?? 20500 ) + Math . floor ( Math . random ( ) * 100 ) ;
30+ const port = Number ( env . OSC_WORD_TIMING_PORT ?? 20500 ) + Math . floor ( Math . random ( ) * 100 ) ;
3131 const args = [
3232 "--model" ,
3333 path . join ( MODELS , "ggml-small-q8_0.bin" ) ,
You can’t perform that action at this time.
0 commit comments