You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message(FATAL_ERROR"generate-tts-upstream: 'enum outetts_version' not found in tts.cpp — upstream changed; update cmake/generate-tts-upstream.cmake and src/main/cpp/tts_upstream.h")
68
+
endif()
69
+
set(_enum_body "${CMAKE_MATCH_1}")
70
+
string(REGEXREPLACE"//[^\n]*""" _enum_body "${_enum_body}") # strip any line comments
71
+
string(REGEXREPLACE"[ \t\r\n]+""" _enum_body "${_enum_body}") # strip all whitespace
72
+
string(REGEXREPLACE",+$""" _enum_body "${_enum_body}") # strip a trailing comma
message(FATAL_ERROR"generate-tts-upstream: upstream 'enum outetts_version' enumerators are now '${_enum_body}' (expected 'OUTETTS_V0_2,OUTETTS_V0_3'). Update the matching enum in src/main/cpp/tts_upstream.h to keep the two definitions ODR-identical, then update this assertion in cmake/generate-tts-upstream.cmake")
75
+
endif()
76
+
77
+
# --- 2b. verify BOTH prompt_add overloads that tts_upstream.h declares are present ---
78
+
# `void prompt_add(` is shared by three upstream overloads; the de-static REPLACE above (correctly) gives
79
+
# all of them external linkage, but the single string(FIND) only proves >=1 exists. tts_upstream.h
80
+
# declares exactly two — (llama_tokens&, const llama_tokens&) and the (vocab, txt, add_special,
81
+
# parse_special) builder — and tts_engine.cpp links against them. Pin both here (whitespace-tolerant) so
82
+
# dropping or renaming either fails the configure with a clear pointer instead of a cryptic link error.
message(FATAL_ERROR"generate-tts-upstream: the prompt_add(llama_tokens&, const llama_tokens&) overload declared in src/main/cpp/tts_upstream.h was not found in tts.cpp — upstream changed; update the de-static list and src/main/cpp/tts_upstream.h")
message(FATAL_ERROR"generate-tts-upstream: the prompt_add(llama_tokens&, const llama_vocab*, const std::string&, bool, bool) overload declared in src/main/cpp/tts_upstream.h was not found in tts.cpp — upstream changed; update the de-static list and src/main/cpp/tts_upstream.h")
88
+
endif()
89
+
59
90
# --- 3. extract the two default-speaker literals from inside main() ---
60
91
# audio_text: a single-line std::string audio_text = "<|text_start|>the<|text_sep|>...";
61
92
# The leading "<|text_start|>the<|text_sep|>" disambiguates it from the empty-seed literal
0 commit comments