Files
fusionpbx/core/ai/resources/interfaces/ai_speech.php
frytimo 502ba07c53 Ai elevenlabs io engine (#6932)
* allow settings to load domain and user settings

* ensure the engine is also enabled before attempting to create a new object

* add default values to stop undefined variable warnings

* enforce all models to set and return voices and languages

* enforce all models to set and return languages

* ensure speech_enabled is set by the current session

* create elevenlabs implementation of ai speech

* Update ai_elevenlabs.php
2024-03-30 14:16:16 -06:00

21 lines
681 B
PHP

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