<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>Dusan Haustein</title>
    <subtitle>Personal blog and website, on which I ramble at lenght about things both mundane and neat.</subtitle>
    <link rel="self" type="application/atom+xml" href="https://dhaustein.github.io/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://dhaustein.github.io"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2025-11-25T00:00:00+00:00</updated>
    <id>https://dhaustein.github.io/atom.xml</id>
    <entry xml:lang="en">
        <title>How to Make Creative Speakers Not Suck</title>
        <published>2025-11-25T00:00:00+00:00</published>
        <updated>2025-11-25T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              Dusan Haustein
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://dhaustein.github.io/blog/make-creative-speakers-not-suck/"/>
        <id>https://dhaustein.github.io/blog/make-creative-speakers-not-suck/</id>
        
        <content type="html" xml:base="https://dhaustein.github.io/blog/make-creative-speakers-not-suck/">&lt;h3 id=&quot;tldr&quot;&gt;TLDR&lt;&#x2F;h3&gt;
&lt;p&gt;I made a bat script that periodically sends a very high frequency sound to the speakers to prevent them from completely shutting off.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;the-problem&quot;&gt;The Problem&lt;&#x2F;h3&gt;
&lt;p&gt;Many years ago, when my wife’s old speakers finally went to silicon heaven, I got her brand new pair of my favourite speakers, the Creative T20.
I own a similar pair of a much older model. I have been very happy with them, and they still go strong for almost two decades now.
And being a happy owner of them, I recommended my wife gets the same albeit newer model as well.&lt;&#x2F;p&gt;
&lt;p&gt;Unfortunately for her, I did not do a more thorough research on the new version. You see, there is something called the &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;eur-lex.europa.eu&#x2F;eli&#x2F;dir&#x2F;2009&#x2F;125&#x2F;oj&#x2F;eng&quot;&gt;Energy-related Products Directive.&lt;&#x2F;a&gt; In short, this directive encourages (forces?) manufacturers that are coming to the European market to offer products that are more energy efficient. The implementation of this directive is left to the manufacturer.&lt;&#x2F;p&gt;
&lt;p&gt;Creative in their effort to satisfy the regulation, added a Standby mode™ to their speakers. The speakers will essentially &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;support.creative.com&#x2F;kb&#x2F;ShowArticle.aspx?sid=12873&quot;&gt;shut down if they detect no input signal.&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Again, this is very nice, the speakers will consume little to no energy when you don’t play any sound. The problem, however, is that they take a second or two to wake up when they do have to play sound.&lt;&#x2F;p&gt;
&lt;p&gt;Imagine the following: You turn on your speakers, browse the web some, then you want to watch a Youtube video. The video starts, and you hear nothing. And then suddenly, the sounds come back. But this is not a bug, this is a feature. The speakers simply went into Standby mode™ while you were doomscrolling on Facebook. But them waking up from their slumber took a few moments of the video you wanted to watch, so now you have to restart it.&lt;&#x2F;p&gt;
&lt;p&gt;I admit this is a minor inconvenience, but annoying still. I had it on my plate almost every day!&lt;&#x2F;p&gt;
&lt;h3 id=&quot;the-solution&quot;&gt;The Solution&lt;&#x2F;h3&gt;
&lt;p&gt;I wrote a short PowerShell script that constantly plays a sound of very high frequency. This is imperceptible to humans and it provides a constant signal to the speaker so that they won’t go into Standby mode™.&lt;&#x2F;p&gt;
&lt;p&gt;Yes I know, this totally goes against any notion of trying to save energy. But the effect on the overall electricity consumption is tiny. The speakers are not turned on for most of the day anyway. The positive effect on the harmony of this household, however, has been off the charts.&lt;&#x2F;p&gt;
&lt;p&gt;Here is the code:&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #F6F6F4; background-color: #282A36;&quot;&gt;&lt;code data-lang=&quot;powershell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #7B7F8B;&quot;&gt;# script.ps1&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;$PlayWav&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F286C4;&quot;&gt;=&lt;&#x2F;span&gt;&lt;span style=&quot;color: #97E1F1;&quot;&gt;New-Object&lt;&#x2F;span&gt;&lt;span&gt; System.Media.SoundPlayer&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #F286C4;&quot;&gt;While&lt;&#x2F;span&gt;&lt;span&gt; (&lt;&#x2F;span&gt;&lt;span style=&quot;color: #BF9EEE;&quot;&gt;$true&lt;&#x2F;span&gt;&lt;span&gt;) {&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    $PlayWav.SoundLocation&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F286C4;&quot;&gt;=&lt;&#x2F;span&gt;&lt;span style=&quot;color: #DEE492;&quot;&gt;&amp;quot;&lt;&#x2F;span&gt;&lt;span style=&quot;color: #E7EE98;&quot;&gt;C:\example\path\tone.wav&lt;&#x2F;span&gt;&lt;span style=&quot;color: #DEE492;&quot;&gt;&amp;quot;&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    $PlayWav.playsync()&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #97E1F1;&quot;&gt;    Start-Sleep&lt;&#x2F;span&gt;&lt;span style=&quot;color: #F286C4;&quot;&gt; -&lt;&#x2F;span&gt;&lt;span&gt;Seconds &lt;&#x2F;span&gt;&lt;span style=&quot;color: #BF9EEE;&quot;&gt;1&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;This is very crude but it does the job. After you login to the desktop, the script will continuously play the audio file every second.
Which in turn will prevent the speakers from going into hibernation. I set it to 1 second and called it a day, but presumably a longer time interval should work too. It also depends on how long the audio file will be.&lt;&#x2F;p&gt;
&lt;blockquote class=&quot;markdown-alert-note&quot;&gt;
&lt;p&gt;You likely notice this is written in PowerShell since it had to work on my wife’s Windows. On Linux, you can use something like &lt;code&gt;ffplay&lt;&#x2F;code&gt; to generate an audio signal, or &lt;code&gt;paplay&lt;&#x2F;code&gt; to play your audio file.&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;Add the script to the Task scheduler and set it to trigger after login. The command the task runs should look something like this:&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #F6F6F4; background-color: #282A36;&quot;&gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;powershell -ExecutionPolicy Bypass -File C:\example\path\script.ps1&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;For the &lt;code&gt;tone.wav&lt;&#x2F;code&gt; audio file, you have options. You can download something from the Internet or you can generate the tone yourself. I used Audacity but anything similar will do. The important part is that you create a very high frequency sound with the amplitude as low as you can set it. That is, make the volume as low as possible.&lt;&#x2F;p&gt;
&lt;p&gt;The sound will be imperceptible, but there is no point in blasting it at max. Presumably the speakers will not actually vibrate&#x2F;do anything at these high frequencies, but I haven’t done any actual measurements.&lt;&#x2F;p&gt;
&lt;p&gt;If it’s any useful, here’s what the tone I used looks like for reference:&lt;&#x2F;p&gt;
&lt;img class=&quot;transparent no-hover&quot;src=&quot;freq_analysis.png&quot;&#x2F;&gt;
&lt;p&gt;And that’s it! If you are more adventurous, &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;imgur.com&#x2F;gallery&#x2F;creative-gigaworks-t20-rev-2-auto-off-removal-pwqiQHX&quot;&gt;there are hardware modifications&lt;&#x2F;a&gt; that do the same thing, but those are obviously more invasive.&lt;&#x2F;p&gt;
</content>
        
    </entry>
</feed>
