mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
* 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
21 lines
681 B
PHP
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;
|
|
}
|
|
}
|
|
|
|
?>
|