Some checks failed
Linux Build / Linux cpu (push) Has been cancelled
Linux Build / Linux cpu-clang (push) Has been cancelled
Linux Build / Linux vulkan (push) Has been cancelled
mac-build / macOS CPU (push) Has been cancelled
Nix Build / Nix (cpu) (push) Has been cancelled
Nix Build / Nix (vulkan) (push) Has been cancelled
windows-build / Windows CPU (push) Has been cancelled
26 lines
837 B
C++
26 lines
837 B
C++
#include "omtd.h"
|
|
|
|
#include <cassert>
|
|
#include <cstring>
|
|
|
|
int main() {
|
|
char error[128] = {};
|
|
|
|
assert(!omtd_is_output_companion_gguf(nullptr));
|
|
assert(omtd_get_model_type(nullptr) == OMTD_MODEL_TYPE_UNKNOWN);
|
|
assert(omtd_get_model_modality(nullptr) == OMTD_MODALITY_UNKNOWN);
|
|
|
|
assert(omtd_audio_generate_file(nullptr, error, sizeof(error)) == OMTD_STATUS_INVALID_PARAM);
|
|
assert(std::strlen(error) > 0);
|
|
|
|
omtd_audio_generation_params params = {};
|
|
assert(omtd_audio_generate_file(¶ms, error, sizeof(error)) == OMTD_STATUS_INVALID_PARAM);
|
|
|
|
params.model_path = "model.gguf";
|
|
params.companion_path = "companion.gguf";
|
|
params.prompt = "hello";
|
|
params.output_path = "out.wav";
|
|
assert(omtd_audio_generate_file(¶ms, error, sizeof(error)) == OMTD_STATUS_UNSUPPORTED);
|
|
|
|
return 0;
|
|
}
|