Navit SVN

/work/compile/navit/src/navit/speech.h

00001 
00020 #ifndef NAVIT_SPEECH_H
00021 #define NAVIT_SPEECH_H
00022 
00023 struct speech_priv;
00024 struct attr_iter;
00025 
00026 struct speech_methods {
00027         void (*destroy)(struct speech_priv *this_);
00028         int (*say)(struct speech_priv *this_, const char *text);
00029 };
00030 
00031 /* prototypes */
00032 struct speech * speech_new(struct attr *parent, struct attr **attrs);
00033 int speech_say(struct speech *this_, const char *text);
00034 int speech_sayf(struct speech *this_, const char *format, ...);
00035 void speech_destroy(struct speech *this_);
00036 int speech_get_attr(struct speech *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
00037 int speech_set_attr(struct speech *this_, struct attr *attr);
00038 int speech_estimate_duration(struct speech *this_, char *str);
00039 /* end of prototypes */
00040 
00041 #endif
00042