feat: use correct lang_code
This commit is contained in:
parent
f22a5191a4
commit
242e6e0a05
1 changed files with 5 additions and 3 deletions
4
tts.py
4
tts.py
|
@ -138,7 +138,6 @@ def main():
|
||||||
# Disable all warnings
|
# Disable all warnings
|
||||||
warnings.filterwarnings("ignore")
|
warnings.filterwarnings("ignore")
|
||||||
|
|
||||||
pipeline = KPipeline(lang_code='a', device=args.device, repo_id='hexgrad/Kokoro-82M')
|
|
||||||
if args.voice in voices:
|
if args.voice in voices:
|
||||||
voice=voices[args.voice]
|
voice=voices[args.voice]
|
||||||
else:
|
else:
|
||||||
|
@ -168,6 +167,9 @@ def main():
|
||||||
name = name.replace("\\", "_")
|
name = name.replace("\\", "_")
|
||||||
name = name.replace("/", "_")
|
name = name.replace("/", "_")
|
||||||
|
|
||||||
|
lang_code = voice[0]
|
||||||
|
pipeline = KPipeline(lang_code=lang_code, device=args.device, repo_id='hexgrad/Kokoro-82M')
|
||||||
|
|
||||||
'''
|
'''
|
||||||
Split patterns:
|
Split patterns:
|
||||||
- only multiple consecutive new line (to handle wrapped statements)
|
- only multiple consecutive new line (to handle wrapped statements)
|
||||||
|
|
Loading…
Reference in a new issue