A python-port of julius-speech/segmentation-kit
Project description
PySegmentKit
A python-port of julius-speech/segmentation-kit
- No more Perl
- No more edit original script to set options
Usage
from PySegmentKit import PySegmentKit, PSKError
sk = PySegmentKit(input(),
disable_silence_at_ends=False,
leave_dict=False,
debug=False,
triphone=False,
input_mfcc=False)
try:
segmented = sk.segment()
for result in segmented.keys():
print("=====Segmentation result of {}.wav=====".format(result))
for begintime, endtime, unit in segmented[result]:
print("{:.7f} {:.7f} {}".format(begintime, endtime, unit))
except PSKError as e:
print(e)
Install as a third-party library
- PyPI
$ pip install PySegmentKit
Use as a CLI
- Copy
$ git clone https://github.com/urushiyama/PySegmentKit.git
$ python PySegmentKit/main.py -h # show detailed usage
License
This library is released under MIT License.
The original perl script, julius-speech/segmentation-kit, is released under MIT License.
This library bundles some binaries of Julius, which is released under BSD 3-Clause "New" or "Revised" License.
Please refer to ACKNOWLEDGEMENTS.md for detail.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PySegmentKit-0.2.0.tar.gz
(3.7 MB
view details)
Built Distribution
File details
Details for the file PySegmentKit-0.2.0.tar.gz
.
File metadata
- Download URL: PySegmentKit-0.2.0.tar.gz
- Upload date:
- Size: 3.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83f59e2e3137de432375829cfc40513788b1196e2c87ff6f90c023a15d8a45c6 |
|
MD5 | bf4bcd4b6caba18e4e8cd8dc3584d9fa |
|
BLAKE2b-256 | f15d7b6e79c7cdf1524fae6387809c5e1760dac0d7434f796ff0758f454c1569 |
File details
Details for the file PySegmentKit-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: PySegmentKit-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4642a44205bd3db133d62ba7ae71a97e909620936d4373543c69f002d4e4cc45 |
|
MD5 | ad1bdef3f86a8a51d9f4a67c6fcaea11 |
|
BLAKE2b-256 | 4cd238e656a9cb91f5730f45637ff5bce24efd0f69ba61e59c6bffb3b9a7b44c |