navit  0.5.3-trunk
speech.h
Go to the documentation of this file.
1 
20 #ifndef NAVIT_SPEECH_H
21 #define NAVIT_SPEECH_H
22 
23 struct speech_priv;
24 struct attr_iter;
25 
27  void (*destroy)(struct speech_priv *this_);
28  int (*say)(struct speech_priv *this_, const char *text);
29 };
30 
31 /* prototypes */
32 struct speech * speech_new(struct attr *parent, struct attr **attrs);
33 int speech_say(struct speech *this_, const char *text);
34 int speech_sayf(struct speech *this_, const char *format, ...);
35 void speech_destroy(struct speech *this_);
36 int speech_get_attr(struct speech *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
37 int speech_set_attr(struct speech *this_, struct attr *attr);
38 int speech_estimate_duration(struct speech *this_, char *str);
39 /* end of prototypes */
40 
41 #endif
42 
attr_type
Definition: attr.h:34
char type[3]
Definition: garmin_img.c:2
struct speech * speech_new(struct attr *parent, struct attr **attrs)
Definition: speech.c:36
int speech_set_attr(struct speech *this_, struct attr *attr)
Sets an attribute from an speech plugin.
Definition: speech.c:133
int speech_estimate_duration(struct speech *this_, char *str)
Tries to estimate how long it will take to speak a certain string.
Definition: speech.c:108
int speech_sayf(struct speech *this_, const char *format,...)
int speech_get_attr(struct speech *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)
Gets an attribute from a speech plugin.
Definition: speech.c:93
void speech_destroy(struct speech *this_)
Definition: speech.c:66
int speech_say(struct speech *this_, const char *text)
Definition: speech.c:72
Definition: config_.c:47
Definition: attr.h:157
Definition: gpx2navit_txt.h:51
Definition: speech.h:26
void(* destroy)(struct speech_priv *this_)
Definition: speech.h:27
int(* say)(struct speech_priv *this_, const char *text)
Definition: speech.h:28
Definition: speech_android.c:29
Definition: speech.c:28