-
Notifications
You must be signed in to change notification settings - Fork 521
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 RimeTTSService #1163
base: main
Are you sure you want to change the base?
Add RimeTTSService #1163
Conversation
@aconchillo good feedback! I updated those points. I'm seeing an issue with the word timings. I think the timings are faster than the audio stream which results in: 1) incorrectly timed onTtsText callbacks (for RTVI), 2) not getting the complete text into the LLM context. I reached out to Rime to see if this is an issue that they're aware of. For now, I'll leave this as a draft. |
ac7e7b8
to
97586b1
Compare
self._started = False | ||
self._context_id = None | ||
|
||
def _calculate_word_times(self, words: list, starts: list, ends: list) -> list: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It feels like the ends
list is included as a function argument, but it is never actually used in the function logic. Do we need it here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do need to pass ends
for the zip iteration, but don't need it in the loop. So, I'm updating to make that clear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a comment about one possible improvement, but everything looks good.
Codecov ReportAttention: Patch coverage is
|
Please describe the changes in your PR. If it is addressing an issue, please reference that as well.
In progress. Waiting to resolve a few things related to word/timestamp alignment.