2
* brass - Braille and speech server
4
* Copyright (C) 2001 by Roger Butenuth, All rights reserved.
6
* This is free software, placed under the terms of the
7
* GNU General Public License, as published by the Free Software
8
* Foundation. Please see the file COPYING for details.
10
* $Id: language.h,v 1.1.1.1 2002/03/03 19:49:48 mgorse Exp $
15
#include "synthesizer.h"
23
typedef struct lang_state *lang_state_p;
25
typedef struct lang_struct {
29
char *s_buf; /* string to be sent to synthesizer */
30
int s_buf_used; /* characters, (0-byte NOT included in size) */
31
int s_buf_size; /* current size of buffer */
32
int (*close)(struct lang_struct *l);
33
int (*change_synth)(struct lang_struct *l, synth_t *synth);
34
int (*speak_string)(struct lang_struct *l, unsigned char *buffer);
35
int (*get_param)(struct lang_struct *l, lang_par_t par, int *value);
36
int (*set_param)(struct lang_struct *l, lang_par_t par, int value);
39
lang_t *language_open(void *context, lookup_string_t lookup);
40
lang_t *german_open(void *context, lookup_string_t lookup);
41
lang_t *english_open(void *context, lookup_string_t lookup);
43
void init_synth_buffer(lang_t *lang);
44
void deinit_synth_buffer(lang_t *lang);
45
int add_to_synth_buffer(lang_t *lang, const char *str);
46
int flush_synth_buffer(lang_t *lang);
48
#endif /* _LANGUAGE_H */