mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Set the transcribe output_type
This commit is contained in:
@@ -237,7 +237,7 @@
|
||||
$transcribe->audio_filename = $email_attachment_name;
|
||||
$transcribe->audio_mime_type = $email_attachment_mime_type;
|
||||
$transcribe->audio_string = (!empty($field['email_attachment_base64'])) ? base64_decode($field['email_attachment_base64']) : '';
|
||||
$transcribe_message = $transcribe->transcribe();
|
||||
$transcribe_message = $transcribe->transcribe('text');
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -247,7 +247,7 @@
|
||||
if ($transcribe_enabled && empty($recording_message)) {
|
||||
$transcribe->audio_path = $recording_path;
|
||||
$transcribe->audio_filename = $recording_filename;
|
||||
$recording_message = $transcribe->transcribe();
|
||||
$recording_message = $transcribe->transcribe('text');
|
||||
}
|
||||
|
||||
//build array
|
||||
|
||||
@@ -212,7 +212,7 @@ if (!empty($_POST) && empty($_POST["persistformvar"])) {
|
||||
if ($transcribe_enabled && empty($greeting_voice) && empty($greeting_message)) {
|
||||
$transcribe->audio_path = $greeting_path;
|
||||
$transcribe->audio_filename = $greeting_filename;
|
||||
$greeting_message = $transcribe->transcribe();
|
||||
$greeting_message = $transcribe->transcribe('text');
|
||||
}
|
||||
|
||||
//if base64 is enabled base64
|
||||
|
||||
@@ -1181,7 +1181,7 @@ class voicemail {
|
||||
//transcribe the voicemail message file
|
||||
$transcribe->audio_path = $voicemail_message_path;
|
||||
$transcribe->audio_filename = basename($voicemail_message_file);
|
||||
$message_transcription = $transcribe->transcribe();
|
||||
$message_transcription = $transcribe->transcribe('text');
|
||||
|
||||
//build voicemail message data array
|
||||
if (!empty($message_transcription)) {
|
||||
|
||||
Reference in New Issue
Block a user