diff --git a/crates/voicevox_core_python_api/python/voicevox_core/__init__.py b/crates/voicevox_core_python_api/python/voicevox_core/__init__.py index 2c33b8f59..efd215079 100644 --- a/crates/voicevox_core_python_api/python/voicevox_core/__init__.py +++ b/crates/voicevox_core_python_api/python/voicevox_core/__init__.py @@ -1,5 +1,4 @@ from . import _load_dlls # noqa: F401 - from ._models import ( # noqa: F401 AccelerationMode, AccentPhrase, @@ -10,7 +9,6 @@ ) from ._rust import METAS, SUPPORTED_DEVICES, VoicevoxCore # noqa: F401 - __all__ = [ "METAS", "SUPPORTED_DEVICES", diff --git a/example/python/README.md b/example/python/README.md index 2f1df5fa6..f079dbb46 100644 --- a/example/python/README.md +++ b/example/python/README.md @@ -52,7 +52,7 @@ run.py を実行します。 Open JTalk 辞書ディレクトリ、読み上げ ```console ❯ python ./run.py -h -usage: run.py [-h] [--mode MODE] [--dict-dir DICT_DIR] [--text TEXT] [--out OUT] [--speeker-id SPEEKER_ID] +usage: run.py [-h] [--mode MODE] [--dict-dir DICT_DIR] [--text TEXT] [--out OUT] [--speaker-id SPEAKER_ID] optional arguments: -h, --help show this help message and exit @@ -60,7 +60,7 @@ optional arguments: --dict-dir DICT_DIR Open JTalkの辞書ディレクトリ --text TEXT 読み上げさせたい文章 --out OUT 出力wavファイルのパス - --speeker-id SPEEKER_ID + --speaker-id SPEAKER_ID 話者IDを指定 ``` diff --git a/example/python/run.py b/example/python/run.py index 445e0c656..a44b7a303 100644 --- a/example/python/run.py +++ b/example/python/run.py @@ -8,8 +8,6 @@ import voicevox_core from voicevox_core import AccelerationMode, AudioQuery, VoicevoxCore -SPEAKER_ID = 0 - def main() -> None: logging.basicConfig(format="[%(levelname)s] %(name)s: %(message)s") @@ -71,13 +69,13 @@ def parse_args() -> Tuple[AccelerationMode, Path, str, Path, int]: help="出力wavファイルのパス", ) argparser.add_argument( - "--speeker-id", + "--speaker-id", default=0, type=int, help="話者IDを指定", ) args = argparser.parse_args() - return (args.mode, args.dict_dir, args.text, args.out, args.speeker_id) + return (args.mode, args.dict_dir, args.text, args.out, args.speaker_id) def display_as_json(audio_query: AudioQuery) -> str: