Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Alexa と Polly と私

y13i
February 11, 2018

Alexa と Polly と私

2018-02-11 Alexa Day 2018 ランチセッション

repo: https://github.com/y13i/alexaday2018lt
Polly Showcase: https://www.youtube.com/watch?v=qn1vHEmlcVs
外郎売: https://www.youtube.com/watch?v=FKKUzABWBHk&t=6s

y13i

February 11, 2018
Tweet

More Decks by y13i

Other Decks in Technology

Transcript

  1. Alexa Ҏ֎͕஻Δ Alexa Skill Λ࡞ΕΔ • Alexa ͸ঁੑͷ੠͔ͩΒɺஉੑͷ੠Ͱ஻ΔεΩϧ͸ҙ֎ੑ͕͋Δ͔΋ʁʁ • ೔ຊޠΛ஻Δஉੑͷ੠ʢTakumiʣ͕2017೥10݄ʹ௥Ճ͞Εͨ

    • ֎ࠃޠ΋ OK! • ݱ࣌఺Ͱ18ݴޠʢํݴΛؚΊΔͱ25छྨʣɺ52Ի੠ͷϥΠϯφοϓ • $ aws polly describe-voices • σόΠεʢEcho etc.ʣͷݴޠઃఆΛແࢹͯ͠֎ࠃޠΛ஻ΒͤΔ
  2. Ͳ͏΍࣮ͬͯ૷͢Δ͔ • ·ͣ Polly Ͱग़ྗͨ͠Ի੠ϑΝΠϧΛ S3 ʹஔ͘ • Alexa Skill

    ͰͦͷԻ੠ϑΝΠϧΛ࠶ੜͤ͞Δʹ͸2ͭํ๏͕͋Δ • ୹࣌ؒɺ௿Ի࣭ͳΒ SSML ͷதʹ <audio> ཁૉͱͯ͠ຒΊࠐΊΔ • 48 kbpsɺ16000 Hzɺ1Ϩεϙϯεʹ5ϑΝΠϧ·Ͱɺ߹ܭ90ඵҎ಺ • ͦΕҎ্ͷ৔߹͸ AudioPlayer ΠϯλʔϑΣΠεΛ࢖͏
  3. ΍ͬͯΈͨ • ࣍ɺPolly ͷ೔ຊޠঁੑԻ੠ Mizuki ʹΑΔ࿕ಡ ϛζΩʹಡ·ͤͯ ɹ੿ऀ਌ํͱਃ͢͸ɺ ޚཱձͷ಺ʹޚଘ஌ͷޚํ΋ޚ࠲Γ·͠ΐ͏͕ɺ ޚߐށΛൃͬͯೋेཬ্ํɺ

    ૬भখాݪҰ৭ொΛޚա͗ͳ͞Εͯɺ ੨෺ொΛ্Γ΁ޚग़Ͱͳ͞ΔΕ͹ɺ ཝׯڮދ԰౻ӈӴ໳ɺ ୞ࠓͰ͸ం൅கͯ͠ᅵࡈͱ໊৐Γ·͢Δɻ ŠŠʰ֎࿠ചʱ๯಄
  4. ΍ͬͯΈͨ • ࠷ޙʹ Polly ͷ೔ຊޠஉੑԻ੠ Takumi ʹΑΔ࿕ಡ λΫϛʹಡ·ͤͯ ɹ੿ऀ਌ํͱਃ͢͸ɺ ޚཱձͷ಺ʹޚଘ஌ͷޚํ΋ޚ࠲Γ·͠ΐ͏͕ɺ

    ޚߐށΛൃͬͯೋेཬ্ํɺ ૬भখాݪҰ৭ொΛޚա͗ͳ͞Εͯɺ ੨෺ொΛ্Γ΁ޚग़Ͱͳ͞ΔΕ͹ɺ ཝׯڮދ԰౻ӈӴ໳ɺ ୞ࠓͰ͸ం൅கͯ͠ᅵࡈͱ໊৐Γ·͢Δɻ ŠŠʰ֎࿠ചʱ๯಄
  5. ײ૝ • Alexa ͱ Mizuki ͸΄ͱΜͲҰॹ͔ͱࢥ͍ͬͯͨΒҙ֎ʹҧͬͨ • Alexa ͸͔ͳΓࣗવʹಡΜͰ͘Εͨʢͱࢥ͏ʣɻPolly ΋݈ಆ͍ͯ͠Δ͕

    Alexa ʹ܉഑͔ͳ…ʁ • SSML Λ͕Μ͹ͬͯௐ੔͢Ε͹ࣗવͳൃ੠ʹۙͮ͘ • λά͚ͩͰͳ͘ɺ೔ຊޠͰ͸ͻΒ͕ͳɾ׽ࣈΛม͑Δ͚ͩͰ΋χϡΞϯε͕ҧ͏ • VOCALOID γϦʔζΛ৮ͬͨ͜ͱ͕͋Δਓ͸͜͏͍͏࡞ۀ͕ಘҙͩͱࢥ͏ • Alexa ͱ Polly Ͱ͸શମͷԻྔ͕ҟͳΔʢPolly ͷํ͕খ͞Ίʣ • ࠓճ͸ Polly ͷεϐʔνશମΛ <prosody volume="+2.1dB"></prosody> ͰғΜͰௐ੔