<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>speech-synthesis on S Anand</title>
    <link>https://www.s-anand.net/blog/tag/speech-synthesis/</link>
    <description>Recent content in speech-synthesis on S Anand</description>
    <generator>Hugo -- 0.164.0</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 21 Jan 2024 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.s-anand.net/blog/tag/speech-synthesis/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Things I Learned - 21 Jan 2024</title>
      <link>https://www.s-anand.net/blog/things-i-learned-21-jan-2024/</link>
      <pubDate>Sun, 21 Jan 2024 00:00:00 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/things-i-learned-21-jan-2024/</guid>
      <description>&lt;p&gt;This week, I learned:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;When comparing Mistral with 4b quantization vs unquantized:
&lt;ul&gt;
&lt;li&gt;2 responses were significantly shorter and fairly different&lt;/li&gt;
&lt;li&gt;1 was identical&lt;/li&gt;
&lt;li&gt;1 was almost identical but shorter by a few words&lt;/li&gt;
&lt;li&gt;1 was slightly longer and fairly different&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;#PREDICTION As humans have more conversations with LLMs, they will replace video watching and interactive gaming with conversation based role play. New game genres will evolve&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://www.lilacml.com/&#34;&gt;Lilac&lt;/a&gt; is an LLM-based data curation tool. Use it to search by concept (e.g. PII, duplicates, etc.) and then drop/update the results.&lt;/li&gt;
&lt;li&gt;Lungs have a Hausdorff dimension of 2.97 &amp;ndash; giving them one of the highest surface area to volume ratio. Brains are 2.8. Sierpinski Pyramid is exactly 2 &amp;ndash; which is weird. To solid-paint twice the size, you need 4 times as much paint.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://youtu.be/rXUuStdMeoE&#34;&gt;How I write podcast. Tim Ferriss&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;High bars are constraints. I set the strongest constraints against the scarcest resources. Like reputation&lt;/li&gt;
&lt;li&gt;Being a category of one is more defensible than a competitive advantage&lt;/li&gt;
&lt;li&gt;Content always beats presentation. When in doubt, push for more interesting content&lt;/li&gt;
&lt;li&gt;Regular publishing improves thinking&lt;/li&gt;
&lt;li&gt;To build a habit, do less than you think you can do. That makes it easier to build momentum on the habit and sustain during crunch times&lt;/li&gt;
&lt;li&gt;There is a lot of mediocrity in the world. If you&amp;rsquo;re doing something (in a winner take all ecosystem), be the best.&lt;/li&gt;
&lt;li&gt;Top lawyers are exceptional proofreaders. They are able to see what is unclair, and what is redundant, and what has loop holes very quickly.&lt;/li&gt;
&lt;li&gt;Forcing yourself to cut down from a thousand words to 200 to a paragraph to a sentence takes you through a phase transition where you discover something unexpected&lt;/li&gt;
&lt;li&gt;The more outrageous the question, the more likely it is to be useful in generating a new perspective&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://elevenlabs.io/speech-synthesis&#34;&gt;Eleven-labs speech synthesis&lt;/a&gt; with voice cloning is at the uncanny valley. With two 5-minute samples, my voice sounds a fair bit like my voice but is very clearly not my voice. I find stability ~ 30%, similarity ~ 80% and style ~50% gives a reasonable outcome. But the default voices (e.g. Joseph, George, Charlie) are excellent.&lt;/li&gt;
&lt;li&gt;Practical AI podcast: AI predictions for&lt;/li&gt;
&lt;li&gt;AI by API is the norm today and will grow
&lt;ul&gt;
&lt;li&gt;Just having AI is no longer a differentiator&lt;/li&gt;
&lt;li&gt;AI is part of life, not just work&lt;/li&gt;
&lt;li&gt;#TODO Explore quickdrop from Stability for Maruti&lt;/li&gt;
&lt;li&gt;#TODO Explore Codium VS Code plugin and Continue.dev&lt;/li&gt;
&lt;li&gt;Hybrid systems that combine stats, ML, DL and AI models will grow&lt;/li&gt;
&lt;li&gt;AGI and AutoGPT resurgence&lt;/li&gt;
&lt;li&gt;RAG will continue to be a focus&lt;/li&gt;
&lt;li&gt;GPT4 will be beaten by open source models. Special purpose models beat it already&lt;/li&gt;
&lt;li&gt;Self hosted and cloud hosted models will grow for security&lt;/li&gt;
&lt;li&gt;Small language models will grow&lt;/li&gt;
&lt;li&gt;Productivity will be enhanced rather than replaced&lt;/li&gt;
&lt;li&gt;Multi modal models will grow&lt;/li&gt;
&lt;li&gt;Cost efficiency will grow in focus&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://help.openai.com/en/articles/8770868-gpt-builder&#34;&gt;GPT Builder help&lt;/a&gt; explains how the GPT Builder updates GPTs - including some very interesting prompts&lt;/li&gt;
&lt;/ul&gt;
</description>
    </item>
    <item>
      <title>Experiments in sound</title>
      <link>https://www.s-anand.net/blog/experiments-in-sound/</link>
      <pubDate>Tue, 12 Sep 2006 12:00:00 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/experiments-in-sound/</guid>
      <description>&lt;p&gt;Wikipedia says the human &lt;a href=&#34;http://en.wikipedia.org/wiki/Voice_frequency&#34;&gt;voice frequency&lt;/a&gt; for speech is between 85 to 155 Hz for men, and 165 to 255 Hz for women. That set me thinking.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;What is the limit to our hearing?&lt;/li&gt;
