progress made

This commit is contained in:
2025-08-11 20:31:48 -07:00
parent 805af2f199
commit 304b5de40b
15 changed files with 4028 additions and 404 deletions

View File

@@ -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;
}