eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

speak_lib.h 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  1. #ifndef SPEAK_LIB_H
  2. #define SPEAK_LIB_H
  3. /***************************************************************************
  4. * Copyright (C) 2005 to 2010 by Jonathan Duddington *
  5. * email: [email protected] *
  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 3 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 *
  18. * along with this program; if not, see: *
  19. * <http://www.gnu.org/licenses/>. *
  20. ***************************************************************************/
  21. /*************************************************************/
  22. /* This is the header file for the library version of espeak */
  23. /* */
  24. /*************************************************************/
  25. #include <stdio.h>
  26. #include <stddef.h>
  27. #ifdef __WIN32__
  28. #define ESPEAK_API __declspec(dllexport)
  29. #else
  30. #define ESPEAK_API
  31. #endif
  32. #define ESPEAK_API_REVISION 6
  33. /*
  34. Revision 2
  35. Added parameter "options" to eSpeakInitialize()
  36. Revision 3
  37. Added espeakWORDGAP to espeak_PARAMETER
  38. Revision 4
  39. Added flags parameter to espeak_CompileDictionary()
  40. Revision 5
  41. Added espeakCHARS_16BIT
  42. Revision 6
  43. Added macros: espeakRATE_MINIMUM, espeakRATE_MAXIMUM, espeakRATE_NORMAL
  44. */
  45. /********************/
  46. /* Initialization */
  47. /********************/
  48. // values for 'value' in espeak_SetParameter(espeakRATE, value, 0), nominally in words-per-minute
  49. #define espeakRATE_MINIMUM 80
  50. #define espeakRATE_MAXIMUM 450
  51. #define espeakRATE_NORMAL 175
  52. typedef enum {
  53. espeakEVENT_LIST_TERMINATED = 0, // Retrieval mode: terminates the event list.
  54. espeakEVENT_WORD = 1, // Start of word
  55. espeakEVENT_SENTENCE = 2, // Start of sentence
  56. espeakEVENT_MARK = 3, // Mark
  57. espeakEVENT_PLAY = 4, // Audio element
  58. espeakEVENT_END = 5, // End of sentence or clause
  59. espeakEVENT_MSG_TERMINATED = 6, // End of message
  60. espeakEVENT_PHONEME = 7, // Phoneme, if enabled in espeak_Initialize()
  61. espeakEVENT_SAMPLERATE = 8 // internal use, set sample rate
  62. } espeak_EVENT_TYPE;
  63. typedef struct {
  64. espeak_EVENT_TYPE type;
  65. unsigned int unique_identifier; // message identifier (or 0 for key or character)
  66. int text_position; // the number of characters from the start of the text
  67. int length; // word length, in characters (for espeakEVENT_WORD)
  68. int audio_position; // the time in mS within the generated speech output data
  69. int sample; // sample id (internal use)
  70. void* user_data; // pointer supplied by the calling program
  71. union {
  72. int number; // used for WORD and SENTENCE events. For PHONEME events this is the phoneme mnemonic.
  73. const char *name; // used for MARK and PLAY events. UTF8 string
  74. } id;
  75. } espeak_EVENT;
  76. /*
  77. When a message is supplied to espeak_synth, the request is buffered and espeak_synth returns. When the message is really processed, the callback function will be repetedly called.
  78. In RETRIEVAL mode, the callback function supplies to the calling program the audio data and an event list terminated by 0 (LIST_TERMINATED).
  79. In PLAYBACK mode, the callback function is called as soon as an event happens.
  80. For example suppose that the following message is supplied to espeak_Synth:
  81. "hello, hello."
  82. * Once processed in RETRIEVAL mode, it could lead to 3 calls of the callback function :
  83. ** Block 1:
  84. <audio data> +
  85. List of events: SENTENCE + WORD + LIST_TERMINATED
  86. ** Block 2:
  87. <audio data> +
  88. List of events: WORD + END + LIST_TERMINATED
  89. ** Block 3:
  90. no audio data
  91. List of events: MSG_TERMINATED + LIST_TERMINATED
  92. * Once processed in PLAYBACK mode, it could lead to 5 calls of the callback function:
  93. ** SENTENCE
  94. ** WORD (call when the sounds are actually played)
  95. ** WORD
  96. ** END (call when the end of sentence is actually played.)
  97. ** MSG_TERMINATED
  98. The MSG_TERMINATED event is the last event. It can inform the calling program to clear the user data related to the message.
  99. So if the synthesis must be stopped, the callback function is called for each pending message with the MSG_TERMINATED event.
  100. A MARK event indicates a <mark> element in the text.
  101. A PLAY event indicates an <audio> element in the text, for which the calling program should play the named sound file.
  102. */
  103. typedef enum {
  104. POS_CHARACTER = 1,
  105. POS_WORD,
  106. POS_SENTENCE
  107. } espeak_POSITION_TYPE;
  108. typedef enum {
  109. /* PLAYBACK mode: plays the audio data, supplies events to the calling program*/
  110. AUDIO_OUTPUT_PLAYBACK,
  111. /* RETRIEVAL mode: supplies audio data and events to the calling program */
  112. AUDIO_OUTPUT_RETRIEVAL,
  113. /* SYNCHRONOUS mode: as RETRIEVAL but doesn't return until synthesis is completed */
  114. AUDIO_OUTPUT_SYNCHRONOUS,
  115. /* Synchronous playback */
  116. AUDIO_OUTPUT_SYNCH_PLAYBACK
  117. } espeak_AUDIO_OUTPUT;
  118. typedef enum {
  119. EE_OK=0,
  120. EE_INTERNAL_ERROR=-1,
  121. EE_BUFFER_FULL=1,
  122. EE_NOT_FOUND=2
  123. } espeak_ERROR;
  124. #define espeakINITIALIZE_PHONEME_EVENTS 0x0001
  125. #define espeakINITIALIZE_DONT_EXIT 0x8000
  126. #ifdef __cplusplus
  127. extern "C"
  128. #endif
  129. ESPEAK_API int espeak_Initialize(espeak_AUDIO_OUTPUT output, int buflength, const char *path, int options);
  130. /* Must be called before any synthesis functions are called.
  131. output: the audio data can either be played by eSpeak or passed back by the SynthCallback function.
  132. buflength: The length in mS of sound buffers passed to the SynthCallback function.
  133. path: The directory which contains the espeak-data directory, or NULL for the default location.
  134. options: bit 0: 1=allow espeakEVENT_PHONEME events.
  135. bit 15: 1=don't exit if espeak_data is not found (used for --help)
  136. Returns: sample rate in Hz, or -1 (EE_INTERNAL_ERROR).
  137. */
  138. typedef int (t_espeak_callback)(short*, int, espeak_EVENT*);
  139. #ifdef __cplusplus
  140. extern "C"
  141. #endif
  142. ESPEAK_API void espeak_SetSynthCallback(t_espeak_callback* SynthCallback);
  143. /* Must be called before any synthesis functions are called.
  144. This specifies a function in the calling program which is called when a buffer of
  145. speech sound data has been produced.
  146. The callback function is of the form:
  147. int SynthCallback(short *wav, int numsamples, espeak_EVENT *events);
  148. wav: is the speech sound data which has been produced.
  149. NULL indicates that the synthesis has been completed.
  150. numsamples: is the number of entries in wav. This number may vary, may be less than
  151. the value implied by the buflength parameter given in espeak_Initialize, and may
  152. sometimes be zero (which does NOT indicate end of synthesis).
  153. events: an array of espeak_EVENT items which indicate word and sentence events, and
  154. also the occurance if <mark> and <audio> elements within the text. The list of
  155. events is terminated by an event of type = 0.
  156. Callback returns: 0=continue synthesis, 1=abort synthesis.
  157. */
  158. #ifdef __cplusplus
  159. extern "C"
  160. #endif
  161. ESPEAK_API void espeak_SetUriCallback(int (*UriCallback)(int, const char*, const char*));
  162. /* This function may be called before synthesis functions are used, in order to deal with
  163. <audio> tags. It specifies a callback function which is called when an <audio> element is
  164. encountered and allows the calling program to indicate whether the sound file which
  165. is specified in the <audio> element is available and is to be played.
  166. The callback function is of the form:
  167. int UriCallback(int type, const char *uri, const char *base);
  168. type: type of callback event. Currently only 1= <audio> element
  169. uri: the "src" attribute from the <audio> element
  170. base: the "xml:base" attribute (if any) from the <speak> element
  171. Return: 1=don't play the sound, but speak the text alternative.
  172. 0=place a PLAY event in the event list at the point where the <audio> element
  173. occurs. The calling program can then play the sound at that point.
  174. */
  175. /********************/
  176. /* Synthesis */
  177. /********************/
  178. #define espeakCHARS_AUTO 0
  179. #define espeakCHARS_UTF8 1
  180. #define espeakCHARS_8BIT 2
  181. #define espeakCHARS_WCHAR 3
  182. #define espeakCHARS_16BIT 4
  183. #define espeakSSML 0x10
  184. #define espeakPHONEMES 0x100
  185. #define espeakENDPAUSE 0x1000
  186. #define espeakKEEP_NAMEDATA 0x2000
  187. #ifdef __cplusplus
  188. extern "C"
  189. #endif
  190. ESPEAK_API espeak_ERROR espeak_Synth(const void *text,
  191. size_t size,
  192. unsigned int position,
  193. espeak_POSITION_TYPE position_type,
  194. unsigned int end_position,
  195. unsigned int flags,
  196. unsigned int* unique_identifier,
  197. void* user_data);
  198. /* Synthesize speech for the specified text. The speech sound data is passed to the calling
  199. program in buffers by means of the callback function specified by espeak_SetSynthCallback(). The command is asynchronous: it is internally buffered and returns as soon as possible. If espeak_Initialize was previously called with AUDIO_OUTPUT_PLAYBACK as argument, the sound data are played by eSpeak.
  200. text: The text to be spoken, terminated by a zero character. It may be either 8-bit characters,
  201. wide characters (wchar_t), or UTF8 encoding. Which of these is determined by the "flags"
  202. parameter.
  203. size: Equal to (or greatrer than) the size of the text data, in bytes. This is used in order
  204. to allocate internal storage space for the text. This value is not used for
  205. AUDIO_OUTPUT_SYNCHRONOUS mode.
  206. position: The position in the text where speaking starts. Zero indicates speak from the
  207. start of the text.
  208. position_type: Determines whether "position" is a number of characters, words, or sentences.
  209. Values:
  210. end_position: If set, this gives a character position at which speaking will stop. A value
  211. of zero indicates no end position.
  212. flags: These may be OR'd together:
  213. Type of character codes, one of:
  214. espeakCHARS_UTF8 UTF8 encoding
  215. espeakCHARS_8BIT The 8 bit ISO-8859 character set for the particular language.
  216. espeakCHARS_AUTO 8 bit or UTF8 (this is the default)
  217. espeakCHARS_WCHAR Wide characters (wchar_t)
  218. espeakSSML Elements within < > are treated as SSML elements, or if not recognised are ignored.
  219. espeakPHONEMES Text within [[ ]] is treated as phonemes codes (in espeak's Hirshenbaum encoding).
  220. espeakENDPAUSE If set then a sentence pause is added at the end of the text. If not set then
  221. this pause is suppressed.
  222. unique_identifier: message identifier; helpful for identifying later
  223. data supplied to the callback.
  224. user_data: pointer which will be passed to the callback function.
  225. Return: EE_OK: operation achieved
  226. EE_BUFFER_FULL: the command can not be buffered;
  227. you may try after a while to call the function again.
  228. EE_INTERNAL_ERROR.
  229. */
  230. #ifdef __cplusplus
  231. extern "C"
  232. #endif
  233. ESPEAK_API espeak_ERROR espeak_Synth_Mark(const void *text,
  234. size_t size,
  235. const char *index_mark,
  236. unsigned int end_position,
  237. unsigned int flags,
  238. unsigned int* unique_identifier,
  239. void* user_data);
  240. /* Synthesize speech for the specified text. Similar to espeak_Synth() but the start position is
  241. specified by the name of a <mark> element in the text.
  242. index_mark: The "name" attribute of a <mark> element within the text which specified the
  243. point at which synthesis starts. UTF8 string.
  244. For the other parameters, see espeak_Synth()
  245. Return: EE_OK: operation achieved
  246. EE_BUFFER_FULL: the command can not be buffered;
  247. you may try after a while to call the function again.
  248. EE_INTERNAL_ERROR.
  249. */
  250. #ifdef __cplusplus
  251. extern "C"
  252. #endif
  253. ESPEAK_API espeak_ERROR espeak_Key(const char *key_name);
  254. /* Speak the name of a keyboard key.
  255. If key_name is a single character, it speaks the name of the character.
  256. Otherwise, it speaks key_name as a text string.
  257. Return: EE_OK: operation achieved
  258. EE_BUFFER_FULL: the command can not be buffered;
  259. you may try after a while to call the function again.
  260. EE_INTERNAL_ERROR.
  261. */
  262. #ifdef __cplusplus
  263. extern "C"
  264. #endif
  265. ESPEAK_API espeak_ERROR espeak_Char(wchar_t character);
  266. /* Speak the name of the given character
  267. Return: EE_OK: operation achieved
  268. EE_BUFFER_FULL: the command can not be buffered;
  269. you may try after a while to call the function again.
  270. EE_INTERNAL_ERROR.
  271. */
  272. /***********************/
  273. /* Speech Parameters */
  274. /***********************/
  275. typedef enum {
  276. espeakSILENCE=0, /* internal use */
  277. espeakRATE=1,
  278. espeakVOLUME=2,
  279. espeakPITCH=3,
  280. espeakRANGE=4,
  281. espeakPUNCTUATION=5,
  282. espeakCAPITALS=6,
  283. espeakWORDGAP=7,
  284. espeakOPTIONS=8, // reserved for misc. options. not yet used
  285. espeakINTONATION=9,
  286. espeakRESERVED1=10,
  287. espeakRESERVED2=11,
  288. espeakEMPHASIS, /* internal use */
  289. espeakLINELENGTH, /* internal use */
  290. espeakVOICETYPE, // internal, 1=mbrola
  291. N_SPEECH_PARAM /* last enum */
  292. } espeak_PARAMETER;
  293. typedef enum {
  294. espeakPUNCT_NONE=0,
  295. espeakPUNCT_ALL=1,
  296. espeakPUNCT_SOME=2
  297. } espeak_PUNCT_TYPE;
  298. #ifdef __cplusplus
  299. extern "C"
  300. #endif
  301. ESPEAK_API espeak_ERROR espeak_SetParameter(espeak_PARAMETER parameter, int value, int relative);
  302. /* Sets the value of the specified parameter.
  303. relative=0 Sets the absolute value of the parameter.
  304. relative=1 Sets a relative value of the parameter.
  305. parameter:
  306. espeakRATE: speaking speed in word per minute. Values 80 to 450.
  307. espeakVOLUME: volume in range 0-200 or more.
  308. 0=silence, 100=normal full volume, greater values may produce amplitude compression or distortion
  309. espeakPITCH: base pitch, range 0-100. 50=normal
  310. espeakRANGE: pitch range, range 0-100. 0-monotone, 50=normal
  311. espeakPUNCTUATION: which punctuation characters to announce:
  312. value in espeak_PUNCT_TYPE (none, all, some),
  313. see espeak_GetParameter() to specify which characters are announced.
  314. espeakCAPITALS: announce capital letters by:
  315. 0=none,
  316. 1=sound icon,
  317. 2=spelling,
  318. 3 or higher, by raising pitch. This values gives the amount in Hz by which the pitch
  319. of a word raised to indicate it has a capital letter.
  320. espeakWORDGAP: pause between words, units of 10mS (at the default speed)
  321. Return: EE_OK: operation achieved
  322. EE_BUFFER_FULL: the command can not be buffered;
  323. you may try after a while to call the function again.
  324. EE_INTERNAL_ERROR.
  325. */
  326. #ifdef __cplusplus
  327. extern "C"
  328. #endif
  329. ESPEAK_API int espeak_GetParameter(espeak_PARAMETER parameter, int current);
  330. /* current=0 Returns the default value of the specified parameter.
  331. current=1 Returns the current value of the specified parameter, as set by SetParameter()
  332. */
  333. #ifdef __cplusplus
  334. extern "C"
  335. #endif
  336. ESPEAK_API espeak_ERROR espeak_SetPunctuationList(const wchar_t *punctlist);
  337. /* Specified a list of punctuation characters whose names are to be spoken when the
  338. value of the Punctuation parameter is set to "some".
  339. punctlist: A list of character codes, terminated by a zero character.
  340. Return: EE_OK: operation achieved
  341. EE_BUFFER_FULL: the command can not be buffered;
  342. you may try after a while to call the function again.
  343. EE_INTERNAL_ERROR.
  344. */
  345. #ifdef __cplusplus
  346. extern "C"
  347. #endif
  348. ESPEAK_API void espeak_SetPhonemeTrace(int value, FILE *stream);
  349. /* Controls the output of phoneme symbols for the text
  350. value=0 No phoneme output (default)
  351. value=1 Output the translated phoneme symbols for the text
  352. value=2 as (1), but also output a trace of how the translation was done (matching rules and list entries)
  353. value=3 as (1), but produces IPA rather than ascii phoneme names
  354. stream output stream for the phoneme symbols (and trace). If stream=NULL then it uses stdout.
  355. */
  356. #ifdef __cplusplus
  357. extern "C"
  358. #endif
  359. ESPEAK_API void espeak_CompileDictionary(const char *path, FILE *log, int flags);
  360. /* Compile pronunciation dictionary for a language which corresponds to the currently
  361. selected voice. The required voice should be selected before calling this function.
  362. path: The directory which contains the language's '_rules' and '_list' files.
  363. 'path' should end with a path separator character ('/').
  364. log: Stream for error reports and statistics information. If log=NULL then stderr will be used.
  365. flags: Bit 0: include source line information for debug purposes (This is displayed with the
  366. -X command line option).
  367. */
  368. /***********************/
  369. /* Voice Selection */
  370. /***********************/
  371. // voice table
  372. typedef struct {
  373. const char *name; // a given name for this voice. UTF8 string.
  374. const char *languages; // list of pairs of (byte) priority + (string) language (and dialect qualifier)
  375. const char *identifier; // the filename for this voice within espeak-data/voices
  376. unsigned char gender; // 0=none 1=male, 2=female,
  377. unsigned char age; // 0=not specified, or age in years
  378. unsigned char variant; // only used when passed as a parameter to espeak_SetVoiceByProperties
  379. unsigned char xx1; // for internal use
  380. int score; // for internal use
  381. void *spare; // for internal use
  382. } espeak_VOICE;
  383. /* Note: The espeak_VOICE structure is used for two purposes:
  384. 1. To return the details of the available voices.
  385. 2. As a parameter to espeak_SetVoiceByProperties() in order to specify selection criteria.
  386. In (1), the "languages" field consists of a list of (UTF8) language names for which this voice
  387. may be used, each language name in the list is terminated by a zero byte and is also preceded by
  388. a single byte which gives a "priority" number. The list of languages is terminated by an
  389. additional zero byte.
  390. A language name consists of a language code, optionally followed by one or more qualifier (dialect)
  391. names separated by hyphens (eg. "en-uk"). A voice might, for example, have languages "en-uk" and
  392. "en". Even without "en" listed, voice would still be selected for the "en" language (because
  393. "en-uk" is related) but at a lower priority.
  394. The priority byte indicates how the voice is preferred for the language. A low number indicates a
  395. more preferred voice, a higher number indicates a less preferred voice.
  396. In (2), the "languages" field consists simply of a single (UTF8) language name, with no preceding
  397. priority byte.
  398. */
  399. #ifdef __cplusplus
  400. extern "C"
  401. #endif
  402. ESPEAK_API const espeak_VOICE **espeak_ListVoices(espeak_VOICE *voice_spec);
  403. /* Reads the voice files from espeak-data/voices and creates an array of espeak_VOICE pointers.
  404. The list is terminated by a NULL pointer
  405. If voice_spec is NULL then all voices are listed.
  406. If voice spec is given, then only the voices which are compatible with the voice_spec
  407. are listed, and they are listed in preference order.
  408. */
  409. #ifdef __cplusplus
  410. extern "C"
  411. #endif
  412. ESPEAK_API espeak_ERROR espeak_SetVoiceByName(const char *name);
  413. /* Searches for a voice with a matching "name" field. Language is not considered.
  414. "name" is a UTF8 string.
  415. Return: EE_OK: operation achieved
  416. EE_BUFFER_FULL: the command can not be buffered;
  417. you may try after a while to call the function again.
  418. EE_INTERNAL_ERROR.
  419. */
  420. #ifdef __cplusplus
  421. extern "C"
  422. #endif
  423. ESPEAK_API espeak_ERROR espeak_SetVoiceByProperties(espeak_VOICE *voice_spec);
  424. /* An espeak_VOICE structure is used to pass criteria to select a voice. Any of the following
  425. fields may be set:
  426. name NULL, or a voice name
  427. languages NULL, or a single language string (with optional dialect), eg. "en-uk", or "en"
  428. gender 0=not specified, 1=male, 2=female
  429. age 0=not specified, or an age in years
  430. variant After a list of candidates is produced, scored and sorted, "variant" is used to index
  431. that list and choose a voice.
  432. variant=0 takes the top voice (i.e. best match). variant=1 takes the next voice, etc
  433. */
  434. #ifdef __cplusplus
  435. extern "C"
  436. #endif
  437. ESPEAK_API espeak_VOICE *espeak_GetCurrentVoice(void);
  438. /* Returns the espeak_VOICE data for the currently selected voice.
  439. This is not affected by temporary voice changes caused by SSML elements such as <voice> and <s>
  440. */
  441. #ifdef __cplusplus
  442. extern "C"
  443. #endif
  444. ESPEAK_API espeak_ERROR espeak_Cancel(void);
  445. /* Stop immediately synthesis and audio output of the current text. When this
  446. function returns, the audio output is fully stopped and the synthesizer is ready to
  447. synthesize a new message.
  448. Return: EE_OK: operation achieved
  449. EE_INTERNAL_ERROR.
  450. */
  451. #ifdef __cplusplus
  452. extern "C"
  453. #endif
  454. ESPEAK_API int espeak_IsPlaying(void);
  455. /* Returns 1 if audio is played, 0 otherwise.
  456. */
  457. #ifdef __cplusplus
  458. extern "C"
  459. #endif
  460. ESPEAK_API espeak_ERROR espeak_Synchronize(void);
  461. /* This function returns when all data have been spoken.
  462. Return: EE_OK: operation achieved
  463. EE_INTERNAL_ERROR.
  464. */
  465. #ifdef __cplusplus
  466. extern "C"
  467. #endif
  468. ESPEAK_API espeak_ERROR espeak_Terminate(void);
  469. /* last function to be called.
  470. Return: EE_OK: operation achieved
  471. EE_INTERNAL_ERROR.
  472. */
  473. #ifdef __cplusplus
  474. extern "C"
  475. #endif
  476. ESPEAK_API const char *espeak_Info(const char **path_data);
  477. /* Returns the version number string.
  478. path_data returns the path to espeak_data
  479. */
  480. #endif