&lt;li&gt;How do sounds differ?&lt;/li&gt;
&lt;li&gt;How can we synthesise speech?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;What are the limits to our hearing?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Kids can hear frequencies from 20 Hz to 20 kHz, while adults hear only up to 12-14 kHz (&lt;a href=&#34;http://hypertextbook.com/facts/2003/ChrisDAmbrose.shtml&#34;&gt;Frequency Range of Human Hearing&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;To check the lower frequency limit, I created an MP3 with &lt;a href=&#34;https://files.s-anand.net/blog/a/lower.mp3&#34;&gt;sounds from 1 Hz to 100 Hz&lt;/a&gt; at 1 second intervals. Just play the sound, and see when you &lt;strong&gt;start&lt;/strong&gt; hearing something. (Of course, whether you can hear something also depends on the volume of your speaker, the ambient noise, etc.) I could hear nothing for the first 40 seconds: so I can&amp;rsquo;t hear frequencies lower than 40 Hz.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;PS: Don&amp;rsquo;t be worried if you don&amp;rsquo;t hear anything for a while. You&amp;rsquo;re not supposed to!&lt;/strong&gt; Keep the volume at full level, though.&lt;/p&gt;
&lt;p&gt;To check the upper frequency limit, I created this MP3 with &lt;a href=&#34;https://files.s-anand.net/blog/a/upper.mp3&#34;&gt;sounds from 1 kHz to 20 kHz&lt;/a&gt; in 1 second intervals. Just play the sound, and see when you &lt;strong&gt;stop&lt;/strong&gt; hearing anything. I couldn&amp;rsquo;t hear anything beyond 14 seconds: so I can&amp;rsquo;t hear frequencies beyond 14 kHz.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How do sounds differ?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I took this &lt;a href=&#34;https://files.s-anand.net/blog/a/vowels.mp3&#34;&gt;audio file of someone reciting vowels&lt;/a&gt; and plotted a spectrogram (below). A &lt;a href=&#34;http://www.google.com/search?q=define%3Aspectrogram&#34;&gt;spectrogram&lt;/a&gt; plots time on the X axis and frequency on the Y-axis.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.s-anand.net/blog/assets/flickr-vowels-spectrogram_241586415_o-jpg.webp&#34;&gt;&lt;img alt=&#34;Vowels spectrogram&#34; loading=&#34;lazy&#34; src=&#34;https://www.s-anand.net/blog/assets/flickr-vowels-spectrogram_241586415_o-jpg.webp&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Some observations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;All the vowels have evenly spaced bars. (In this case, they&amp;rsquo;re all multiples of something around 120 Hz.)&lt;/li&gt;
&lt;li&gt;&amp;lsquo;u&amp;rsquo; has the lowest frequency mix. &amp;lsquo;a&amp;rsquo; spans from low to high. &amp;lsquo;i&amp;rsquo; has a bit of low and a bit of high, nothing in the middle. &amp;lsquo;ai&amp;rsquo; and &amp;lsquo;au&amp;rsquo; look like &amp;lsquo;a&amp;rsquo; followed by &amp;lsquo;i&amp;rsquo; and &amp;lsquo;u&amp;rsquo; respectively.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;How can we synthesise speech?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;rsquo;t know. There are lots of speech synthesizers. They sound robotic. I&amp;rsquo;m trying to see if knowing what sounds look like improves things. I&amp;rsquo;ll let you know if I do well.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;comments&#34;&gt;Comments&lt;/h2&gt;
&lt;!-- wp-comments-start --&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Dhar&lt;/strong&gt; &lt;em&gt;13 Sep 2006 5:09 am&lt;/em&gt;:
How did you go about synthesizing the MP3s with increasing frequencies? Did you use some software for that? Similarly what software did you use to plot the spectrogram?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;S Anand&lt;/strong&gt; &lt;em&gt;13 Sep 2006 6:10 am&lt;/em&gt;:
I wrote a &lt;a href=&#34;http://www.s-anand.net/a/sound&#34;&gt;perl script to generate the frequencies&lt;/a&gt;, and &lt;a href=&#34;http://www.hitsquad.com/smm/programs/SPECTROGRAM/&#34;&gt;Spectrogram v.0.8&lt;/a&gt; to create the spectrograms.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sumit Dhar&lt;/strong&gt; &lt;em&gt;16 Sep 2006 9:23 am&lt;/em&gt;:
Dude, just downloaded the files. Is the sound stereophonic or monoaural? If it is mono, do you think creating an MP3 with stereophonic sound will make a difference? Cheers, D.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sumit Dhar&lt;/strong&gt; &lt;em&gt;16 Sep 2006 9:25 am&lt;/em&gt;:
Loved the experiment. Lower: 42 Hz, Higher: 15 KHz&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;S Anand&lt;/strong&gt; &lt;em&gt;16 Sep 2006 9:38 am&lt;/em&gt;:
It&amp;rsquo;s mono. I doubt if stereo would make a difference. I&amp;rsquo;d be playing the same frequency on both speakers, which is what a mono MP3 does anyway.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Dhar&lt;/strong&gt; &lt;em&gt;17 Sep 2006 2:05 am&lt;/em&gt;:
The reason I asked about whether the sound is Mono or Stereo is because of my experience during eye tests. Some letters that were not visible when viewed with just &lt;strong&gt;one&lt;/strong&gt; eye, were clearly readable when using both eyes. Was wondering if the same &lt;strong&gt;may&lt;/strong&gt; be applicable in this case?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;S Anand&lt;/strong&gt; &lt;em&gt;17 Sep 2006 7:36 am&lt;/em&gt;:
Ah, I see what you mean. Since both speakers would be playing the sound, hopefully this should not be a factor.&lt;/li&gt;
&lt;/ul&gt;
&lt;!-- wp-comments-end --&gt;
</description>
    </item>
    <item>
      <title>A Glove</title>
      <link>https://www.s-anand.net/blog/a-glove/</link>
      <pubDate>Thu, 24 Jan 2002 12:00:00 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/a-glove/</guid>
      <description>&lt;p&gt;I wouldn&amp;rsquo;t mind a &lt;a href=&#34;http://news.bbc.co.uk/hi/english/sci/tech/newsid_1768000/1768818.stm&#34;&gt;glove&lt;/a&gt;.&lt;/p&gt;
</description>
    </item>
  </channel>
</rss>
