()
| 24 | from inspiremusic.utils.audio_utils import trim_audio, fade_out, process_audio |
| 25 | |
| 26 | def env_variables(): |
| 27 | os.environ['PYTHONIOENCODING'] = 'UTF-8' |
| 28 | os.environ['TOKENIZERS_PARALLELISM'] = 'False' |
| 29 | current_working_dir = os.getcwd() |
| 30 | main_root = os.path.realpath(os.path.join(current_working_dir, '../../')) |
| 31 | bin_dir = os.path.join(main_root, 'inspiremusic') |
| 32 | third_party_matcha_tts_path = os.path.join(main_root, 'third_party', 'Matcha-TTS') |
| 33 | python_path = f"{main_root}:{bin_dir}:{third_party_matcha_tts_path}:{os.environ.get('PYTHONPATH', '')}" |
| 34 | os.environ['PYTHONPATH'] = python_path |
| 35 | sys.path.extend([main_root, third_party_matcha_tts_path]) |
| 36 | |
| 37 | class InspireMusicModel: |
| 38 | def __init__(self, |
no outgoing calls
no test coverage detected