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

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.1.1.tar.gz (3.1 MB view details)

Uploaded Source

Built Distribution

PySegmentKit-0.1.1-py3-none-any.whl (3.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: PySegmentKit-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 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

Hashes for PySegmentKit-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4cd2f739734f3b47dd40eea0505cfa12f00d45114e72054e544cf9707aeebc5d
MD5 b7ae1ad51ae278fe8ecb67489642a7db
BLAKE2b-256 844758adc2c47a725afa58e85a85b8e6b0fdfafb036d87e53dccd1e25205bf50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PySegmentKit-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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

Hashes for PySegmentKit-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b997cd82327b3911d4e199d694e030995c10b75b2f9e4cd9b1b80a8ab77b2ef2
MD5 90c2d4e3032534b9994f2a331ac4ea5f
BLAKE2b-256 86f5db1412de7bfda311f02f0ddc2d95cd387affde3530909608e3d4c99c10f3

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