WebService::Naver::TTS - Perl interface to Naver TTS API
my $client = WebService::Naver::TTS->new(id => 'xxxx', secret => 'xxxx'); my $mp3 = $client->tts('안녕하세요'); # $mp3 is Path::Tiny object
API 권한 설정 및 호출 방법
my $client = WebService::Naver::TTS->new(id => $client_id, secret => $client_secret);
speaker
See "speaker($speaker)"
speed
Interger value between -5 and 5. 0 is default.
-5
5
0
-5 ~ 5 사이 정수로 -5면 0.5배 빠른, 5면 0.5배 느린, 0이면 정상 속도의 목소리로 합성
mijin 미진(한국어, 여성) - default
jinho 진호(한국어, 남성)
clara 클라라(영어, 여성)
matt 매튜(영어, 남성)
yuri 유리(일본어, 여성)
shinji 신지(일본어, 남성)
meimei 메이메이(중국어, 여성)
my $mp3 = $client->tts('안녕하세요');
$mp3 is "tempfile, tempdir" in Path::Tiny obj.
$mp3
$mp3 is undef if failed.
undef
The MIT License (MIT)
Copyright (c) 2017 Hyungsuk Hong
To install WebService::Naver::TTS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Naver::TTS
CPAN shell
perl -MCPAN -e shell install WebService::Naver::TTS
For more information on module installation, please visit the detailed CPAN module installation guide.