brintos

brintos / linux-shallow public Read only

0
0
Text · 2.2 KiB · 9c378b5 Raw
64 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2/* speakup_dtlk.h - header file for speakups DoubleTalk driver. */3 4#define SYNTH_IO_EXTENT	0x025#define SYNTH_CLEAR	0x18		/* stops speech */6	/* TTS Port Status Flags */7#define TTS_READABLE	0x80	/* mask for bit which is nonzero if a8				 * byte can be read from the TTS port9				 */10#define TTS_SPEAKING	0x40	/* mask for SYNC bit, which is nonzero11				 * while DoubleTalk is producing12				 * output with TTS, PCM or CVSD13				 * synthesizers or tone generators14				 * (that is, all but LPC)15				 */16#define TTS_SPEAKING2	0x20	/* mask for SYNC2 bit,17				 * which falls to zero up to 0.4 sec18				 * before speech stops19				 */20#define TTS_WRITABLE	0x10	/* mask for RDY bit, which when set to21				 * 1, indicates the TTS port is ready22				 * to accept a byte of data.  The RDY23				 * bit goes zero 2-3 usec after24				 * writing, and goes 1 again 180-19025				 * usec later.26				 */27#define TTS_ALMOST_FULL	0x08	/* mask for AF bit: When set to 1,28				 * indicates that less than 300 bytes29				 * are available in the TTS input30				 * buffer. AF is always 0 in the PCM,31				 * TGN and CVSD modes.32				 */33#define TTS_ALMOST_EMPTY 0x04	/* mask for AE bit: When set to 1,34				 * indicates that less than 300 bytes35				 * are remaining in DoubleTalk's input36				 * (TTS or PCM) buffer. AE is always 137				 * in the TGN and CVSD modes.38				 */39 40				/* data returned by Interrogate command */41struct synth_settings {42	u_short serial_number;	/* 0-7Fh:0-7Fh */43	u_char rom_version[24]; /* null terminated string */44	u_char mode;		/* 0=Character; 1=Phoneme; 2=Text */45	u_char punc_level;	/* nB; 0-7 */46	u_char formant_freq;	/* nF; 0-9 */47	u_char pitch;		/* nP; 0-99 */48	u_char speed;		/* nS; 0-9 */49	u_char volume;		/* nV; 0-9 */50	u_char tone;		/* nX; 0-2 */51	u_char expression;	/* nE; 0-9 */52	u_char ext_dict_loaded; /* 1=exception dictionary loaded */53	u_char ext_dict_status; /* 1=exception dictionary enabled */54	u_char free_ram;	/* # pages (truncated) remaining for55				 * text buffer56				 */57	u_char articulation;	/* nA; 0-9 */58	u_char reverb;		/* nR; 0-9 */59	u_char eob;		/* 7Fh value indicating end of60				 * parameter block61				 */62	u_char has_indexing;	/* nonzero if indexing is implemented */63};64