📡 Streaming Avatars & Interactive AI — อวาตาร์สตรีมมิงและ AI เชิงโต้ตอบ

HeyGen Avatar Creation & AI Video — การสร้างอวาตาร์ HeyGen และวิดีโอ AI

Week 11 · Future with will and going to · Beginner → Intermediate

Streaming Avatars & Interactive AI

🎯 อวาตาร์สตรีมมิงและ AI เชิงโต้ตอบ
What is Streaming Avatars & Interactive AI?

🇹🇭 ภาษาไทย

Streaming Avatars คืออวาตาร์ที่ทำงานแบบเรียลไทม์ — ตอบสนองต่อผู้ใช้ทันที! ใช้เทคโนโลยี WebRTC และ SDK สำหรับการสร้างแอปพลิเคชันเชิงโต้ตอบ สามารถผสานรวมกับ LLM (เช่น ChatGPT) เพื่อให้อวาตาร์สนทนาได้ รองรับแชทเสียงแบบเรียลไทม์ สัปดาห์นี้เราจะเรียนไวยากรณ์ Future กับ will และ going to เช่น "The avatar will respond" และ "We are going to integrate an LLM"

🇬🇧 English

Streaming Avatars work in real-time — they respond to users instantly! Using WebRTC and SDK technology, you can build interactive applications. Integrate with LLMs (like ChatGPT) to make avatars that can have conversations, and support real-time voice chat. Grammar: Future with will and going to — "The avatar will respond" and "We are going to integrate an LLM."

🤩 Fun Facts — ข้อเท็จจริงน่ารู้

🔹 WebRTC enables video calls in your browser without any plugins — it powers Google Meet!
WebRTC ช่วยให้โทรวิดีโอในเบราว์เซอร์ได้โดยไม่ต้องมีปลั๊กอิน — เป็นเทคโนโลยีเบื้องหลัง Google Meet!

🔹 Streaming avatars can respond to voice input in under 2 seconds.
อวาตาร์สตรีมมิงตอบสนองต่อเสียงได้ในเวลาไม่ถึง 2 วินาที

🔹 An SDK is like a toolbox — it gives developers pre-built tools to create applications faster.
SDK เหมือนกล่องเครื่องมือ — ให้นักพัฒนามีเครื่องมือสำเร็จรูปเพื่อสร้างแอปได้เร็วขึ้น

🔹 The first AI chatbot, ELIZA, was created in 1966 — 60 years before ChatGPT!
แชทบอท AI ตัวแรก ELIZA ถูกสร้างในปี 1966 — 60 ปีก่อน ChatGPT!

🧪 Quick Check — ตรวจสอบด่วน

Test your understanding — ทดสอบความเข้าใจ

0/3

What is "streaming" in Thai?

"streaming" แปลว่าอะไร?

สตรีมมิง
เชิงโต้ตอบ / อินเทอร์แอคทีฟ
เรียลไทม์
WebRTC
"streaming" = สตรีมมิง

Which is the definition of "interactive"?

คำนิยามของ "interactive" คือข้อใด?

Responding to user input in real-time
Happening immediately, without delay
Sending data continuously in real-time
None of the above
"interactive" (เชิงโต้ตอบ / อินเทอร์แอคทีฟ): Responding to user input in real-time

Which grammar topic are we studying this week?

เราเรียนหัวข้อไวยากรณ์อะไรสัปดาห์นี้?

Future with will and going to
Future Perfect
Past Perfect Continuous
Subjunctive Mood
This week we study: Future with will and going to

📚 คำศัพท์สำคัญ
Key Vocabulary

streaming
สตรีมมิง
Sending data continuously in real-time
interactive
เชิงโต้ตอบ / อินเทอร์แอคทีฟ
Responding to user input in real-time
real-time
เรียลไทม์
Happening immediately, without delay
WebRTC
WebRTC
Web technology for real-time video/audio communication
SDK
SDK / เอสดีเค
Software Development Kit — tools for building apps
LLM
LLM / แอลแอลเอ็ม
Large Language Model — AI that understands text
voice chat
แชทเสียง
Talking to an AI avatar using your voice
session
เซสชัน
A period of active connection
latency
เวลาหน่วง / ความล่าช้า
The delay between action and response
event
เหตุการณ์ / อีเวนต์
Something that happens in a program (click, speak, etc.)
callback
คอลแบ็ก
A function that runs when an event happens
integration
การผสานรวม / อินทิเกรชัน
Connecting different systems together

🧪 Quick Check — ตรวจสอบด่วน

Test your understanding — ทดสอบความเข้าใจ

0/3

What does "SDK" mean?

"SDK" หมายถึงอะไร?

Software Development Kit — tools for building apps
Large Language Model — AI that understands text
Talking to an AI avatar using your voice
A period of active connection
"SDK" = SDK / เอสดีเค: Software Development Kit — tools for building apps

"LLM" in Thai is:

"LLM" ภาษาไทยคือ:

LLM / แอลแอลเอ็ม
WebRTC
เชิงโต้ตอบ / อินเทอร์แอคทีฟ
เวลาหน่วง / ความล่าช้า
"LLM" = LLM / แอลแอลเอ็ม

Which word means: "A period of active connection..."?

คำใดหมายถึง: "A period of active connection..."?

session
WebRTC
interactive
event
The answer is "session"

