mirror of
https://github.com/occ-ai/obs-localvocal
synced 2024-11-07 18:57:14 +00:00
lint
This commit is contained in:
parent
5c19aca621
commit
5dd8901dc5
@ -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);
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user