한국어 | 日本語 | 简体中文 | 繁體中文 | English
HayaKoe
Style-Bert-VITS2를 기반으로 한 고속 일본어 TTS 라이브러리입니다.
설치부터 파라미터 조절, 자체 화자 학습, 서버 배포, 아키텍처 상세까지 모든 내용은 문서 사이트 에 정리해 두었습니다.
Based on Style-Bert-VITS2 by litagin02 (AGPL-3.0)
특징
- ONNX 최적화: CPU 실시간 추론 (원본 Style-Bert-VITS2 대비 1.3~3.2 배 빠르고 RAM 82% 절감)
- torch 불필요: CPU 추론 시 PyTorch 없이 동작 (경량 설치)
- 간결한 API: 체이닝 한 줄
TTS().load(...).prepare() - 소스 플러그형: HuggingFace / S3 / 로컬 경로를 섞어서 사용 가능
- Thread-safe: 싱글톤 서빙 (FastAPI 등)에서 동기/비동기 양쪽 지원
- JP-Extra 모델: Style-Bert-VITS2 JP-Extra, DeBERTa JP
- 영어→카타카나 자동 변환: 22만 엔트리 외래어 사전 룩업 (의존성 없음)
설치
CPU (기본, torch 불필요)
pip
pip install hayakoe
uv
uv add hayakoe
Poetry
poetry add hayakoe
GPU (PyTorch CUDA 별도 설치 필요)
pip
pip install torch --index-url https://download.pytorch.org/whl/cu126
pip install hayakoe[gpu]
uv
uv add torch --index https://download.pytorch.org/whl/cu126
uv add hayakoe --extra gpu
Poetry
pip install torch --index-url https://download.pytorch.org/whl/cu126
poetry add hayakoe -E gpu
기본 모델은 HuggingFace에서 자동으로 내려받습니다.
자체 학습한 화자는 private HF 레포 / S3 / 로컬 경로 중 어디에든 둘 수 있습니다.
사용법
from hayakoe import TTS
tts = TTS().load("jvnv-F1-jp").prepare()
tts.speakers["jvnv-F1-jp"].generate("こんにちは").save("output.wav")
GPU에서 실행하려면 TTS()를 TTS(device="cuda")로 바꾸면 됩니다.
공식 화자
| 이름 | 설명 | 스타일 |
|---|---|---|
jvnv-F1-jp |
여성 화자 1 | Neutral, Happy, Sad, Angry, Fear, Surprise, Disgust |
jvnv-F2-jp |
여성 화자 2 | 〃 |
jvnv-M1-jp |
남성 화자 1 | 〃 |
jvnv-M2-jp |
남성 화자 2 | 〃 |
tsukuyomi_chan |
つくよみちゃん — 애니메이션풍 | Neutral |
amitaro_normal |
あみたろ — 노멀 | Neutral |
amitaro_runrun |
あみたろ — 설렘 | Neutral |
amitaro_yofukashi |
あみたろ — 차분 | Neutral |
amitaro_punsuka |
あみたろ — 화남 | Neutral |
amitaro_sasayaki_a |
あみたろ — 속삭임A | Neutral |
amitaro_sasayaki_b |
あみたろ — 속삭임B | Neutral |
각 화자의 음성 샘플은 문서 사이트에서 직접 들어 볼 수 있습니다.
더 알아보기
- 첫 음성 만들기: 여러 문장, bytes로 받기, 여러 화자 올리기
- 속도·운율 조절: 말속도, 피치, 억양, 스타일, phoneme 타이밍
- 커스텀 단어 등록: pyopenjtalk가 모르는 고유명사의 읽기와 악센트
- 문장 단위 스트리밍: 첫 문장부터 바로 재생
- 서버로 배포: FastAPI 싱글톤 서빙, Docker 빌드 시점 다운로드
- FAQ: 캐시 경로, private HuggingFace · S3 소스, 내부 로그 보기
- 자체 화자 학습: 데이터 준비부터 학습, 품질 리포트, 배포까지
- 깊이 읽기: 아키텍처와 최적화 기법
라이선스
- 코드: AGPL-3.0 (원본 Style-Bert-VITS2)
- 유저 사전 모듈 (
user_dict): LGPL-3.0 (VOICEVOX ENGINE 유래) - JVNV 음성 모델: CC BY-SA 4.0 (JVNV Corpus)
- 사전학습 모델 (DeBERTa): CC BY-SA 4.0 (ku-nlp/deberta-v2-large-japanese-char-wwm)
- 영어→카타카나 사전 데이터: GPL-3.0 (loanwords_gairaigo)
라이선스 전문은 LICENSE · LGPL_LICENSE · GPL_LICENSE 파일에 있으며, 배포 패키지(wheel)의 hayakoe-*.dist-info/licenses/에도 동봉됩니다.
Credits
- Style-Bert-VITS2 by litagin02
- Bert-VITS2 by Fish Audio
- JVNV Corpus: 일본어 감정 음성 코퍼스
- loanwords_gairaigo by James O'Hortle: 영어→카타카나 사전 데이터
Metadata
Release files for hayakoe 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hayakoe-1.4.0.tar.gz | 1.9 MB | With provenance | Details for hayakoe-1.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hayakoe-1.4.0-py3-none-any.whl | Python 3 | none | any | Details for hayakoe-1.4.0-py3-none-any.whl |
Total release size: 3.9 MB
Release files / hayakoe-1.4.0.tar.gz
| Download URL | hayakoe-1.4.0.tar.gz |
|---|---|
| Size | 1.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0802c791e17e3b110f028532f739cb570cc7aaf8662592bbd102de73e903b4ea
|
|
BLAKE2b-256 checksum How to use checksums |
862d0982db6f62d099100f5e6c115e2602701e6c35a7c4fbc55f4375ddfff98e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logRelease files / hayakoe-1.4.0-py3-none-any.whl
| Download URL | hayakoe-1.4.0-py3-none-any.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b03c3cb5dcee751429d2a16f9514dc9dff4dc01e68ea73f2ed404a617ab9c29
|
|
BLAKE2b-256 checksum How to use checksums |
4fef684c302d30c8856705c09bba8c926f6b8ab67b3bd06c9593a5dc4853b0e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logSecurity for hayakoe 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for hayakoe-1.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.