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

Dev.ej/convert to offline html #256

Merged
merged 4 commits into from
Dec 17, 2024
Merged

Conversation

joanise
Copy link
Member

@joanise joanise commented Dec 17, 2024

PR Goal?

Add an API function to convert a sequence of tokens to an Offline HTML file.

Fixes?

Related to EveryVoiceTTS/EveryVoice#439

Feedback sought?

general review and validation

Priority?

EV beta

Tests added?

yup

How to test?

The easiest is to exercise via EV: see EveryVoiceTTS/FastSpeech2_lightning#103

Confidence?

pretty high

Version change?

yeah, we've been adding features, so a minor bump would make sense soon. It'll be required before publishing EV with a requirement on this feature.

Copy link

semanticdiff-com bot commented Dec 17, 2024

Review changes with  SemanticDiff

Changed Files
File Status
  test/test_api.py  67% smaller
  readalongs/text/make_package.py  20% smaller
  readalongs/text/util.py  10% smaller
  readalongs/api.py  5% smaller

Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.06%. Comparing base (d28e070) to head (d47c24b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #256      +/-   ##
==========================================
+ Coverage   88.00%   88.06%   +0.06%     
==========================================
  Files          21       21              
  Lines        1800     1810      +10     
  Branches      326      327       +1     
==========================================
+ Hits         1584     1594      +10     
  Misses        179      179              
  Partials       37       37              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@roedoejet roedoejet left a comment

Choose a reason for hiding this comment

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

Looks good to me! A minor function renaming suggestion, but approving here anyways.

readalongs/api.py Outdated Show resolved Hide resolved
test/test_api.py Show resolved Hide resolved
readalongs/api.py Show resolved Hide resolved
%s/convert_to_readalong/convert_prealigned_text_to_readalong/g
%s/convert_to_offline_html/convert_prealigned_text_to_offline_html/g
@joanise joanise merged commit 75d7e27 into main Dec 17, 2024
4 checks passed
@joanise joanise deleted the dev.ej/convert-to-offline-html branch December 17, 2024 21:30
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