[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix missing class exists check for transcribe engine #7032

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions app/email_queue/resources/jobs/email_send.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,14 @@ function remove_tags($string) {
$transcribe_engine = $settings->get('transcribe', 'engine', '');

//add the transcribe object and get the languages arrays
if (!empty($transcribe_engine)) {
if (!empty($transcribe_engine) && class_exists($transcribe_engine)) {
$transcribe = new transcribe($settings);
}

//transcribe the voicemail recording
$transcribe->audio_path = $email_attachment_path;
$transcribe->audio_filename = $email_attachment_name;
$transcribe_message = $transcribe->transcribe();
//transcribe the voicemail recording
$transcribe->audio_path = $email_attachment_path;
$transcribe->audio_filename = $email_attachment_name;
$transcribe_message = $transcribe->transcribe();
}

echo "transcribe path: ".$email_attachment_path."\n";
echo "transcribe name: ".$email_attachment_name."\n";
Expand Down