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

Add isFinished to rn-playback event #609

Merged
merged 1 commit into from
Jun 9, 2024
Merged

Conversation

jbaudanza
Copy link
Contributor

The purpose of this PR is to support chunked transfer-encoded HTTP requests, such as those returned from OpenAI and ElevenLabs Text-to-speech APIs.

Since these http requests don't contain a content-length, we can't rely on the duration to determine when they have finished.

Copy link
Owner

@hyochan hyochan left a comment

Choose a reason for hiding this comment

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

How about changing variable name to hasChanged?

@hyochan hyochan added the 🎯 feature New feature label Jun 9, 2024
@jbaudanza
Copy link
Contributor Author

How about changing variable name to hasChanged?

Sure, but can you explain the name a bit? I'm not sure what "changed" is referring to in this context. Does it mean the playback state has changed from playing to finished?

@hyochan
Copy link
Owner

hyochan commented Jun 9, 2024

How about changing variable name to hasChanged?

Sure, but can you explain the name a bit? I'm not sure what "changed" is referring to in this context. Does it mean the playback state has changed from playing to finished?

Oh I am so sorry. I meant hasFinished. I thought has is better choice in this case.
However, I justed asked chatgpt and found that isFinished is better here.

Screenshot 2024-06-09 at 8 39 57 PM

Let me merge this!

@hyochan hyochan merged commit db0d5ef into hyochan:main Jun 9, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎯 feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants