PrefectHQ/marvin

Can't save audio to a file

Dev-Khant opened this issue · 2 comments

First check

  • I added a descriptive title to this issue.
  • I used the GitHub search to try to find a similar issue and didn't find one.
  • I searched the Marvin documentation for this issue.

Bug summary

After generating speech using marvin.speak I'm unable to save it a audio file.

Reproduction

import marvin

audio = marvin.speak("I sure like being inside this fancy computer!")
audio.stream_to_file("fancy_computer.mp3")

Error

Traceback (most recent call last):
  File "/Users/darshit/Desktop/marvin/temp.py", line 8, in <module>
    audio.stream_to_file("fancy_computer.mp3")
    ^^^^^^^^^^^^^^^^^^^^
  File "/Users/darshit/Desktop/marvin/.venv/lib/python3.11/site-packages/pydantic/main.py", line 767, in __getattr__
    raise AttributeError(f'{type(self).__name__!r} object has no attribute {item!r}')
AttributeError: 'Audio' object has no attribute 'stream_to_file'

Versions

2.3.1

Additional context

No response

@zzstoatzz Can I work on this?

@zzstoatzz Can I work on this?

PRs are always welcome 🙂