Add your description here
Project description
RTTM Exporter and Importer
Example
- Emport RTTM
from rttm_manager import import_rttm
file_name = "example.rttm"
rttm_list = import_rttm(file_name)
- Export RTTM
from rttm_manager import RTTM
from rttm_manager import export_rttm
rttms = [
RTTM(
type="SPEAKER",
file_id="sample",
channel_id=1,
turn_onset=9.00,
turn_duration=1.00,
speaker_name="speech",
orthography_field=None,
speaker_type=None,
confidence_score=0.00,
signal_lookahead_time=0.0,
)
]*3
file_name = "example.rttm"
export_rttm(rttms, file_name)
"""
SPEAKER sample 1 9.00 1.00 <NA> <NA> speech 0.00 0.00
SPEAKER sample 1 9.00 1.00 <NA> <NA> speech 0.00 0.00
SPEAKER sample 1 9.00 1.00 <NA> <NA> speech 0.00 0.00
"""
Installation
pip install rttm_manager
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rttm_manager-0.1.8-py3-none-any.whl.
File metadata
- Download URL: rttm_manager-0.1.8-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4b6e76f5447f56fdd4843fdc1fc7d6745ed7acaff5844b9b5f99d8f8c2bb171
|
|
| MD5 |
3791db15a190566c3497e8e62cc8bac5
|
|
| BLAKE2b-256 |
79379897c0a7f5ace42e63fc2d588ea40634aac9e82e4bfe6cdf772e02af8a60
|