<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Valvoice </title>
    <description>The latest articles on DEV Community by Valvoice  (@valvoice).</description>
    <link>https://dev.to/valvoice</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4272734%2F4e640517-b26c-4fc0-86f6-c78063f2aca2.png</url>
      <title>DEV Community: Valvoice </title>
      <link>https://dev.to/valvoice</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/valvoice"/>
    <language>en</language>
    <item>
      <title>I Built a Tool That Converts Valorant Text Chat into Speech Using OCR and AI 🎮</title>
      <dc:creator>Valvoice </dc:creator>
      <pubDate>Sun, 29 Nov 2026 17:45:24 +0000</pubDate>
      <link>https://dev.to/valvoice/i-built-a-tool-that-converts-valorant-text-chat-into-speech-using-ocr-and-ai-3nf5</link>
      <guid>https://dev.to/valvoice/i-built-a-tool-that-converts-valorant-text-chat-into-speech-using-ocr-and-ai-3nf5</guid>
      <description>&lt;p&gt;Hey everyone! 👋&lt;/p&gt;

&lt;p&gt;So, I've been working on a project called &lt;strong&gt;ValVoice&lt;/strong&gt; for a while now, and I thought I'd finally share what I've been building and how it works behind the scenes.&lt;/p&gt;

&lt;p&gt;If you've played Valorant, you probably know how important communication is. But not everyone uses voice chat. Some players prefer typing, and sometimes you end up missing an important message because you're too busy focusing on the game.&lt;/p&gt;

&lt;p&gt;That got me thinking...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if I could make Valorant's text chat speak out loud?&lt;/strong&gt; 🤔&lt;/p&gt;

&lt;p&gt;Instead of constantly checking the chat box, what if an application could read those messages and convert them into voice automatically?&lt;/p&gt;

&lt;p&gt;And that's basically where the idea for ValVoice started.&lt;/p&gt;

&lt;h2&gt;
  
  
  🎯 So, What Exactly Is ValVoice?
&lt;/h2&gt;

&lt;p&gt;ValVoice is a Windows desktop application that converts Valorant's in-game text messages into spoken audio.&lt;/p&gt;

&lt;p&gt;It works with Party, Team, and All chat, using OCR (Optical Character Recognition) to detect messages on the screen and text-to-speech technology to turn them into audio.&lt;/p&gt;

&lt;p&gt;The interesting part is that it doesn't need to read the game's internal memory to recognize chat messages. It works by looking at what's visible on the screen.&lt;/p&gt;

&lt;p&gt;I also wanted to make it a little more fun, so I added support for &lt;strong&gt;29 Valorant agent-inspired AI voices&lt;/strong&gt;, along with standard Windows voices.&lt;/p&gt;

&lt;p&gt;Imagine your teammates typing something in chat and actually hearing it spoken instead of having to read it during a match. 😄&lt;/p&gt;

&lt;h2&gt;
  
  
  💡 How Does It Actually Work?
&lt;/h2&gt;

&lt;p&gt;When I started planning the project, I realized it wasn't going to be as simple as just taking some text and passing it to a text-to-speech engine.&lt;/p&gt;

&lt;p&gt;There were a few different problems to solve.&lt;/p&gt;

&lt;p&gt;First, I needed to capture the chat area. Then I had to recognize the text, process it, generate speech, and finally play the audio through the correct device.&lt;/p&gt;

&lt;p&gt;So I ended up using a combination of Java, C#, and Python.&lt;/p&gt;

&lt;p&gt;Here's the basic flow:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Valorant Chat → Screen Capture → OCR → Message Processing → Text-to-Speech → Audio Output&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Sounds straightforward when written like that, but connecting everything together was definitely an interesting part of the project. 😅&lt;/p&gt;

&lt;h2&gt;
  
  
  👀 Step 1: Reading the Chat Without Accessing Game Memory
&lt;/h2&gt;

&lt;p&gt;The first challenge was figuring out how to get the chat messages.&lt;/p&gt;

&lt;p&gt;Instead of interacting with Valorant's internal systems, I decided to use screen-based OCR.&lt;/p&gt;

&lt;p&gt;For screen capture, ValVoice uses &lt;strong&gt;Windows Graphics Capture&lt;/strong&gt;, and for text recognition, it uses the &lt;strong&gt;Windows OCR API&lt;/strong&gt; through a C#/.NET component.&lt;/p&gt;

&lt;p&gt;The idea is simple:&lt;/p&gt;

&lt;p&gt;Capture the relevant part of the screen, identify the text, and pass it to the application.&lt;/p&gt;

&lt;p&gt;Of course, OCR comes with its own challenges. Game interfaces aren't always the easiest environments for text recognition, especially when the screen content keeps changing.&lt;/p&gt;

&lt;p&gt;This part made me appreciate how much work goes into something that looks simple from the user's perspective.&lt;/p&gt;

&lt;h2&gt;
  
  
  ☕ Step 2: Bringing Everything Together with Java
&lt;/h2&gt;

&lt;p&gt;For the main desktop application, I went with &lt;strong&gt;Java 23 and JavaFX&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Java handles the main application logic and provides the desktop interface where users can interact with ValVoice.&lt;/p&gt;

&lt;p&gt;One thing I found interesting about this project was working across different programming languages.&lt;/p&gt;

&lt;p&gt;Normally, when building smaller projects, I tend to work within one main technology stack. But here, different components had different responsibilities.&lt;/p&gt;

