if i understand you say to test the library first, right?
I' ve already written a simple c++ class for use the library, a TTS.h, TTS.cpp and a main.c file in which i create a TTS object and call the 'speak' method, i got no problem, it work fine.
I've written a little Makefile to simplify the compilation
#Makefile for TTS
VERSION = 0.1
CC = g++
ISEARCHDIR = -I/usr/include/speech-tools/ -I /usr/include/
LSEARCHDIR = -L. -L/usr/lib/
OPTIMIZE = -O3 -s -fomit-frame-pointer
CFLAGS = $(DEFINES) $(OPTIMIZE)
LFLAGS = -lFestival -lestools -lestbase -leststring -lncurses
PROGS = FestivalExposure
PROGS_O = TTS.o
OBJ_SO = TTS.so
all : objs progs
progs :
$(CC) main.c $(PROGS_O) $(LSEARCHDIR) $(LFLAGS) -o $(PROGS)
objs :
$(CC) TTS.cpp $(ISEARCHDIR) -c
sobjs :
$(CC) TTS.cpp $(ISEARCHDIR) $(LSEARCHDIR) $(LFLAGS) --shared -
+o $(OBJ_SO)
provaOBJ :
$(CC) TTS.cpp $(ISEARCHDIR) $(LSEARCHDIR) $(LFLAGS) -o $(PROGS
+_O)
clean : cleanbin
rm -f *.o *~
cleanbin :
rm -f $(PROGS)
Tonight i'll try xs with the TTS class, writing the typemap, etc...
P.S.: sorry the my english | [reply] [d/l] |