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.2.1.post1.tar.gz (870.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pysaten-1.2.1.post1-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

pysaten-1.2.1.post1-py2.py3-none-any.whl (19.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: pysaten-1.2.1.post1.tar.gz
  • Upload date:
  • Size: 870.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for pysaten-1.2.1.post1.tar.gz
Algorithm Hash digest
SHA256 450622ec29d925efcca2f15a254b4ff29217eda234ff276c34ba63a3d5334820
MD5 0bc48642490258eb1b9428504a3c9d1e
BLAKE2b-256 4789e2ed3e54e4635bf6cb499fed938c7f7be55c8e81e6f6f94dcad272012c45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysaten-1.2.1.post1-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for pysaten-1.2.1.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 a05e7796a513a7b9d9dbb5819d2a34376a792f727f31a2c7af7f8ca26c3ccaf4
MD5 157d07bc5707dc7494744a8bcc7f89f2
BLAKE2b-256 abb6b0b041454dce321009764762a6128f9d2e656c8400a1511df0f4a32b6a04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysaten-1.2.1.post1-py2.py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for pysaten-1.2.1.post1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a3d21afe02e57d9160f16fda7d23bb1d57ef75285bd3e82b8c838331973b7d50
MD5 cb8fe7a5625f28c9eb99d01caf395283
BLAKE2b-256 0eee959c98e8af714674bf9ae4c0a2d4b799bee183bd68ed6afd8e5a8d27f8c1

See more details on using hashes here.

Supported by

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