The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WebService::Naver::TTS - Perl interface to Naver TTS API

SYNOPSIS

    my $client = WebService::Naver::TTS->new(id => 'xxxx', secret => 'xxxx');
    my $mp3    = $client->tts('안녕하세요');    # $mp3 is Path::Tiny object

METHODS

new( id => $id, secret => $secret, \%options )

API 권한 설정 및 호출 방법

    my $client = WebService::Naver::TTS->new(id => $client_id, secret => $client_secret);

\%options

speaker

See "speaker($speaker)"

speed

Interger value between -5 and 5. 0 is default.

-5 ~ 5 사이 정수로 -5면 0.5배 빠른, 5면 0.5배 느린, 0이면 정상 속도의 목소리로 합성

speaker($speaker)

  • mijin 미진(한국어, 여성) - default

  • jinho 진호(한국어, 남성)

  • clara 클라라(영어, 여성)

  • matt 매튜(영어, 남성)

  • yuri 유리(일본어, 여성)

  • shinji 신지(일본어, 남성)

  • meimei 메이메이(중국어, 여성)

tts($text)

    my $mp3 = $client->tts('안녕하세요');

$mp3 is "tempfile, tempdir" in Path::Tiny obj.

$mp3 is undef if failed.

COPYRIGHT and LICENSE

The MIT License (MIT)

Copyright (c) 2017 Hyungsuk Hong