Closed jbaudanza closed 4 weeks ago
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?
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.
Let me merge this!
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.