karashiiro / karashiiro/TextToTalk

Crash in TextToTalk during Windows TTS playback

Open
#264 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
75
Forks
36
Avg merge
3d 10h
Merged PRs (30d)
3

Description

TextToTalk can crash Dalamud on Windows 11 during text-to-speech playback. The crash is caused by an unhandled System.OperationCanceledException originating from the Windows System.Speech backend.

Environment
OS: Windows 11
Game: Final Fantasy XIV (Windows)
Dalamud version: 14.0.0.3
TextToTalk version: 1.35.2.0
TTS backend: System / Windows Speech

Description
During TTS playback, Dalamud may crash with a fatal error. The crash occurs in an asynchronous speech thread when a speech operation is cancelled while still running.

The following exception appears in the crash log:

System.OperationCanceledException: Async operation canceled.
at System.Speech.Internal.Synthesis.VoiceSynthesis.SpeakText(...)
at TextToTalk.Backends.System.SystemSoundQueue.ASyncSpeak(...)

[dalamud_appcrash_20260102_165216_655_17852.log](https://github.com/user-attachments/files/24409852/dalamud_appcrash_20260102_165216_655_17852.log)

Dalamud identifies TextToTalk as the plugin that caused the crash.

Steps to reproduce
Enable TextToTalk
Enable TTS for dialogue or NPC text
Advance or skip dialogue quickly
Dalamud crashes after some time

Expected behavior
Cancelling or replacing TTS playback should not crash Dalamud.

Actual behavior
Dalamud crashes due to an unhandled exception in the Windows TTS thread.

Additional notes
Rapid dialogue skipping (for example via TextAdvance or similar behavior) seems to make the issue occur more frequently, but this may simply expose an existing race condition.

Let me know if you need more logs or testing, I’m happy to help. :)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.