Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.10.0: dubbing.dub_a_video_or_an_audio_file AttributeError: 'ellipsis' object has no attribute 'read' #386

Open
brianshin22 opened this issue Oct 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@brianshin22
Copy link

brianshin22 commented Oct 23, 2024

Description

dubbing api call results in error in release 1.10.0

** Steps to reproduce **
python 3.10

  1. pip install elevenlabs==1.10.0
  2. Create elevenlabs client, call client.dubbing.dub_a_video_or_an_audio_file(source_url, target_lang, ...)
  3. Result: AttributeError: 'ellipsis' object has no attribute 'read'

httpx -> _multipart.py
--> [181] chunk = self.file.read(self.CHUNK_SIZE)
[182] while chunk:
[183] yield to_bytes(chunk)

Code example

from elevenlabs import ElevenLabs

...

client = ElevenLabs(
    ...
)

source_url = "https://www.youtube.com/watch?v=v4t0E3S1N1k"
source_language = "en"
target_language = "es"

response = client.dubbing.dub_a_video_or_an_audio_file(
        source_url=source_url,
        target_lang=target_language,
        source_lang=source_language,
        num_speakers=1,
        watermark=True,  # reduces the characters used
)
dubbing_id = response.dubbing_id
print(dubbing_id)

Additional context

Current workaround:
revert to 1.9.0
Have not looked into the source of the error, but have verified that reverting to previous release (1.9.0) fixes the error.
Could be incompatibility with httpx module (0.23.3 installed)

@brianshin22 brianshin22 added the bug Something isn't working label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant