1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
9 * Copyright (C) 2010 by Dominik Riebeling
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
26 #include <Carbon/Carbon.h>
29 class TTSCarbon
: public TTSBase
32 //! Enum to identify the settings
33 enum ConfigValuesCarbon
39 TTSCarbon(QObject
*parent
= NULL
);
41 //! Child class should generate a clip
42 TTSStatus
voice(QString text
,QString wavfile
, QString
* errStr
);
43 //! Child class should do startup
44 bool start(QString
*errStr
);
45 //! child class should stop
49 //! Child class should return true, when configuration is good
51 //! Child class should generate and insertSetting(..) its settings
52 void generateSettings();
53 //! Chlid class should commit the Settings to permanent storage
57 SpeechChannel m_channel
;
58 CFStringBuiltInEncodings m_voiceScript
;
60 unsigned long be2u32(unsigned char* buf
);
61 unsigned long be2u16(unsigned char* buf
);
62 unsigned char* u32tobuf(unsigned char* buf
, uint32_t val
);
63 unsigned char* u16tobuf(unsigned char* buf
, uint16_t val
);
64 unsigned int extended2int(unsigned char* buf
);
65 int convertAiffToWav(const char* aiff
, const char* wav
);
69 // static QMap<QString,QString> ttsList;