/usr/include/gnome-speech-1.0/gnome-speech/speaker.h is in libgnome-speech-dev 1:0.4.25-5ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | /*
* GNOME Speech - Speech services for the GNOME desktop
*
* Copyright 2002 Sun Microsystems Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*
* speaker.h: definition of the SynthesisDriver object. This object
* provides convenience functions and implementations of
* some methods which are defined in the GNOME Speech
* interface. the purpose of this object is to simplify
* GNOME Speech TTS driver development. (implementation in
* synthesisdriver.c)
*
*/
#ifndef _SPEAKER_H_
#define _SPEAKER_H_
#include <bonobo/bonobo-object.h>
#include <gnome-speech/GNOME_Speech.h>
#define SPEAKER_TYPE (speaker_get_type ())
#define SPEAKER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SPEAKER_TYPE, Speaker))
#define SPEAKER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), SPEAKER_TYPE, SpeakerClass))
#define IS_SPEAKER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SPEAKER_TYPE))
#define IS_SPEAKER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), SPEAKER_TYPE))
#define SPEAKER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), SPEAKER_TYPE, SpeakerClass))
/*
*
* Structure definiing index queue entry. there should be a cleaner
* way to do this than putting it here, but...
*
*/
typedef struct {
BonoboObject parent;
/* Pointer to the DectalkSynthesisDriver */
GObject *driver;
GNOME_Speech_SpeechCallback cb;
GSList *clb_list;
/* Speech Parameters */
GSList *parameters;
gboolean parameter_refresh;
} Speaker;
typedef struct {
BonoboObjectClass parent_class;
POA_GNOME_Speech_Speaker__epv epv;
} SpeakerClass;
typedef gboolean (*parameter_set_func) (Speaker *s,
gdouble new_value);
GType
speaker_get_type (void);
void
speaker_add_parameter (Speaker *s,
const gchar *name,
gdouble min,
gdouble current,
gdouble max,
parameter_set_func set_func);
void
speaker_add_parameter_value_description (Speaker *s,
const gchar *name,
gdouble value,
gchar *description);
gboolean
speaker_set_parameter (Speaker *s,
gchar *name,
gdouble value);
gboolean
speaker_refresh_parameters (Speaker *s);
gboolean
speaker_needs_parameter_refresh (Speaker *s);
GSList*
clb_list_duplicate (GSList *list);
GSList*
speaker_get_clb_list (Speaker *s);
void
clb_list_free (GSList *list);
#endif /* _SPEAKER_H_ */
|