MCPcopy Index your code
hub / github.com/elebumm/RedditVideoMakerBot / create_silence_mp3

Method create_silence_mp3

TTS/engine_wrapper.py:170–178  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

168 self.length = 0
169
170 def create_silence_mp3(self):
171 silence_duration = settings.config["settings"]["tts"]["silence_duration"]
172 silence = AudioClip(
173 frame_function=lambda t: np.sin(440 * 2 * np.pi * t),
174 duration=silence_duration,
175 fps=44100,
176 )
177 silence = silence.with_effects([MultiplyVolume(0)])
178 silence.write_audiofile(f"{self.path}/silence.mp3", fps=44100, logger=None)
179
180
181def process_text(text: str, clean: bool = True):

Callers 1

split_postMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected