convertlab.3

来自「speech signal process tools」· 3 代码 · 共 90 行

3
90
字号
.\" Copyright (c) 1991 Entropic Research Laboratory, Inc.; All rights reserved.\" @(#)convertlab.3	1.3 30 Apr 1997 ERL.ds ]W (c) 1991 Entropic Research Laboratory, Inc..TH  CONVERTLAB 3\-ESPSsp 30 Apr 1997.SH NAMEconvertlab \- convert NIST/SPHERE (e.g., TIMIT) label file to waves+label file .SH SYNOPSIS.nf.ft B#include <stdio.h>#include <esps/unix.h>#include <esps/esps.h>intconvertlab(file_in, file_out, sf, mode, lab_color, unl_color)char *file_in;char *file_out;int  lab_color;	int  unl_color;	double sf;int mode;			.ft.fi.SH DESCRIPTION.PP\fIconvertlab\fP reads the time-marked labels in a SPHERE (TIMIT)label file \fIfile_in\fP, and writes an equivalent \fIwaves\fP+ label file \fIfile_out\fP.  The input file contains one label per line with three fields: (1) the starting sample number; (2) the ending sample number; and (3) the label text (which may include blanks).  .PPThe parameter \fIsf\fP is the sampling rate to be assumedby \fIconvertlab\fP when interpreting sample numbers.  .PPThe output file \fIfile_out\fP contains one label per line (after an initial line with "#"), with three fields: (1) the time (inseconds) of the label; (2) the color of the label (RGB); (3) the label text.  Note that labels do not have a start and end time.  By convention, the time of a waves+ label is the ending time.  .PPIf \fImode\fP == 1, \fIconvertlab\fP produces one \fIwaves\fP+ label per input label, with the time corresponding to the ending sample number of the input label.  If the first input label does not begin with sample 0, \fIconverlab\fP issues a warning and generates a special label (with text "UNL", for "unlabelled") to mark the actual starting point of the first label.  If the ending time of one label is not the same as the starting point of the next label (a relatively rare casein the NIST databases), \fIconvertlab\fP issues a warning.  If the ending time of one label exceeds the starting time of the next label, \fIconvertlab\fP issues a warning and also inserts a special label (again, with text "UNL") to mark the starting time of the that next label.  .PPIf \fImode\fP == 2, \fIconvertlab\fP produces two \fIwaves\fP+ labelsper input label \- one each for the starting point and the endingpoint.  The text for the former is the input label text with "_S" appended, and the text for the latter is the input label text with "_E"appended.  .PPIf \fImode\fP == 1, the default color of the \fIwaves\fP+ labels is set to \fIlab_color\fP, with the color of the special "UNL" labels set to \fIunl_color\fP.  If \fImode\fP == 2, the \fIwaves\fP+ endpointlabels have color \fIlab_color\fP, and the starting point labels havethe color \fIunl_color\fP.   If \fIlab_color\fP or \fIunl_color\fP is negative, an internal default is used.  .SH EXAMPLES.PP.SH ERRORS AND DIAGNOSTICS.PP.SH FUTURE CHANGES.PP.SH BUGS.PPNone known..SH REFERENCES.PP.SH "SEE ALSO".PP\fI \fIxlabel\fP (1\-\s-1ESPS\s+1).SH AUTHOR.PPJohn Shore (with help from David Talkin)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?