dify - 💡(How to fix) Fix Collection of TTS, Auto-play, Windows, Docker, Delayed Start Issues

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

Because they make up everything!

Code Example

Sure! Here's a joke for you:

Why don't scientists trust atoms?

Because they make up everything!

---

# TTS auto-play tuning (added manually — not in default .env)
TTS_AUTO_PLAY_TIMEOUT=2
TTS_AUTO_PLAY_YIELD_CPU_TIME=0.005

---

# TTS auto-play tuning (added manually — not in default .env)
TTS_AUTO_PLAY_TIMEOUT=5
TTS_AUTO_PLAY_YIELD_CPU_TIME=0.05

---

docker exec -it --user root docker-api-1 bash -c "apt-get update && apt-get install -y ffmpeg"
docker exec -it --user root docker-worker-1 bash -c "apt-get update && apt-get install -y ffmpeg"
docker compose restart api worker

---

docker exec -it docker-api-1 ffmpeg -version
docker exec -it docker-worker-1 ffmpeg -version

---

docker exec docker-api-1 env | findstr TTS
RAW_BUFFERClick to expand / collapse

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.14.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

#13759 13759 #33918 13759 #34542 34542 #34542 34542 #34542 34542 #34542 34542

Load up a model in the agent "Debug & Preview" that has the TTS feature, ensure auto-play is turned on, and prompt the agent to tell you a joke. You only hear the last sentence from an example like this:

Sure! Here's a joke for you:

Why don't scientists trust atoms?

Because they make up everything!

✔️ Expected Behavior

No delay, it should read the entire message.

❌ Actual Behavior

Only reads the last sentence.

I have referenced all of the previous issues, there seems to be a lot of users experiencing the same problem, and no clear solution. I want to revive this issue here.

I have tried appending to the docker/.env file:

# TTS auto-play tuning (added manually — not in default .env)
TTS_AUTO_PLAY_TIMEOUT=2
TTS_AUTO_PLAY_YIELD_CPU_TIME=0.005

...and:

# TTS auto-play tuning (added manually — not in default .env)
TTS_AUTO_PLAY_TIMEOUT=5
TTS_AUTO_PLAY_YIELD_CPU_TIME=0.05

...both with and without ffmpeg installed using:

docker exec -it --user root docker-api-1 bash -c "apt-get update && apt-get install -y ffmpeg"
docker exec -it --user root docker-worker-1 bash -c "apt-get update && apt-get install -y ffmpeg"
docker compose restart api worker

...verified it installed with:

docker exec -it docker-api-1 ffmpeg -version
docker exec -it docker-worker-1 ffmpeg -version

...and validated the .env values took change with:

docker exec docker-api-1 env | findstr TTS

...and many, many docker compose down/up, issue persists.

Best I've gathered is that this has something to do with caching/buffering before it actually starts playing? Would be nice to get this fixed in an upcoming release.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

dify - 💡(How to fix) Fix Collection of TTS, Auto-play, Windows, Docker, Delayed Start Issues