forked from mrq/tortoise-tts
allow mp3 voices
This commit is contained in:
parent
e857911fca
commit
87cfba0d31
|
@ -87,7 +87,7 @@ def get_voices():
|
||||||
for sub in subs:
|
for sub in subs:
|
||||||
subj = os.path.join('voices', sub)
|
subj = os.path.join('voices', sub)
|
||||||
if os.path.isdir(subj):
|
if os.path.isdir(subj):
|
||||||
voices[sub] = glob(f'{subj}/*.wav')
|
voices[sub] = list(glob(f'{subj}/*.wav')) + list(glob(f'{subj}/*.mp3'))
|
||||||
return voices
|
return voices
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user