Skip to main content

Detect silence segment from speech signal.

Project description

pySATEN

PyPI - Version Downloads

About

This library detects silence segment from speech signal.

(alt: Image of voice segment detection)

Installation

pip install pysaten

Usage

Command line

Supported formats for reading with pysoundfile. The audio file that can be loaded is mono only.

pysaten_trim input.wav trimmed.wav

Python

import pysaten

# y: Target signal, obtained using libraries such as librosa or soundfile.
# sr: Sampling rate.

# Get trimmed signal for the speech segment only.
y_trimmed = pysaten.trim(y, sr)

# If you trim manually or want to get start/end time...
start_s, end_s = pysaten.vsed(y, sr)
y_trimmed = y[start_s * sr : end_s * sr]
# start_s: Start of speech segment. Unit is seconds.
# end_s: End of speech segment. Unit is seconds.

License

Copyright 2024 Fumiyoshi MATANO

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Acknowledgements

The following programs were used to test the performance of pysaten. We would like to take this opportunity to express our gratitude.

Cite this

Lv.1 / Library version 1.X

Japanese

俣野 文義,小口 純矢,森勢 将雅,``音声コーパス構築のための仮定を追加した発話区間検出法の提案と基礎評価,'' 日本音響学会第 152 回 (2024 年秋季) 研究発表会, pp.1161--1162 (2024.09).

English

F. Matano, J. Koguchi, M. Morise, ``Proposal and basic evaluation of a voice activity detection with additional assumptions for speech corpus construction,'' Proceedings of the 2024 Autumn meeting of the Acoustical Society of Japan, pp.1161--1162 (2024.09) (in Japanese).

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

pysaten-1.1.6.post1.tar.gz (882.8 kB view details)

Uploaded Source

Built Distribution

pysaten-1.1.6.post1-py2.py3-none-any.whl (31.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pysaten-1.1.6.post1.tar.gz.

File metadata

  • Download URL: pysaten-1.1.6.post1.tar.gz
  • Upload date:
  • Size: 882.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for pysaten-1.1.6.post1.tar.gz
Algorithm Hash digest
SHA256 3a54c0ad6040992fd4781b12f8d55e2b966596c572257f065745244cc891efe7
MD5 db8e6babd53ba177fe438cbd0df4d3ed
BLAKE2b-256 7fb401dd446030822e4d28da630bc8574e1f468e31d1f5896fabb4c9ee47f97e

See more details on using hashes here.

File details

Details for the file pysaten-1.1.6.post1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pysaten-1.1.6.post1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 68d2f73c86f1738b8b34ba71334bea89a0f00fe59f862862ecf5191422265605
MD5 5e70d9dc2aadad52d35b25d7588b9f04
BLAKE2b-256 2b7e338c18d93893a10e7914e3e08e8932ca188f90b0ebeb365c6d3d7f42e78e

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