Skip to main content

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


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.1.tar.gz (3.7 MB view hashes)

Uploaded Source

Built Distribution

PySegmentKit-0.2.1-py3-none-any.whl (3.7 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page