Add piper_version to config.json

This commit is contained in:
Michael Hansen
2023-06-25 15:19:57 -05:00
parent de76661106
commit 9f7702e3cd
2 changed files with 4 additions and 1 deletions

View File

@@ -1 +1 @@
0.1.0
1.0.0

View File

@@ -26,6 +26,8 @@ from .phonemize import (
phonemize,
)
_DIR = Path(__file__).parent
_VERSION = (_DIR / "VERSION").read_text(encoding="utf-8").strip()
_LOGGER = logging.getLogger("preprocess")
@@ -151,6 +153,7 @@ def main() -> None:
"num_symbols": MAX_PHONEMES,
"num_speakers": len(speaker_counts),
"speaker_id_map": speaker_ids,
"piper_version": _VERSION,
},
config_file,
ensure_ascii=False,