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.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 | |
|---|---|---|---|
| ko_speech_tools-0.1.0.tar.gz | 987.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ko_speech_tools-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.0 MB
Release files / ko_speech_tools-0.1.0.tar.gz
| Download URL | ko_speech_tools-0.1.0.tar.gz |
|---|---|
| Size | 987.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dcc5af8bd9f2a9d2260dcc36617d6de65106be625958302525068e81f94b2b1d
|
|
BLAKE2b-256 checksum How to use checksums |
41fa51b14366b2a1bb958fb748be67a58519ac4b5aeea0faa3b31c8431f63b2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.8.22
|
Release files / ko_speech_tools-0.1.0-py3-none-any.whl
| Download URL | ko_speech_tools-0.1.0-py3-none-any.whl |
|---|---|
| Size | 997.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0fa57d6eb1d5a126a2f10df93dd21355298839c1048865ead1b4bb07695e3f33
|
|
BLAKE2b-256 checksum How to use checksums |
e859f0cb1c0d5632ee647129e8272c3534554b395be013a134534fdc03e29914
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.8.22
|