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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file PySegmentKit-0.2.1.tar.gz.

File metadata

  • Download URL: PySegmentKit-0.2.1.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/50.3.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for PySegmentKit-0.2.1.tar.gz
Algorithm Hash digest
SHA256 14855dde20f40775bb93e5de7b11839ba7db522b417d85e5994807ed0c5112e9
MD5 4fe7fde6912ccbc94636d0d85b4e2999
BLAKE2b-256 ac3c8758569670e6cf3af5267f8863579b050e14e89df278000e502fc45a4fd5

See more details on using hashes here.

File details

Details for the file PySegmentKit-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: PySegmentKit-0.2.1-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/50.3.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for PySegmentKit-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c448d77cf309258af3b95517d021ade14ebb41d841c4bd3fb3444c63520aa50
MD5 d35faa3d656d9788f5cdbd534cf0c927
BLAKE2b-256 1899dcb067b7569c5c5b17151fe8388c1ea658b333beb506684d579b6fa1d7c5

See more details on using hashes here.

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