3b1b-manim/manimlib/utils/sounds.py

11 lines
287 B
Python
Raw Normal View History

2021-01-23 11:02:02 -08:00
from manimlib.utils.directories import get_sound_dir
2022-04-12 19:19:59 +08:00
from manimlib.utils.file_ops import find_file
def get_full_sound_file_path(sound_file_name) -> str:
return find_file(
2019-01-24 22:24:01 -08:00
sound_file_name,
2021-01-23 11:02:02 -08:00
directories=[get_sound_dir()],
extensions=[".wav", ".mp3", ""]
2019-01-24 22:24:01 -08:00
)