[go: up one dir, main page]

File: demo.c

package info (click to toggle)
libdumbtts 0.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 344 kB
  • sloc: ansic: 3,054; makefile: 42; sh: 9
file content (21 lines) | stat: -rw-r--r-- 397 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>
#include <stdlib.h>
#include <libdumbtts.h>

int
main(int argc,char *argv[])
{
	struct dumbtts_conf *conf;
	char *buf;
	int len;
	conf=dumbtts_TTSInit(argv[1]);
	len=dumbtts_GetString(conf,argv[2],NULL,0,0,"()[]",".,!?;:");
	if (len < 0) exit(1);
	printf("Len=%d\n",len);
	buf=malloc(len);
	dumbtts_GetString(conf,argv[2],buf,len,0,"()[]",".,!?;:");
	printf("%s\n",buf);
	
	

}