2 * Asterisk -- A telephony toolkit for Linux.
4 * Say numbers and dates (maybe words one day too)
6 * Copyright (C) 1999, Mark Spencer
8 * Mark Spencer <markster@linux-support.net>
10 * This program is free software, distributed under the terms of
11 * the GNU General Public License
14 #ifndef _ASTERISK_SAY_H
15 #define _ASTERISK_SAY_H
17 #include <asterisk/channel.h>
18 #include <asterisk/file.h>
22 #if defined(__cplusplus) || defined(c_plusplus)
28 * \param chan channel to say them number on
29 * \param num number to say on the channel
30 * \param ints which dtmf to interrupt on
31 * \param lang language to speak the number
32 * Vocally says a number on a given channel
33 * Returns 0 on success, DTMF digit on interrupt, -1 on failure
35 int ast_say_number(struct ast_channel *chan, int num, char *ints, char *lang);
39 * \param chan channel to act upon
40 * \param num number to speak
41 * \param ints which dtmf to interrupt on
42 * \param lang language to speak
43 * Vocally says digits of a given number
44 * Returns 0 on success, dtmf if interrupted, -1 on failure
46 int ast_say_digits(struct ast_channel *chan, int num, char *ints, char *lang);
48 //! says digits of a string
50 * \param chan channel to act upon
51 * \param num string to speak
52 * \param ints which dtmf to interrupt on
53 * \param lang language to speak in
54 * Vocally says the digits of a given string
55 * Returns 0 on success, dtmf if interrupted, -1 on failure
57 int ast_say_digit_str(struct ast_channel *chan, char *num, char *ints, char *lang);
59 int ast_say_datetime(struct ast_channel *chan, time_t t, char *ints, char *lang);
61 int ast_say_time(struct ast_channel *chan, time_t t, char *ints, char *lang);
63 int ast_say_date(struct ast_channel *chan, time_t t, char *ints, char *lang);
65 int ast_say_datetime_from_now(struct ast_channel *chan, time_t t, char *ints, char *lang);
67 #if defined(__cplusplus) || defined(c_plusplus)