Korean Speech Tools
This package contains a variety of tools for Korean speech and language processing, including:
- Hangul romanization.
- Jamo conversion.
- Grapheme-to-phoneme conversion (G2P).
It is mostly a collection of previously existing libraries that are unmaintained or include unnecessary dependencies that have been removed here. Refer to the Credits section below for details.
Installation
pip install ko-speech-tools
The core part of this package does not have any external dependencies. For G2P, the mecab-ko package is required, which can be installed with:
pip install ko-speech-tools[g2p]
Usage
Romanization:
>>> from ko_speech_tools import hangul_romanize
>>> hangul_romanize("물엿")
'mul-yeos'
Jamo conversion (documentation):
>>> from ko_speech_tools.jamo import h2j, j2hcj, j2h
>>> h2j('한굴')
'한굴'
>>> j2hcj(h2j('한굴'))
'ㅎㅏㄴㄱㅜㄹ'
>>> j2h('ㅇ', 'ㅕ', 'ㅇ')
'영'
G2P:
>>> from ko_speech_tools import G2p
>>> g2p = G2p()
>>> g2p("것입니다")
'거심니다'
Credits
This package combines and adapts the following packages:
g2pkk: https://github.com/harmlessman/g2pkk (Apache-2.0), a fork of https://github.com/Kyubyong/g2pKhangul_romanize: https://github.com/youknowone/hangul-romanize (BSD-2-Clause)jamo: https://github.com/jdongian/python-jamo (Apache-2.0)
It additionally uses code from https://github.com/keithito/tacotron (MIT) to read CMUdict data.
The respective code can be used under the original license, see the individual files for details. Any new code is made available under Apache-2.0.
Metadata
Release files for ko-speech-tools 0.1.1
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 |
|---|---|---|---|---|
| ko_speech_tools-0.1.1.tar.gz | 991.1 kB | Without provenance | Details for ko_speech_tools-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ko_speech_tools-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for ko_speech_tools-0.1.1-py3-none-any.whl |
Total release size: 2.0 MB
Release files / ko_speech_tools-0.1.1.tar.gz
| Download URL | ko_speech_tools-0.1.1.tar.gz |
|---|---|
| Size | 991.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
849adafc236928d24bd9116158d285661b3ce82f6de0d9acfd9ef8f6facc175f
|
|
BLAKE2b-256 checksum How to use checksums |
d545fb287d1bac3eb38b10bb8fd1677806235362f7cf5c2572d6a00b81962691
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / ko_speech_tools-0.1.1-py3-none-any.whl
| Download URL | ko_speech_tools-0.1.1-py3-none-any.whl |
|---|---|
| Size | 997.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e3d420949afcac20c036389d2572e4c6c0200ba6a8ef0e178627bd98b35600e
|
|
BLAKE2b-256 checksum How to use checksums |
cc114b4b073167374e1d5e7bf2aa138dc8f3e864c26ee4419d95fb4bf92ce7d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for ko-speech-tools 0.1.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.