Skip to content

Reconnect to TTS stream if it returns an error#27

Merged
vladmaraev merged 1 commit intomasterfrom
feature/tts-stream-reconnect
Aug 29, 2025
Merged

Reconnect to TTS stream if it returns an error#27
vladmaraev merged 1 commit intomasterfrom
feature/tts-stream-reconnect

Conversation

@vladmaraev
Copy link
Owner

This change implements ReconnectingEventSource instead of EventSource
for TTS. It uses the wrapper
https://github.com/fanout/reconnecting-eventsource which reconnects in
case EventSource responds with an error (i.e. error 500).

Copy link
Collaborator

@fredrik-talkamatic fredrik-talkamatic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks simple and good!

This change implements ReconnectingEventSource instead of EventSource
for TTS. It uses the wrapper
https://github.com/fanout/reconnecting-eventsource which reconnects in
case EventSource responds with an error (i.e. error 500).
@vladmaraev vladmaraev force-pushed the feature/tts-stream-reconnect branch from 28a2d87 to e382ba5 Compare August 29, 2025 14:17
@vladmaraev vladmaraev merged commit 1ec236b into master Aug 29, 2025
1 check passed
vladmaraev added a commit to Talkamatic/tala-speech that referenced this pull request Aug 29, 2025
vladmaraev added a commit to Talkamatic/tala-speech that referenced this pull request Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants