/[zanavi_public1]/navit/navit/speech.h
ZANavi

Contents of /navit/navit/speech.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 28 21:19:04 2011 UTC (8 years, 9 months ago) by zoff99
File MIME type: text/plain
File size: 1502 byte(s)
import files
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 struct attr_iter;
25
26 struct speech_methods {
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

   
Visit the ZANavi Wiki