-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibrary.pm
35 lines (29 loc) · 898 Bytes
/
library.pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/perl
use Speech::Synthesis;
package rutinas;
sub adios {
my $engine = 'Festival';
my @voices = Speech::Synthesis->InstalledVoices( engine => $engine );
my @avatars = Speech::Synthesis->InstalledAvatars( engine => $engine );
my $ss = Speech::Synthesis->new(
engine => 'Festival',
avatar => undef,
language => 'es',
voice => 'JuntaDeAndalucia_es_pa_diphone',
async => 0,
);
$ss->speak( $_[0] || "test" );
}
sub tts {
my $engine = 'Festival';
my @voices = Speech::Synthesis->InstalledVoices( engine => $engine );
my @avatars = Speech::Synthesis->InstalledAvatars( engine => $engine );
my $ss = Speech::Synthesis->new(
engine => 'Festival',
avatar => undef, language => 'es',
voice => 'JuntaDeAndalucia_es_pa_diphone',
async => 0,
);
$ss->speak( $_[0] || "test" );
}
1;