mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
12 lines
328 B
Python
12 lines
328 B
Python
from __future__ import annotations
|
|
|
|
from manimlib.utils.directories import get_sound_dir
|
|
from manimlib.utils.file_ops import find_file
|
|
|
|
|
|
def get_full_sound_file_path(sound_file_name: str) -> str:
|
|
return find_file(
|
|
sound_file_name,
|
|
directories=[get_sound_dir()],
|
|
extensions=[".wav", ".mp3", ""]
|
|
)
|