WebService::Naver::TTS - Perl interface to Naver TTS API
Clova Speech Synthesis(CSS)
my $client = WebService::Naver::TTS->new(id => 'xxxx', secret => 'xxxx'); my $mp3 = $client->tts('안녕하세요'); # $mp3 is Path::Tiny object
CSS 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 메이메이(중국어, 여성)
liangliang 중국어, 남성
jose 스페인어, 남성
carmen 스페인어, 여성
my $mp3 = $client->tts('안녕하세요');
$text 음성 합성할 문장. UTF-8 인코딩된 텍스트만 지원합니다. CSS API 는 최대 5000 자의 텍스트까지 음성 합성을 지원합니다.
$text
$mp3 is "tempfile, tempdir" in Path::Tiny obj.
$mp3
$mp3 is undef if failed.
undef
%tmp_opts is File::Temp options.
%tmp_opts
DIR => $dir
SUFFIX => '.dir'
TMPDIR => 1
default is 1
1
The MIT License (MIT)
Copyright (c) 2018 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.