source: rrlib_speech_synthesis/voices.cpp

tip
Last change on this file was 20:cfa0a3508f8c, checked in by Tobias Föhst <foehst@…>, 2 years ago

Fixes warning about unused variable

File size: 3.3 KB
Line 
1//
2// You received this file as part of RRLib
3// Robotics Research Library
4//
5// Copyright (C) Finroc GbR (finroc.org)
6//
7// This program is free software; you can redistribute it and/or modify
8// it under the terms of the GNU General Public License as published by
9// the Free Software Foundation; either version 2 of the License, or
10// (at your option) any later version.
11//
12// This program is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15// GNU General Public License for more details.
16//
17// You should have received a copy of the GNU General Public License along
18// with this program; if not, write to the Free Software Foundation, Inc.,
19// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20//
21//----------------------------------------------------------------------
22/*!\file    rrlib/speech_synthesis/voices.cpp
23 *
24 * \author  Tobias Föhst
25 *
26 * \date    2013-07-26
27 *
28 */
29//----------------------------------------------------------------------
30#include "rrlib/speech_synthesis/voices.h"
31
32//----------------------------------------------------------------------
33// External includes (system with <>, local with "")
34//----------------------------------------------------------------------
35
36//----------------------------------------------------------------------
37// Internal includes with ""
38//----------------------------------------------------------------------
39
40#define __rrlib__speech_synthesis__include_guard__
41
42#ifdef _LIB_RRLIB_SPEECH_SYNTHESIS_FESTIVAL_PRESENT_
43#include "rrlib/speech_synthesis/festival/tFestival.h"
44#endif
45
46#ifdef _LIB_RRLIB_SPEECH_SYNTHESIS_ESPEAK_PRESENT_
47#include "rrlib/speech_synthesis/espeak/tESpeak.h"
48#endif
49
50//----------------------------------------------------------------------
51// Debugging
52//----------------------------------------------------------------------
53#include <cassert>
54
55//----------------------------------------------------------------------
56// Namespace usage
57//----------------------------------------------------------------------
58
59//----------------------------------------------------------------------
60// Namespace declaration
61//----------------------------------------------------------------------
62namespace rrlib
63{
64namespace speech_synthesis
65{
66
67//----------------------------------------------------------------------
68// Forward declarations / typedefs / enums
69//----------------------------------------------------------------------
70
71//----------------------------------------------------------------------
72// Const values
73//----------------------------------------------------------------------
74
75//----------------------------------------------------------------------
76// Implementation
77//----------------------------------------------------------------------
78
79int RegisterVoices()
80{
81
82#ifdef _LIB_RRLIB_SPEECH_SYNTHESIS_FESTIVAL_PRESENT_
83  tVoiceFactory::Instance().Register<festival::tFestival>("festival");
84#endif
85
86#ifdef _LIB_RRLIB_SPEECH_SYNTHESIS_ESPEAK_PRESENT_
87  tVoiceFactory::Instance().Register<espeak::tESpeak>("espeak");
88#endif
89
90  return 0;
91}
92int cVOICES(RegisterVoices());
93
94//----------------------------------------------------------------------
95// End of namespace declaration
96//----------------------------------------------------------------------
97}
98}
Note: See TracBrowser for help on using the repository browser.