mirror of
https://github.com/3b1b/manim.git
synced 2025-07-28 12:32:36 +08:00
11 lines
287 B
Python
11 lines
287 B
Python
from manimlib.utils.file_ops import find_file
|
|
from manimlib.utils.directories import get_sound_dir
|
|
|
|
|
|
def get_full_sound_file_path(sound_file_name) -> str:
|
|
return find_file(
|
|
sound_file_name,
|
|
directories=[get_sound_dir()],
|
|
extensions=[".wav", ".mp3", ""]
|
|
)
|