📖 ไวยากรณ์: Future with will and going to
Grammar Focus

📖 Grammar Focus: Future with will and going to

will + base verb (predictions/spontaneous)will + กริยารูปปกติ (คาดการณ์/ตัดสินใจทันที)
The avatar will respond to your question. (อวาตาร์จะตอบคำถามของคุณ)
I think streaming will become the future of AI video. (ฉันคิดว่าสตรีมมิงจะกลายเป็นอนาคตของวิดีโอ AI)
going to + base verb (plans/intentions)going to + กริยารูปปกติ (แผน/เจตนา)
We are going to integrate an LLM with the avatar. (เรากำลังจะผสาน LLM กับอวาตาร์)
She is going to build an interactive chatbot. (เธอกำลังจะสร้างแชทบอทเชิงโต้ตอบ)
will vs. going towill เทียบกับ going to
The session will end in 5 minutes. (เซสชันจะสิ้นสุดใน 5 นาที — คาดการณ์)
I am going to set up a demo tonight. (ฉันจะตั้งค่าเดโมคืนนี้ — แผนล่วงหน้า)
Negative: won't / not going toปฏิเสธ: won't / not going to
The latency won't be noticeable. (ความล่าช้าจะไม่สังเกตได้)
We are not going to use the old SDK. (เราจะไม่ใช้ SDK เก่า)

🚀 บทเรียนทีละขั้น
Step-by-Step Tutorial

1Set Up a Streaming Session — ตั้งค่าเซสชันสตรีมมิง

Use the Streaming API to start a new session. You will get a session_id and an ICE server URL.
ใช้ Streaming API เพื่อเริ่มเซสชันใหม่ คุณจะได้ session_id และ URL ของ ICE server

2Connect with WebRTC — เชื่อมต่อด้วย WebRTC

Initialize a WebRTC peer connection using the ICE server. The avatar will appear in your browser in real-time.
เริ่มต้นการเชื่อมต่อ WebRTC peer ด้วย ICE server อวาตาร์จะปรากฏในเบราว์เซอร์แบบเรียลไทม์

3Integrate an LLM for Conversation — ผสาน LLM สำหรับการสนทนา

Connect ChatGPT or another LLM to the avatar. The LLM generates responses; the avatar speaks them.
เชื่อมต่อ ChatGPT หรือ LLM อื่นกับอวาตาร์ LLM สร้างคำตอบ อวาตาร์พูดคำตอบนั้น

4Enable Voice Chat — เปิดใช้แชทเสียง

Activate the microphone input. Users can speak to the avatar, and it will respond using the LLM and TTS.
เปิดใช้อินพุตไมโครโฟน ผู้ใช้พูดกับอวาตาร์ได้ แล้วมันจะตอบโดยใช้ LLM และ TTS

🌎 การใช้งานจริง
Real World Application

💼 In Real Life — ในชีวิตจริง

Thai hospitals are piloting interactive streaming avatars as virtual receptionists that speak Thai, English, and Chinese to help international patients.

โรงพยาบาลไทยกำลังทดลองใช้อวาตาร์สตรีมมิงเชิงโต้ตอบเป็นพนักงานต้อนรับเสมือนที่พูดไทย อังกฤษ และจีน เพื่อช่วยผู้ป่วยต่างชาติ

🧪 Quick Check — ตรวจสอบด่วน

Test your understanding — ทดสอบความเข้าใจ

0/3

Which sentence correctly uses Future with will and going to?

ประโยคใดใช้ Future with will and going to ถูกต้อง?

The avatar will respond to your question. (อวาตาร์จะตอบคำถามของคุณ)
Me has do work.
They is going yesterday.
He have not do it.
The first option correctly uses Future with will and going to.

What is the Thai meaning of "event"?

"event" แปลว่าอะไร?

เหตุการณ์ / อีเวนต์
เรียลไทม์
แชทเสียง
WebRTC
event = เหตุการณ์ / อีเวนต์

In the real world, streaming avatars & interactive ai is important because:

ในโลกจริง อวาตาร์สตรีมมิงและ AI เชิงโต้ตอบ สำคัญเพราะ:

Thai hospitals are piloting interactive streaming avatars as
It is not used in Thailand.
Only for tourists.
Nobody needs it.
Thai hospitals are piloting interactive streaming avatars as

📝 การบ้าน
Homework

Task 1: Write 5 predictions about AI video streaming using "will."
เขียน 5 การคาดการณ์เกี่ยวกับ AI video streaming โดยใช้ "will"
Task 2: Write 5 plans for a streaming avatar project using "going to."
เขียน 5 แผนสำหรับโปรเจกต์อวาตาร์สตรีมมิงโดยใช้ "going to"
Task 3: Describe a use case for a streaming avatar in Thailand (8+ sentences).
อธิบายกรณีใช้งานอวาตาร์สตรีมมิงในประเทศไทย (8+ ประโยค)
Task 4: Write the 12 vocabulary words with example sentences using will or going to.
เขียนคำศัพท์ 12 คำพร้อมประโยคตัวอย่างโดยใช้ will หรือ going to

🎉 ยินดีด้วย! / Congratulations!

คุณจบบทเรียนสัปดาห์ที่ 11 แล้ว!

You have completed Week 11: Streaming Avatars & Interactive AI! Keep learning! ไปต่อกันเลย!