progress made
This commit is contained in:
@@ -22,6 +22,12 @@ class TWP_ElevenLabs_API {
|
||||
* Convert text to speech
|
||||
*/
|
||||
public function text_to_speech($text, $voice_id = null) {
|
||||
// Handle both string voice_id and options array
|
||||
if (is_array($voice_id)) {
|
||||
$options = $voice_id;
|
||||
$voice_id = isset($options['voice_id']) ? $options['voice_id'] : null;
|
||||
}
|
||||
|
||||
if (!$voice_id) {
|
||||
$voice_id = $this->voice_id;
|
||||
}
|
||||
|
Reference in New Issue
Block a user