| 1 | /* SpeechSynthesizer_def.h |
| 2 | * |
| 3 | * Copyright (C) 2011-2020 David Weenink, 2024 Paul Boersma |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or (at |
| 8 | * your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 18 | */ |
| 19 | |
| 20 | #define ooSTRUCTcxx . . $ `dwtools/SpeechSynthesizer_def.h:20:9`! SpeechSynthesizer |
| 21 | oo_DEFINE_CLASScxx . . $ `sys/oo.h:176:9`! (SpeechSynthesizer, Daata) |
| 22 | |
| 23 | oo_FROMcxx . . $ `sys/oo.h:202:9`! (1) |
| 24 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (dummySynthesizerVersion) // no longer used (was already overwritten at reading time) |
| 25 | oo_ENDFROMcxx . . $ `sys/oo.h:203:9`! |
| 26 | |
| 27 | /* |
| 28 | Three language and voice settings. |
| 29 | */ |
| 30 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (d_languageName) |
| 31 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (d_voiceName) |
| 32 | oo_FROMcxx . . $ `sys/oo.h:202:9`! (1) |
| 33 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (d_phonemeSetName) |
| 34 | oo_ENDFROMcxx . . $ `sys/oo.h:203:9`! |
| 35 | #if oo_READINGcxx . . $ `sys/oo.h:235:9`! |
| 36 | oo_VERSION_UNTIL (1) |
| 37 | d_phonemeSetName = Melder_dup (d_languageName.get()); |
| 38 | oo_VERSION_END |
| 39 | SpeechSynthesizer_checkAndRepairLanguageAndVoiceNames (this); |
| 40 | #endif |
| 41 | |
| 42 | #if oo_READINGcxx . . $ `sys/oo.h:235:9`! |
| 43 | oo_VERSION_UNTIL (1) |
| 44 | oo_INTEGER (d_wordsPerMinute) |
| 45 | oo_VERSION_ELSE |
| 46 | oo_DOUBLE (d_wordsPerMinute) |
| 47 | oo_VERSION_END |
| 48 | #else |
| 49 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (d_wordsPerMinute) |
| 50 | #endif |
| 51 | // text-only, phonemes-only, mixed |
| 52 | oo_INTcxx . . $ `sys/oo.h:44:9`! (d_inputTextFormat) |
| 53 | // 1/: output phonemes in espeak/ notation |
| 54 | oo_INTcxx . . $ `sys/oo.h:44:9`! (d_inputPhonemeCoding) |
| 55 | // speech output |
| 56 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (d_samplingFrequency) |
| 57 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (d_wordGap) |
| 58 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (d_pitchAdjustment) |
| 59 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (d_pitchRange) |
| 60 | // 1/2: output phonemes in espeak/IPA notation |
| 61 | oo_INTcxx . . $ `sys/oo.h:44:9`! (d_outputPhonemeCoding) |
| 62 | |
| 63 | #if oo_READING_TEXTcxx . . $ `sys/oo.h:236:9`! |
| 64 | oo_VERSION_UNTIL (1) |
| 65 | oo_INT (d_estimateSpeechRate) // this used to be oo_BOOL, which was written in text as 0 or 1, which is inappropriate for boolean text |
| 66 | oo_VERSION_ELSE |
| 67 | oo_QUESTION (d_estimateSpeechRate) |
| 68 | oo_VERSION_END |
| 69 | #else |
| 70 | oo_QUESTIONcxx . . $ `sys/oo.h:106:9`! (d_estimateSpeechRate) |
| 71 | #endif |
| 72 | |
| 73 | #if ! oo_READINGcxx . . $ `sys/oo.h:235:9`! && ! oo_WRITINGcxx . . $ `sys/oo.h:238:9`! && ! oo_COMPARINGcxx . . $ `sys/oo.h:233:9`! |
| 74 | // Filled by the callback |
| 75 | oo_OBJECTcxx . . $ `sys/oo.h:149:9`! (Table, 0, d_events) |
| 76 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (d_internalSamplingFrequency) |
| 77 | oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (d_numberOfSamples) |
| 78 | oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (d_wavCapacity) |
| 79 | oo_INTVEC16cxx . . $ `sys/oo.h:77:9`! (d_wav, d_wavCapacity) |
| 80 | #endif |
| 81 | |
| 82 | #if oo_DECLARINGcxx . . $ `sys/oo.h:230:9`! |
| 83 | void v1_infocxx . . $ structSpeechSynthesizer#v1_info(49f6e7a06ebc5aa8). () |
| 84 | override; |
| 85 | #endif |
| 86 | |
| 87 | oo_END_CLASScxx . . $ `sys/oo.h:186:9`! (SpeechSynthesizer) |
| 88 | #undef ooSTRUCTcxx . . $ `dwtools/SpeechSynthesizer_def.h:20:9`! |
| 89 | |
| 90 | /* End of file SpeechSynthesizer_def.h */ |