This commit is contained in:
Roy Shilkrot 2023-09-06 22:23:42 -04:00
parent 5c19aca621
commit 5dd8901dc5
2 changed files with 5 additions and 5 deletions

View File

@ -208,10 +208,10 @@ void transcription_filter_update(void *data, obs_data_t *s)
{
obs_log(LOG_INFO, "transcription_filter_update");
if (!data) {
obs_log(LOG_ERROR, "transcription_filter_update: data is null");
return;
}
if (!data) {
obs_log(LOG_ERROR, "transcription_filter_update: data is null");
return;
}
struct transcription_filter_data *gf =
static_cast<struct transcription_filter_data *>(data);

View File

@ -72,7 +72,7 @@ bool vad_simple(float *pcmf32, size_t pcm32f_size, uint32_t sample_rate, float v
struct whisper_context *init_whisper_context(const std::string &model_path)
{
obs_log(LOG_INFO, "Loading whisper model from %s", model_path.c_str());
obs_log(LOG_INFO, "Loading whisper model from %s", model_path.c_str());
struct whisper_context *ctx = whisper_init_from_file(obs_module_file(model_path.c_str()));
if (ctx == nullptr) {
obs_log(LOG_ERROR, "Failed to load whisper model");