: Use tools like Valve Resource Format (VRF) to open pak01_dir.vpk and export text-based sound event files or subtitle files.
If your goal is to "produce text" that appears on the player's screen or within the environment: half-life-alyx-goldberg
For immediate text-based interaction or testing, you can use the game's developer console (enabled with the -dev launch option): How to make hint text, Half life alyx mapping tutorial : Use tools like Valve Resource Format (VRF)
If you are looking to work with text, scripts, or mods related to this, 1. Game Scripting (VScript & Lua) or mods related to this
: Scripts are typically found in the scripts/vscripts directory.