Fix:maptool:Convert character set
[navit-package] / navit / speech.h
1 /**
2  * Navit, a modular navigation system.
3  * Copyright (C) 2005-2008 Navit Team
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public License
7  * version 2 as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this program; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA  02110-1301, USA.
18  */
19
20 #ifndef NAVIT_SPEECH_H
21 #define NAVIT_SPEECH_H
22
23 struct speech_priv;
24
25 struct speech_methods {
26         void (*destroy)(struct speech_priv *this_);
27         int (*say)(struct speech_priv *this_, const char *text);
28 };
29
30 /* prototypes */
31 struct speech * speech_new(struct attr *parent, struct attr **attrs);
32 int speech_say(struct speech *this_, const char *text);
33 int speech_sayf(struct speech *this_, const char *format, ...);
34 void speech_destroy(struct speech *this_);
35 int speech_get_attr(struct speech *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
36 int speech_set_attr(struct speech *this_, struct attr *attr);
37 int speech_estimate_duration(struct speech *this_, char *str);
38 /* end of prototypes */
39
40 #endif
41