eSpeak.xs

filter: Statementstmt 0.0% 0 / 126 Branchbran 0.0% 0 / 126 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 252 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« const-xs.inc ↑ Summary
1 #include "EXTERN.h"
2 #include "perl.h"
3 #include "XSUB.h"
4  
5 #include "ppport.h"
6  
7 #include "speak_lib.h"
8 #include <stdlib.h>
9  
10 #include "const-c.inc"
11  
12 #include <string.h>
13  
14 typedef espeak_EVENT Speech_eSpeak_Event;
15  
16 static SV * perl_synthcallback = (SV*)NULL;
17 static SV * perl_uricallback = (SV*)NULL;
18  
19 0 int c_uricallback(int type, const char *uri, const char *base)
20 {
21 0 }
22  
23 0 int c_synthcallback(short *wav, int numsamples, SV* events)
24 {
25 /*
26 printf("enter c_synthcallback\n");
27 espeak_EVENT *event = (espeak_EVENT*) SvRV(events);
28 printf("wav:, numsamples:%d, events:%d\n", numsamples, event->unique_identifier);
29 if (perl_synthcallback == NULL) {
30 printf("NULL\n");
31 }
32  
33 dSP;
34 ENTER;
35 SAVETMPS;
36 PUSHMARK(SP);
37 XPUSHs(sv_2mortal(newSVpvn((char*)wav, numsamples)));
38 XPUSHs(sv_2mortal(newSViv(numsamples)));
39 XPUSHs(sv_2mortal(newSViv(event->type)));
40 XPUSHs(sv_2mortal(newSViv(event->unique_identifier)));
41 XPUSHs(sv_2mortal(newSViv(event->text_position)));
42 XPUSHs(sv_2mortal(newSViv(event->audio_position)));
43 XPUSHs(sv_2mortal(newSVsv(event->user_data)));
44 if (event->type == espeakEVENT_WORD || event->type == espeakEVENT_SENTENCE || espeakEVENT_PHONEME) {
45 XPUSHs(sv_2mortal(newSViv(event->id.number)));
46 } else if (event->type == espeakEVENT_MARK || event->type == espeakEVENT_PLAY) {
47 XPUSHs(sv_2mortal(newSVpv(event->id.name, 0)));
48 }
49 PUTBACK;
50  
51 call_sv(perl_synthcallback, G_SCALAR);
52 FREETMPS;
53 LEAVE;
54  
55 return 0;
56 */
57 0 }
58  
59 MODULE = Speech::eSpeak PACKAGE = Speech::eSpeak
60 INCLUDE: const-xs.inc
61  
62 IV
63 espeakEVENT_LIST_TERMINATED()
64 CODE:
65 0 ▶ RETVAL = espeakEVENT_LIST_TERMINATED;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakEVENT_LIST_TERMINATED; 0 0 0
66 OUTPUT:
67 RETVAL
68  
69 IV
70 espeakEVENT_WORD()
71 CODE:
72 0 ▶ RETVAL = espeakEVENT_WORD;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakEVENT_WORD; 0 0 0
73 OUTPUT:
74 RETVAL
75  
76 IV
77 espeakEVENT_SENTENCE()
78 CODE:
79 0 ▶ RETVAL = espeakEVENT_SENTENCE;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakEVENT_SENTENCE; 0 0 0
80 OUTPUT:
81 RETVAL
82  
83 IV
84 espeakEVENT_MARK()
85 CODE:
86 0 ▶ RETVAL = espeakEVENT_MARK;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakEVENT_MARK; 0 0 0
87 OUTPUT:
88 RETVAL
89  
90 IV
91 espeakEVENT_PLAY()
92 CODE:
93 0 ▶ RETVAL = espeakEVENT_PLAY;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakEVENT_PLAY; 0 0 0
94 OUTPUT:
95 RETVAL
96  
97 IV
98 espeakEVENT_END()
99 CODE:
100 0 ▶ RETVAL = espeakEVENT_END;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakEVENT_END; 0 0 0
101 OUTPUT:
102 RETVAL
103  
104 IV
105 espeakEVENT_MSG_TERMINATED()
106 CODE:
107 0 ▶ RETVAL = espeakEVENT_MSG_TERMINATED;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakEVENT_MSG_TERMINATED; 0 0 0
108 OUTPUT:
109 RETVAL
110  
111 IV
112 espeakEVENT_PHONEME()
113 CODE:
114 0 ▶ RETVAL = espeakEVENT_PHONEME;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakEVENT_PHONEME; 0 0 0
115 OUTPUT:
116 RETVAL
117  
118 IV
119 POS_CHARACTER()
120 CODE:
121 0 ▶ RETVAL = POS_CHARACTER;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = POS_CHARACTER; 0 0 0
122 OUTPUT:
123 RETVAL
124  
125 IV
126 POS_WORD()
127 CODE:
128 0 ▶ RETVAL = POS_WORD;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = POS_WORD; 0 0 0
129 OUTPUT:
130 RETVAL
131  
132 IV
133 POS_SENTENCE()
134 CODE:
135 0 ▶ RETVAL = POS_SENTENCE;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = POS_SENTENCE; 0 0 0
136 OUTPUT:
137 RETVAL
138  
139 IV
140 AUDIO_OUTPUT_PLAYBACK()
141 CODE:
142 0 ▶ RETVAL = AUDIO_OUTPUT_PLAYBACK;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = AUDIO_OUTPUT_PLAYBACK; 0 0 0
143 OUTPUT:
144 RETVAL
145  
146 IV
147 AUDIO_OUTPUT_RETRIEVAL()
148 CODE:
149 0 ▶ RETVAL = AUDIO_OUTPUT_RETRIEVAL;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = AUDIO_OUTPUT_RETRIEVAL; 0 0 0
150 OUTPUT:
151 RETVAL
152  
153 IV
154 AUDIO_OUTPUT_SYNCHRONOUS()
155 CODE:
156 0 ▶ RETVAL = AUDIO_OUTPUT_SYNCHRONOUS;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = AUDIO_OUTPUT_SYNCHRONOUS; 0 0 0
157 OUTPUT:
158 RETVAL
159  
160 IV
161 AUDIO_OUTPUT_SYNCH_PLAYBACK()
162 CODE:
163 0 ▶ RETVAL = AUDIO_OUTPUT_SYNCH_PLAYBACK;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = AUDIO_OUTPUT_SYNCH_PLAYBACK; 0 0 0
164 OUTPUT:
165 RETVAL
166  
167 IV
168 EE_OK()
169 CODE:
170 0 ▶ RETVAL = EE_OK;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = EE_OK; 0 0 0
171 OUTPUT:
172 RETVAL
173  
174 IV
175 EE_INTERNAL_ERROR()
176 CODE:
177 0 ▶ RETVAL = EE_INTERNAL_ERROR;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = EE_INTERNAL_ERROR; 0 0 0
178 OUTPUT:
179 RETVAL
180  
181 IV
182 EE_BUFFER_FULL()
183 CODE:
184 0 ▶ RETVAL = EE_BUFFER_FULL;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = EE_BUFFER_FULL; 0 0 0
185 OUTPUT:
186 RETVAL
187  
188 IV
189 EE_NOT_FOUND()
190 CODE:
191 0 ▶ RETVAL = EE_NOT_FOUND;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = EE_NOT_FOUND; 0 0 0
192 OUTPUT:
193 RETVAL
194  
195 int
196 espeak_Initialize(output, buflength, path, options)
197 IV output
198 int buflength
199 const char * path
200 int options
201  
202 void
203 espeak_SetSynthCallback(SynthCallback)
204 SV* SynthCallback
205 CODE:
206 0 ▶ if (perl_synthcallback == (SV*)NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (perl_synthcallback == (SV*)NULL) 0 0 0
207 0 perl_synthcallback = newSVsv((SV*)SynthCallback);
208 else
209 0 ▶ SvSetSV(perl_synthcallback, (SV*)SynthCallback);
Branch: 1 branch
BranchTrueFalseTotal
SvSetSV(perl_synthcallback, (SV*)SynthCallback); 0 0 0
210 0 espeak_SetSynthCallback((t_espeak_callback*)c_synthcallback);
211  
212 void
213 espeak_SetUriCallback(UriCallback)
214 SV* UriCallback
215 CODE:
216 0 ▶ if (perl_uricallback == (SV*)NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (perl_uricallback == (SV*)NULL) 0 0 0
217 0 perl_uricallback = newSVsv((SV*)UriCallback);
218 else
219 0 ▶ SvSetSV(perl_uricallback, (SV*)UriCallback);
Branch: 1 branch
BranchTrueFalseTotal
SvSetSV(perl_uricallback, (SV*)UriCallback); 0 0 0
220 0 espeak_SetUriCallback(c_uricallback);
221  
222 IV
223 espeak_Synth(text, size, positon, position_type, end_position, flags, unique_identifier, user_data)
224 const void * text
225 size_t size
226 unsigned int positon
227 IV position_type
228 unsigned int end_position
229 unsigned int flags
230 unsigned int * unique_identifier
231 void * user_data
232  
233 IV
234 espeak_Synth_Mark(text, size, index_mark, end_position, flags, unique_identifier, user_data)
235 const void * text
236 size_t size
237 const char * index_mark
238 unsigned int end_position
239 unsigned int flags
240 unsigned int * unique_identifier
241 void * user_data
242  
243 IV
244 espeak_Key(key_name)
245 const char * key_name
246  
247 IV
248 espeak_Char(character)
249 wchar_t character
250  
251 IV
252 espeakSILENCE()
253 CODE:
254 0 ▶ RETVAL = espeakSILENCE;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakSILENCE; 0 0 0
255 OUTPUT:
256 RETVAL
257  
258 IV
259 espeakRATE()
260 CODE:
261 0 ▶ RETVAL = espeakRATE;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakRATE; 0 0 0
262 OUTPUT:
263 RETVAL
264  
265 IV
266 espeakVOLUME()
267 CODE:
268 0 ▶ RETVAL = espeakVOLUME;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakVOLUME; 0 0 0
269 OUTPUT:
270 RETVAL
271  
272 IV
273 espeakPITCH()
274 CODE:
275 0 ▶ RETVAL = espeakPITCH;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakPITCH; 0 0 0
276 OUTPUT:
277 RETVAL
278  
279 IV
280 espeakRANGE()
281 CODE:
282 0 ▶ RETVAL = espeakRANGE;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakRANGE; 0 0 0
283 OUTPUT:
284 RETVAL
285  
286 IV
287 espeakPUNCTUATION()
288 CODE:
289 0 ▶ RETVAL = espeakPUNCTUATION;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakPUNCTUATION; 0 0 0
290 OUTPUT:
291 RETVAL
292  
293 IV
294 espeakCAPITALS()
295 CODE:
296 0 ▶ RETVAL = espeakCAPITALS;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakCAPITALS; 0 0 0
297 OUTPUT:
298 RETVAL
299  
300 IV
301 espeakEMPHASIS()
302 CODE:
303 0 ▶ RETVAL = espeakEMPHASIS;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakEMPHASIS; 0 0 0
304 OUTPUT:
305 RETVAL
306  
307 IV
308 espeakLINELENGTH()
309 CODE:
310 0 ▶ RETVAL = espeakLINELENGTH;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakLINELENGTH; 0 0 0
311 OUTPUT:
312 RETVAL
313  
314 IV
315 espeakVOICETYPE()
316 CODE:
317 0 ▶ RETVAL = espeakVOICETYPE;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakVOICETYPE; 0 0 0
318 OUTPUT:
319 RETVAL
320  
321 IV
322 N_SPEECH_PARAM()
323 CODE:
324 0 ▶ RETVAL = N_SPEECH_PARAM;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = N_SPEECH_PARAM; 0 0 0
325 OUTPUT:
326 RETVAL
327  
328 IV
329 espeakPUNCT_NONE()
330 CODE:
331 0 ▶ RETVAL = espeakPUNCT_NONE;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakPUNCT_NONE; 0 0 0
332 OUTPUT:
333 RETVAL
334  
335 IV
336 espeakPUNCT_ALL()
337 CODE:
338 0 ▶ RETVAL = espeakPUNCT_ALL;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakPUNCT_ALL; 0 0 0
339 OUTPUT:
340 RETVAL
341  
342 IV
343 espeakPUNCT_SOME()
344 CODE:
345 0 ▶ RETVAL = espeakPUNCT_SOME;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = espeakPUNCT_SOME; 0 0 0
346 OUTPUT:
347 RETVAL
348  
349 IV
350 espeak_SetParameter(parameter, value, relative)
351 IV parameter
352 int value
353 int relative
354  
355 IV
356 espeak_GetParameter(parameter, current)
357 IV parameter
358 int current
359  
360 IV
361 espeak_SetPunctuationList(punctlist)
362 const wchar_t * punctlist
363  
364 void
365 espeak_SetPhonemeTrace(value, stream)
366 int value
367 FILE * stream
368  
369 void
370 espeak_CompileDictionary(path, log, flags)
371 const char * path
372 FILE * log
373 int flags
374  
375 SV *
376 espeak_ListVoices(voice_spec)
377 SV * voice_spec
378 INIT:
379 AV * results;
380 0 espeak_VOICE *voice = (espeak_VOICE *) malloc(sizeof(espeak_VOICE));
381 STRLEN len;
382 const espeak_VOICE ** voices;
383 0 results = (AV *)sv_2mortal((SV *)newAV());
384 CODE:
385 0 ▶ if ((!SvROK(voice_spec))
Branch: 1 branch
BranchTrueFalseTotal
if ((!SvROK(voice_spec)) 0 0 0
386 0 ▶ || (SvTYPE(SvRV(voice_spec)) != SVt_PVHV)) {
Branch: 1 branch
BranchTrueFalseTotal
|| (SvTYPE(SvRV(voice_spec)) != SVt_PVHV)) { 0 0 0
387 0 voices = espeak_ListVoices(NULL);
388 } else {
389 0 HV * spec = (HV *) SvRV(voice_spec);
390 0 ▶ if (hv_exists(spec, "name", 4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (hv_exists(spec, "name", 4)) { 0 0 0
391 0 voice->name = SvPV(newSVsv(*hv_fetch(spec, "name", 4, 1)
392 ), len);
393 } else {
394 0 voice->name = "";
395 }
396  
397 0 ▶ if (hv_exists(spec, "languages", 9)) {
Branch: 1 branch
BranchTrueFalseTotal
if (hv_exists(spec, "languages", 9)) { 0 0 0
398 0 voice->languages = SvPV(newSVsv(*hv_fetch(spec, "languages", 9, 1)), len);
399 } else {
400 0 voice->languages = "";
401 }
402  
403 0 ▶ if (hv_exists(spec, "identifier", 10)) {
Branch: 1 branch
BranchTrueFalseTotal
if (hv_exists(spec, "identifier", 10)) { 0 0 0
404 0 voice->identifier = SvPV(newSVsv(*hv_fetch(spec, "identifier", 10, 1)), len);
405 } else {
406 0 voice->identifier = "";
407 }
408  
409 0 ▶ if (hv_exists(spec, "gender", 6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (hv_exists(spec, "gender", 6)) { 0 0 0
410 0 voice->gender = SvIV(newSVsv(*hv_fetch(spec, "gender", 6, 1)));
411 } else {
412 0 voice->gender = 0;
413 }
414  
415 0 ▶ if (hv_exists(spec, "age", 3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (hv_exists(spec, "age", 3)) { 0 0 0
416 0 voice->age = SvIV(newSVsv(*hv_fetch(spec, "age", 3, 1)));
417 } else {
418 0 voice->age = 0;
419 }
420  
421 0 ▶ if (hv_exists(spec, "variant", 7)) {
Branch: 1 branch
BranchTrueFalseTotal
if (hv_exists(spec, "variant", 7)) { 0 0 0
422 0 voice->variant = SvIV(newSVsv(*hv_fetch(spec, "variant", 7, 1)));
423 } else {
424 0 voice->variant = 0;
425 }
426 0 voices = espeak_ListVoices(voice);
427 }
428  
429 0 int i = 0;
430 0 ▶ while (voices[i]) {
Branch: 1 branch
BranchTrueFalseTotal
while (voices[i]) { 0 0 0
431 0 HV * vi = (HV *)sv_2mortal((SV *)newHV());
432 0 hv_store(vi, "name", 4, newSVpv(voices[i]->name, 0), 0);
433 0 hv_store(vi, "languages", 9, newSVpv(voices[i]->languages, 0), 0);
434 0 hv_store(vi, "identifier", 10, newSVpv(voices[i]->identifier, 0), 0);
435 0 hv_store(vi, "age", 3, newSViv(voices[i]->age), 0);
436 0 hv_store(vi, "gender", 6, newSViv(voices[i]->gender), 0);
437 0 hv_store(vi, "variant", 7, newSViv(voices[i]->variant), 0);
438  
439 0 av_push(results, newRV((SV *)vi));
440 0 i++;
441 }
442 0 RETVAL = newRV((SV *)results);
443 OUTPUT:
444 RETVAL
445  
446 IV
447 espeak_SetVoiceByName(name)
448 const char * name
449  
450 IV
451 espeak_SetVoiceByProperties(voice_spec)
452 SV * voice_spec
453 INIT:
454 0 espeak_VOICE *voice = (espeak_VOICE *) malloc(sizeof(espeak_VOICE));
455 0 ▶ if ((!SvROK(voice_spec))
Branch: 1 branch
BranchTrueFalseTotal
if ((!SvROK(voice_spec)) 0 0 0
456 0 ▶ || (SvTYPE(SvRV(voice_spec)) != SVt_PVHV)) {
Branch: 1 branch
BranchTrueFalseTotal
|| (SvTYPE(SvRV(voice_spec)) != SVt_PVHV)) { 0 0 0
457 0 XSRETURN_UNDEF;
458 }
459 0 HV * spec = (HV *) SvRV(voice_spec);
460 STRLEN len;
461 CODE:
462 0 ▶ if (hv_exists(spec, "name", 4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (hv_exists(spec, "name", 4)) { 0 0 0
463 0 voice->name = SvPV(newSVsv(*hv_fetch(spec, "name", 4, 1)), len);
464 } else {
465 0 voice->name = "";
466 }
467  
468 0 ▶ if (hv_exists(spec, "languages", 9)) {
Branch: 1 branch
BranchTrueFalseTotal
if (hv_exists(spec, "languages", 9)) { 0 0 0
469 0 voice->languages = SvPV(newSVsv(*hv_fetch(spec, "languages", 9, 1)), len);
470 } else {
471 0 voice->languages = "";
472 }
473  
474 0 ▶ if (hv_exists(spec, "identifier", 10)) {
Branch: 1 branch
BranchTrueFalseTotal
if (hv_exists(spec, "identifier", 10)) { 0 0 0
475 0 voice->identifier = SvPV(newSVsv(*hv_fetch(spec, "identifier", 10, 1)), len);
476 } else {
477 0 voice->identifier = "";
478 }
479  
480 0 ▶ if (hv_exists(spec, "gender", 6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (hv_exists(spec, "gender", 6)) { 0 0 0
481 0 voice->gender = SvIV(newSVsv(*hv_fetch(spec, "gender", 6, 1)));
482 } else {
483 0 voice->gender = 0;
484 }
485  
486 0 ▶ if (hv_exists(spec, "age", 3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (hv_exists(spec, "age", 3)) { 0 0 0
487 0 voice->age = SvIV(newSVsv(*hv_fetch(spec, "age", 3, 1)));
488 } else {
489 0 voice->age = 0;
490 }
491  
492 0 ▶ if (hv_exists(spec, "variant", 7)) {
Branch: 1 branch
BranchTrueFalseTotal
if (hv_exists(spec, "variant", 7)) { 0 0 0
493 0 voice->variant = SvIV(newSVsv(*hv_fetch(spec, "variant", 7, 1)));
494 } else {
495 0 voice->variant = 0;
496 }
497  
498 0 RETVAL = espeak_SetVoiceByProperties(voice);
499 0 ▶ free(voice);
Branch: 1 branch
BranchTrueFalseTotal
free(voice); 0 0 0
500 OUTPUT:
501 RETVAL
502
503  
504 HV *
505 espeak_GetCurrentVoice()
506 INIT:
507 0 HV * result = (HV *)sv_2mortal((SV *)newHV());
508 CODE:
509 0 espeak_VOICE *voice = espeak_GetCurrentVoice();
510 0 hv_store(result, "name", 4, newSVpv(voice->name, 0), 0);
511 0 hv_store(result, "languages", 9, newSVpv(voice->languages, 0), 0);
512 0 hv_store(result, "identifier", 10, newSVpv(voice->identifier, 0), 0);
513 0 hv_store(result, "age", 3, newSViv(voice->age), 0);
514 0 hv_store(result, "gender", 6, newSViv(voice->gender), 0);
515 0 hv_store(result, "variant", 7, newSViv(voice->variant), 0);
516 0 RETVAL = result;
517 OUTPUT:
518 RETVAL
519  
520 IV
521 espeak_Cancel()
522  
523 int
524 espeak_IsPlaying()
525  
526 IV
527 espeak_Synchronize()
528  
529 IV
530 espeak_Terminate()
531  
532 const char *
533 espeak_Info(ptr)
534 void * ptr
535  
536 MODULE = Speech::eSpeak PACKAGE = Speech::eSpeak::EventPtr PREFIX = event_
537  
538 void
539 event_DESTROY(self)
540 Speech_eSpeak_Event * self
541 CODE:
542 0 free(self);
543  
544 IV
545 event_type(self)
546 Speech_eSpeak_Event * self
547 CODE:
548 0 ▶ RETVAL = self->type;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = self->type; 0 0 0
549 OUTPUT:
550 RETVAL
551  
552 unsigned int
553 event_unique_identifier(self)
554 Speech_eSpeak_Event * self
555 CODE:
556 0 ▶ RETVAL = self->unique_identifier;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = self->unique_identifier; 0 0 0
557 OUTPUT:
558 RETVAL
559  
560 int
561 event_text_position(self)
562 Speech_eSpeak_Event * self
563 CODE:
564 0 ▶ RETVAL = self->text_position;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = self->text_position; 0 0 0
565 OUTPUT:
566 RETVAL
567  
568 int
569 event_length(self)
570 Speech_eSpeak_Event * self
571 CODE:
572 0 ▶ RETVAL = self->length;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = self->length; 0 0 0
573 OUTPUT:
574 RETVAL
575  
576 int
577 event_audio_position(self)
578 Speech_eSpeak_Event * self
579 CODE:
580 0 ▶ RETVAL = self->audio_position;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = self->audio_position; 0 0 0
581 OUTPUT:
582 RETVAL
583  
584 int
585 event_sample(self)
586 Speech_eSpeak_Event * self
587 CODE:
588 0 ▶ RETVAL = self->sample;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = self->sample; 0 0 0
589 OUTPUT:
590 RETVAL
591  
592 void *
593 event_user_data(self)
594 Speech_eSpeak_Event * self
595 CODE:
596 0 ▶ RETVAL = self->user_data;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = self->user_data; 0 0 0
597 OUTPUT:
598 RETVAL
599  
600 int
601 event_number(self)
602 Speech_eSpeak_Event * self
603 CODE:
604 0 ▶ RETVAL = (self->id).number;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = (self->id).number; 0 0 0
605 OUTPUT:
606 RETVAL
607  
608 const char *
609 event_name(self)
610 Speech_eSpeak_Event * self
611 CODE:
612 0 RETVAL = (self->id).name;
613 OUTPUT:
614 RETVAL
« const-xs.inc ↑ Summary