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

110 review and test voice cloning task #132

Merged
merged 11 commits into from
Aug 16, 2024

Conversation

fabiocat93
Copy link
Collaborator

PR to address the questions in #110

@fabiocat93 fabiocat93 linked an issue Aug 8, 2024 that may be closed by this pull request
4 tasks
@fabiocat93 fabiocat93 self-assigned this Aug 8, 2024
@fabiocat93 fabiocat93 added documentation Improvements or additions to documentation enhancement New feature or request release minor Minor release labels Aug 8, 2024
@fabiocat93
Copy link
Collaborator Author

fabiocat93 commented Aug 8, 2024

hi @900miles, can you please review this?

  • I have added some proper doc introducing the task and fixed the docstring and made it in g-style
  • adjusted the problems with **kwargs
  • made the knnvc error messages more specific
  • added tests with more than 2 elements

@codecov-commenter
Copy link

codecov-commenter commented Aug 8, 2024

Codecov Report

Attention: Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.

Project coverage is 59.43%. Comparing base (1de846f) to head (a72b51b).
Report is 6 commits behind head on main.

Files Patch % Lines
src/tests/audio/tasks/voice_cloning_test.py 0.00% 6 Missing ⚠️
src/senselab/audio/tasks/voice_cloning/knnvc.py 0.00% 3 Missing ⚠️
src/senselab/audio/tasks/voice_cloning/__init__.py 0.00% 1 Missing ⚠️
src/senselab/audio/tasks/voice_cloning/api.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #132      +/-   ##
==========================================
+ Coverage   59.33%   59.43%   +0.10%     
==========================================
  Files          83       84       +1     
  Lines        2850     2845       -5     
==========================================
  Hits         1691     1691              
+ Misses       1159     1154       -5     

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

Copy link
Collaborator

@900miles 900miles left a comment

Choose a reason for hiding this comment

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

Looks great! Just a couple comments for clarity.

src/senselab/audio/tasks/voice_cloning/api.py Show resolved Hide resolved
source_audios (List[Audio]): A list of source audio samples.
target_audios (List[Audio]): A list of target audio samples.
model (SenselabModel, optional): The model to use for voice cloning.
Defaults to TorchModel(path_or_uri="bshall/knn-vc", revision="master").
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should specify in the documentation itself that as of now, only KNNVC is supported.

@fabiocat93
Copy link
Collaborator Author

@900miles thank you. i think i have fixed the last comments. feel free to approve the code if you think it's ready to be merged.

Copy link
Collaborator

@900miles 900miles left a comment

Choose a reason for hiding this comment

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

Thanks, just a couple more comments

Copy link
Collaborator

Choose a reason for hiding this comment

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

The colab link in this file points to the speech-to-text tutorial

This function performs a pairwise voice cloning operation, where each audio in the
`source_audios` list is converted and mapped onto the corresponding audio in the
`target_audios` list. The resulting list contains target audio samples with their
voices replaced by the voices from the corresponding source samples.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm pretty sure this is backwards. The resulting list contains the content of the source audio file with the voice changed to sound like the voice in the corresponding target audio file, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

nice catch

@fabiocat93
Copy link
Collaborator Author

Thanks, just a couple more comments

It should be ready for another review @900miles

Copy link
Collaborator

@900miles 900miles left a comment

Choose a reason for hiding this comment

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

Looks great, thanks @fabiocat93!

@fabiocat93 fabiocat93 merged commit 7b501fa into main Aug 16, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request minor Minor release release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Review and test voice cloning task
3 participants