File size: 759 Bytes
3883c60
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from setup_tools.magicinstaller.requirement import Requirement, SimpleRequirement


class Bark(SimpleRequirement):

    def is_installed(self):
        return self.install_check('suno-bark')

    def install(self) -> tuple[int, str, str]:
        return self.install_pip('git+https://github.com/suno-ai/bark.git@6921c9139a97d0364208407191c92ec265ef6759', 'bark')


class SoundFileOrSox(SimpleRequirement):

    def is_installed(self):
        if self.is_windows():
            return self.install_check('soundfile')
        else:
            return self.install_check('sox')

    def install(self) -> tuple[int, str, str]:
        if self.is_windows():
            return self.install_pip('soundfile')
        else:
            return self.install_pip('sox')