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

Code examples suggestions

Open u-m-i opened this issue 1 year ago • 0 comments

Basically...

To use correctly play method in Windows and in the simplest way possible, it's necessary to set the use_ffmpeg=False and to install sounddevice, soundfile and numpy,

A code snippet:

voice = Voice(
        voice_id = catalogue.voices[3].voice_id,
        settings = voice_settings
        )

audio_ = client.generate(
        text="This is a test for Windows 10 or any Windows",
        voice = voice)

# Test for windows
play(audio=audio_, use_ffmpeg=False)

So I propose to leave it on one comment in the README's examples that uses play, so it's easy and convenient for Windows users.

Also if it can be included into the dependencies of the package would be much easier

u-m-i avatar Mar 26 '24 02:03 u-m-i