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

feat/tts_mutator #175

Closed
wants to merge 2 commits into from
Closed

feat/tts_mutator #175

wants to merge 2 commits into from

Conversation

JarbasAl
Copy link
Member

@JarbasAl JarbasAl commented Sep 14, 2023

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

@JarbasAl JarbasAl added the enhancement New feature or request label Sep 14, 2023
@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

❗ No coverage uploaded for pull request base (dev@11d50c0). Click here to learn what that means.
Patch has no changes to coverable lines.

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.
📢 Have feedback on the report? Share it here.

Copy link

@ChanceNCounter ChanceNCounter left a 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

@JarbasAl
Copy link
Member Author

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

Copy link
Contributor

@mikejgray mikejgray left a 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).
Copy link
Contributor

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.
Copy link
Contributor

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

@JarbasAl
Copy link
Member Author

JarbasAl commented Oct 6, 2023

replaced by #179

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants