forked from mrq/tortoise-tts
allow mp3 voices
This commit is contained in:
parent
e8966d09cf
commit
782a55d0cd
|
@ -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