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

Audio Corrupted using save()

Open DDGC16 opened this issue 1 year ago • 2 comments

Hi has anyone encountered the same problem as me? When I try to open the saved audio using the save() method, it says that the file is either corrupt or in the wrong format.

from elevenlabs import play,save from elevenlabs.client import ElevenLabs

client = ElevenLabs( api_key="my api key", )

audio = client.generate( text="Hello!", voice="Rachel", model="eleven_multilingual_v2" ) play(audio) save(audio,"filepath\GeneratedAudio.mp3")

This is my code by the way. Any help will be appreciated.

DDGC16 avatar Mar 23 '24 05:03 DDGC16

Did you find a solution? I run into the same problem.

RussellReibold avatar Apr 22 '24 17:04 RussellReibold

You should not play the sound before saving, leave the option to play the sound online, just to save the file. Good luck brother =)))

tuha1994 avatar May 22 '24 09:05 tuha1994