Skip Menu |

This queue is for tickets about the Speech-eSpeak CPAN distribution.

Report information
The Basics
Id: 48994
Status: rejected
Worked: 2 hours (120 min)
Priority: 0/
Queue: Speech-eSpeak

People
Owner: Nobody in particular
Requestors: cnowicki [...] easter-eggs.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: espeak_ListVoices function return an empty list
Date: Tue, 25 Aug 2009 17:38:16 +0200
To: bug-Speech-eSpeak [...] rt.cpan.org
From: Christophe Nowicki <cnowicki [...] easter-eggs.com>
Hi, I'am using Speech-eSpeak 0.3 on Debian GNU/Linux. It's working very well. But the espeak_ListVoices function return an empty list. My source code : use Speech::eSpeak ':all'; use Data::Dumper; use strict; my $voices = espeak_ListVoices(''); print Dumper($voices); foreach my $voice_spec (@{$voices}) { foreach (keys %{$voice_spec}) { print $voice_spec->{$_}, ' '; } print "\n"; } The output : $ ./list.pl $VAR1 = []; Running espeak with the command ligne works very well : espeak --voices= Pty Language Age/Gender VoiceName File Other Langs 5 af M afrikaans af 5 bs M bosnian bs 5 cs M czech cs 5 cy M welsh-test cy 5 de M german de 5 el M greek el 5 en M default default Could you fix this issue? Best Regards, -- Christophe Nowicki / Easter-eggs Specialiste GNU/Linux 44-46 rue de l'Ouest - 75014 Paris - France - Metro Gaite Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 43 35 00 76 mailto:cnowicki@easter-eggs.com - http://www.easter-eggs.com
Download signature.asc
application/pgp-signature 197b

Message body not shown because it is not plain text.

This is not a bug. (I believed it was at first but found the cause after some debugging.) Before calling any method of espeak, we need to call espeak_Initialize or its Perl wrapper Speech::eSpeak::new().