&lt;p&gt;C# handles the OCR side, Java manages the desktop application, and Python handles AI-powered speech generation.&lt;/p&gt;

&lt;p&gt;Getting these components to work together became a major part of the development process.&lt;/p&gt;

&lt;h2&gt;
  
  
  🗣️ Step 3: Making the Text Speak Using AI
&lt;/h2&gt;

&lt;p&gt;Now comes one of my favorite parts of the project.&lt;/p&gt;

&lt;p&gt;Once the text is recognized, it needs to be converted into speech.&lt;/p&gt;

&lt;p&gt;For this, I integrated &lt;strong&gt;Coqui XTTS v2&lt;/strong&gt;, along with Python, PyTorch, and FastAPI.&lt;/p&gt;

&lt;p&gt;ValVoice also supports Windows SAPI voices, so users have another option besides AI-generated voices.&lt;/p&gt;

&lt;p&gt;I wanted the experience to feel a bit more connected to Valorant itself, which is why I worked on adding agent-inspired voice options.&lt;/p&gt;

&lt;p&gt;The project currently includes 29 such voices.&lt;/p&gt;

&lt;p&gt;It's pretty cool to see how technologies like OCR and text-to-speech can come together to create something useful for gaming. 🎧&lt;/p&gt;

&lt;h2&gt;
  
  
  🔊 Step 4: Getting the Audio Where It Needs to Go
&lt;/h2&gt;

&lt;p&gt;Another part of the project was audio routing.&lt;/p&gt;

&lt;p&gt;Generating the speech is one thing, but getting it to the right output is another.&lt;/p&gt;

&lt;p&gt;ValVoice supports &lt;strong&gt;VB-CABLE&lt;/strong&gt;, a virtual audio device that can be used to route generated audio.&lt;/p&gt;

&lt;p&gt;This gave me a chance to explore an area I hadn't worked with as much before: audio devices and virtual audio routing on Windows.&lt;/p&gt;

&lt;h2&gt;
  
  
  🛠️ The Tech Stack
&lt;/h2&gt;

&lt;p&gt;For anyone curious about the technologies behind ValVoice, here's what I've used:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Java 23 + JavaFX&lt;/strong&gt; — Desktop application and interface&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;C# + .NET 8&lt;/strong&gt; — OCR component&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Windows Graphics Capture&lt;/strong&gt; — Capturing screen content&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Windows OCR API&lt;/strong&gt; — Recognizing chat messages&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Python + FastAPI&lt;/strong&gt; — Speech generation service&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PyTorch + Coqui XTTS v2&lt;/strong&gt; — AI-powered text-to-speech&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Windows SAPI&lt;/strong&gt; — Additional voice options&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;VB-CABLE&lt;/strong&gt; — Virtual audio routing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One of the things I enjoy about building projects like this is getting to explore technologies I wouldn't normally use together.&lt;/p&gt;

&lt;h2&gt;
  
  
  😅 Things I Learned While Building ValVoice
&lt;/h2&gt;

&lt;p&gt;I think one of the biggest lessons from this project is that &lt;strong&gt;getting different technologies to work together can be harder than building the individual components&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You might have an OCR component that recognizes text and a speech engine that generates audio, but combining them into one usable desktop application introduces a whole different set of challenges.&lt;/p&gt;

&lt;p&gt;A few things this project has helped me learn:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How screen capture and OCR can be used in real-world applications.&lt;/li&gt;
&lt;li&gt;How to integrate Java, C#, and Python into a single project.&lt;/li&gt;
&lt;li&gt;How AI-powered text-to-speech systems work.&lt;/li&gt;
&lt;li&gt;How virtual audio routing works on Windows.&lt;/li&gt;
&lt;li&gt;Why application design and user experience matter just as much as the underlying technology.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And probably the biggest one: something that sounds simple as an idea can become a surprisingly interesting engineering problem once you actually start building it. 😂&lt;/p&gt;

&lt;h2&gt;
  
  
  🚀 What's Next for ValVoice?
&lt;/h2&gt;

&lt;p&gt;ValVoice is still something I'm actively working on.&lt;/p&gt;

&lt;p&gt;There are plenty of areas I want to keep improving, especially the overall user experience, speech generation, and how smoothly everything works together.&lt;/p&gt;

&lt;p&gt;I'm also learning a lot about the non-coding side of building a product, like documentation, maintaining a website, and getting feedback from actual users.&lt;/p&gt;

&lt;p&gt;It's been a really interesting journey so far, and I'm excited to see where the project goes.&lt;/p&gt;

&lt;p&gt;If you're curious about ValVoice, I've put together a website where you can learn more about it:&lt;/p&gt;

&lt;p&gt;🌐 &lt;strong&gt;&lt;a href="https://valvoice.app/" rel="noopener noreferrer"&gt;https://valvoice.app/&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  💬 I'd Love to Hear Your Thoughts!
&lt;/h2&gt;

&lt;p&gt;This is one of the first times I'm sharing the technical side of ValVoice with the developer community.&lt;/p&gt;

&lt;p&gt;If you've worked with OCR, text-to-speech, JavaFX, or projects involving multiple programming languages, I'd love to hear about your experience!&lt;/p&gt;

&lt;p&gt;Also, if you were building something like this, what would you approach differently?&lt;/p&gt;

&lt;p&gt;Thanks for reading! 🙌&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Note: ValVoice is an independent project and is not affiliated with or endorsed by Riot Games.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>gamedev</category>
      <category>java</category>
    </item>
  </channel>
</rss>
