-
Notifications
You must be signed in to change notification settings - Fork 11
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
feat/tts_mutator #175
feat/tts_mutator #175
Conversation
add effects to TTS via sox, such as speed and pitch changes ported from https://github.com/HelloChatterbox/text2speech/blob/master/text2speech/modules/__init__.py#L257
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## dev #175 +/- ##
=====================================
Coverage ? 0.00%
=====================================
Files ? 56
Lines ? 4417
Branches ? 0
=====================================
Hits ? 0
Misses ? 4417
Partials ? 0 ☔ View full report in Codecov by Sentry. |
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.
1100 lines is gonna take 5 or 10 passes to review, I suggest divide and conquer
it's just wrappers around the sox effects with lots of docstrs, you only need to validate a few of them in practice and confirm kwargs are passed correctly to the subprocess |
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 like this feature in general and it should be a lot of fun for different use cases. However, I'd feel a lot more comfortable approving it if there were some tests. Since we have so many possible interactions with the different sox flags I can imagine a lot of scenarios where they interact poorly.
|
||
def tremolo(self, speed=6.0, depth=40.0): | ||
""" | ||
Apply a tremolo (low frequency amplitude modulation) effect to the audio. The tremolo frequency in Hz is giv en by speed, and the depth as a percentage by depth (default 40). |
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.
Nit: given
not giv en
def chorus(self, gain_in=0.5, gain_out=0.9, n_voices=3, delays=None, | ||
decays=None, speeds=None, depths=None, shapes=None): | ||
""" | ||
Add a chorus effect to the audio. This can makeasingle vocal sound like a chorus, but can also be applied to instrumentation. |
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.
Nit: make a single
instead of makeasingle
replaced by #179 |
add effects to TTS via sox, such as speed and pitch changes
ported from https://github.com/HelloChatterbox/text2speech/blob/master/text2speech/modules/__init__.py#L257
obsoleted by #179