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

Stream is not working in production #338

Open
muhammad-grayphite opened this issue Aug 6, 2024 · 1 comment
Open

Stream is not working in production #338

muhammad-grayphite opened this issue Aug 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@muhammad-grayphite
Copy link

muhammad-grayphite commented Aug 6, 2024

I am using Streaming and I have deployed the app on huggingface, here is the code

audio = elevenlabs_client.generate(
        text=text,
        voice="Adam",
        model="eleven_turbo_v2_5",
        stream=True,
        optimize_streaming_latency=3
    )
 stream(audio)

but for some reason getting this error in stream function

Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories
Exception in thread Thread-7 (text_to_speech_file):
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/src/app/caller_v2.py", line 35, in text_to_speech_file
    stream(audio)
  File "/usr/local/lib/python3.10/site-packages/elevenlabs/play.py", line 91, in stream
    mpv_process.stdin.flush()  # type: ignore
BrokenPipeError: [Errno 32] Broken pipe

Things to considered I have installed all the spendencies and packages it required like mpv, ffmpeg
Screenshot 2024-08-07 at 2 58 59 AM

@dsinghvi dsinghvi added the bug Something isn't working label Aug 6, 2024
@muhammad-grayphite
Copy link
Author

muhammad-grayphite commented Aug 12, 2024

Hello, any update on this? Anyone??

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

2 participants