Files
fusionpbx/core/ai/resources/interfaces/ai_speech.php
FusionPBX 6c41c42a40 Fixed set_language error in transcribe
Changed two methods:
get_language_enabled to is_language_enabled
get_translate_enabled to is_translate_enabled
2024-03-25 12:10:16 -06:00

19 lines
586 B
PHP

<?php
//define the template class
if (!interface_exists('ai_speech')) {
interface ai_speech {
public function set_path(string $audio_path);
public function set_filename(string $audio_filename);
public function set_format(string $audio_format);
public function set_voice(string $audio_voice);
public function set_message(string $audio_message);
public function get_voices() : array;
public function is_language_enabled() : bool;
public function set_language(string $audio_language);
public function get_languages() : array;
public function speech() : bool;
}
}
?>