elevenlabs-python icon indicating copy to clipboard operation
elevenlabs-python copied to clipboard

Saving does not work

Open mhmtemnacr opened this issue 5 months ago • 0 comments

I try to save the generated audio. But it's not working and I can't find an exported mp3 file. Not giving any errors either.

from elevenlabs import save
from elevenlabs.client import ElevenLabs
...
self.client = ElevenLabs(
            api_key=self.api_key,  # Defaults to ELEVEN_API_KEY
        )
audio = self.client.generate(
                    text=text,
                    voice=self.voice,
                    model="eleven_multilingual_v2"
                )
save(audio, filepath)

mhmtemnacr avatar Sep 22 '24 23:09 mhmtemnacr