Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
AIキャラアプリkaiwaの低遅延音声通話基盤をどう作ったか - AWS Gravitonで支...
Search
最上土川
June 30, 2026
Programming
270
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
AIキャラアプリkaiwaの低遅延音声通話基盤をどう作ったか - AWS Gravitonで支える低遅延・低コストAI Agent基盤
最上土川
June 30, 2026
More Decks by 最上土川
See All by 最上土川
Datadog 2026/7/23 登壇資料 Speed Is Key AIエージェント時代に求められる オブザーバビリティ
mogamit
0
47
Avaloniaでデスクトップ開発、もっとやってもいいんじゃない?
mogamit
0
1k
Other Decks in Programming
See All in Programming
初心者DevRelとして参加者だった私が、DevRel Talks!#2に登壇するまでにしてきたこと
sokohirai
0
340
Go × SIMDで高速化するベクトル検索 ~ルーフラインモデルでSIMDが効く境界を探れ! ~
po3rin
1
130
アクセシビリティから考える情報設計
high_g_engineer
0
280
go-spidermonkeyでAIエージェントのCode Modeを実装する
syumai
3
1.5k
AWS Step Functions 大規模並列の壁を越える / jaws-sonic-2026-niigata-step-functions
kasacchiful
PRO
0
390
FastAPI の並行処理モデルを完全に理解する
hoto17296
9
3.8k
DroidKaigi 2026 「個人開発という実験場: Android エンジニアが手にする4つの自由」
slashnephy
0
220
デプロイ直後のレイテンシスパイクを調べたら、 Railsの仕様にたどり着いた
nhsykym
0
110
ALB ログから Trace を気合で繋げる技術
fohte
7
880
型解析で実現する Go の言語内 DSL / Conference に Go! タイムテーブルの歩き方 for Gophers
mazrean
0
130
Swift愛好会と私(ウホーイ) / Swift Fan Club and Uhooi
uhooi
0
140
Deep dive into the select statement (GopherCon UK)
jespino
0
170
Featured
See All Featured
Building AI with AI
inesmontani
PRO
1
1.2k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.3k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
320
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.1k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
Site-Speed That Sticks
csswizardry
13
1.5k
The SEO Collaboration Effect
kristinabergwall1
1
550
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
The World Runs on Bad Software
bkeepers
PRO
72
12k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
470
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
Transcript
Livetoon, Inc. all rights reserved AIキャラアプリkaiwaの 低遅延音声通話基盤をどう作ったか 株式会社Livetoon 土川敦也 AWS
Summit Japan 2026 AWS Graviton で支える低遅延・低コストAI Agent基盤
1 Livetoon, Inc. all rights reserved 登壇者紹介 • 土川 敦也(つちかわ
あつや) – ハンドルネーム:最上土川 – 株式会社Livetoon 開発マネージャー – 芝浦工業大学 修士2年生 HCI x AIの研究 • 2020年頃(大1)からスタートアップ界隈で働く • 2023年、とある企業でAIキャラクター開発をする • 2024年12月にLivetoonへ転職 – フロントエンドエンジニアで入ったはずが、 Unity、バックエンド、インフラ、AIモデル開発もやっている
2 Livetoon, Inc. all rights reserved kaiwaとは? • kaiwa (かいわ)
• 初リリース:2025年4月 • AppStore・GooglePlayで配信中 • 「ともだちAI」として気軽に お話してくれるAIキャラクターアプリ • 個性豊かな3Dキャラクター x あなたを覚える記憶システム x 低遅延なSTS基盤
3 ”STS”とは?
4 Livetoon, Inc. all rights reserved “STS”とは? —— “音声”入力に対し、“音声”で応答する技術 その他に
“STT” や “TTS” も存在 STS = Speech to Speech Speech Speech User STS model STT = Speech to Text: AIの「耳」 TTS = Text to Speech: AIの「口」
5 Livetoon, Inc. all rights reserved STSには2つの方式が存在 方式 組み合わせ型 単一モデル型
〇 〇 〇 メリット 賢い カスタマイズ しやすい 速い ✕ ✕ ✕ デメリット 遅い 賢くない カスタマイズ できない LLM User STT TTS STS User 向いている 用途 ✓ キャラクター性:声や話し方を柔軟に変更したい場合 ✓ 用途特化:専門用語を追加学習させたい場合 ✓ 分解性:一部のAIのみ取り出して使用したい場合 ✓ リアルタイム性:同時通訳など、速さが求められる場合
6 Livetoon, Inc. all rights reserved STSには2つの方式が存在 方式 組み合わせ型 単一モデル型
メリット 〇 速い ✕ ✕ デメリット 遅い 賢くない カスタマイズ できない LLM User STT TTS STS User 向いている 用途 ✓ キャラクター性:声や話し方を柔軟に変更したい場合 ✓ 用途特化:専門用語を追加学習させたい場合 ✓ 分解性:一部のAIのみ取り出して使用したい場合 ✓ リアルタイム性:同時通訳など、速さが求められる場合 STSパイプラインを 約700msと高速化し 単一モデル型に匹敵する 速度を実現 〇 賢い 〇 カスタマイズ しやすい 〇 速い
7 今日はSTS基盤を支える Gravitonの話をします
8 Livetoon, Inc. all rights reserved LivetoonのSTSを支えるAWSインフラ
9 Gravitonとは?
10 Livetoon, Inc. all rights reserved Gravitonとは? • AWSが設計したARMアーキテクチャのサーバーCPU •
電力効率が良く、自社設計のため価格性能に優れている • 世代 – Graviton2(2019年発表 / 2020年一般提供開始) – 従来世代のM5/C5/R5比で最大40%の価格性能向上 – Graviton3(2021年発表 / 2022年一般提供開始) – Graviton2比で最大25%高いコンピュート性能 – Graviton4(2023年発表 / 2024年一般提供開始) – Graviton3比で最大30%高いコンピュート性能、 50%多いコア数、75%高いメモリ帯域 画像引用元:https://aws.amazon.com/jp/blogs/news/aws-graviton4-based-amazon-ec2-r8g-instances-best-price-performance-in-amazon-ec2/
11 Livetoon, Inc. all rights reserved LivetoonのSTSを支えるAWSインフラ TTS、STTサーバーでの Graviton2 +
NVIDIA T4 GPU活用
12 Livetoon, Inc. all rights reserved g4dnからg5gへの移行 • g4dn.xlarge •
x86 CPU + NVIDIA T4 GPU • 4 vCPU (Intel Cascade Lake) • 16GB RAM • NVIDIA T4 (VRAM 16GB) • 月コスト(ap-northeast-1) • $518.30 • g5g.xlarge • ARM64 CPU + NVIDIA T4G GPU • 4 vCPU (Graviton2) • 8GB RAM • NVIDIA T4G (VRAM16GB) • 月コスト(ap-northeast-1) • $413.84 (↓ 20.15%) • 移行に必要な作業 • GPU DriverやECS Agentなどを整備したAMI • ARM64+CUDA対応のtorchのビルド作業 Before After 性能変わらずで、約2割のコスト削減
13 なるほど! Gravitonを使えば安くなる という話ね!
14 Gravitonの凄さは 安さだけじゃない
15 Livetoon, Inc. all rights reserved LivetoonのSTSを支えるAWSインフラ Backend APIサーバーでの Graviton3活用
16 Livetoon, Inc. all rights reserved STS機構を支える小さなモデルたち LLM User STT
TTS
17 Livetoon, Inc. all rights reserved STS機構を支える小さなモデルたち LLM User STT
TTS 感情推定 Embeddings VAD ユーザーの発話を検知 RAGの為の 文章ベクトル化 キャラ表情のための 感情推定 約30ms 約30ms
18 Livetoon, Inc. all rights reserved STS機構を支える小さなモデルたち LLM User STT
TTS 感情推定 Embeddings VAD ユーザー端末で CPU/NPU推論 BackendAPI でCPU推論 BackendAPI でCPU推論 ユーザーの発話を検知 RAGの為の 文章ベクトル化 キャラ表情のための 感情推定 約30ms 約30ms
19 Livetoon, Inc. all rights reserved Backend APIサーバーのGraviton移行 • Fargate
x86 • 1 vCPU • 2GB RAM • 月額コスト • $44.98 • ASP.NET Core 9 • EFCore • xUnit • AWSSDK • Qdrant.Client • TorchSharp • c7g.medium (Amazon ECS Managed Instances) • 1 vCPU (Graviton3) • 2GB RAM • 月額コスト • $37.20 (↓17.3%) • ASP.NET Core 9 • EFCore • xUnit • AWSSDK • Qdrant.Client • Livetoon.TorchSharp (TorchSharp ARM64対応版) Before After Embeddings CPU推論 25%高速化、コスト17%ダウン
20 Livetoon, Inc. all rights reserved Intel系とGraviton系でのCPU・メモリのベンチマーク
21 Livetoon, Inc. all rights reserved Intel系とGraviton系でのCPU・メモリのベンチマーク メモリ帯域幅が 非常に優秀
22 Livetoon, Inc. all rights reserved Intel系とGraviton系でのEmbeddingsベンチマーク Embeddingsモデルにはruri-v3 70mを使用
23 Livetoon, Inc. all rights reserved 行列演算が、どの最適化経路に乗るかで性能は大きく変わる どんなCPU命令があるかまで意識することで、より高速に
24 Gravitonは AI Agentシステムに 最適なCPU
25 でも、ARM64対応開発コストが 高くつくのでは?
26 今の世代はARM64に慣れてきている
27 Raspberry Pi
28 Livetoon, Inc. all rights reserved 普及するARM64と下がる開発難易度 ARM64コンピュータの普及 • 2012年
Raspberry Pi登場 • 2017年 Windows on ARM登場 • 2020年 Apple Silicon Mac登場 コーディングエージェントの普及 • CodexやClaude Code、Kiroなどの コーディングエージェントで ほぼ手放しに改善・修正ループを回せる • TorchSharpのARM64化は、殆どCodexだけで完結 10年前と比べてARM64対応の開発難易度はかなり下がっている
29 Livetoon, Inc. all rights reserved まとめ • ともだちAIアプリ「kaiwa」ではGraviton活用で高速なSTSを実現している •
Graviton2 + NVIDIA GPUなg5gでコスト2割減、性能変わらずを実現 • Graviton3, 4でEmbeddings・感情推定モデルを高速推論、低遅延・低コストなAI Agentシステムを実現 • ARM64化のハードルは下がってきている ご清聴ありがとうございました