<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How could I make text to speech using the speaker?]]></title><description><![CDATA[<p dir="auto">I have M5stickC with speaker hat. I'm wondering if it's possible to perform text to speech routines in order to allow the speaker to speak a string.</p>
]]></description><link>https://community.m5stack.com/topic/1649/how-could-i-make-text-to-speech-using-the-speaker</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Mar 2026 01:29:23 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1649.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 25 Jan 2020 14:16:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How could I make text to speech using the speaker? on Wed, 17 Feb 2021 23:41:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/2314">@chriswr</a> said in <a href="/post/7244">How could I make text to speech using the speaker?</a>:</p>
<blockquote>
<p dir="auto">ESP8266SAM *sam = new ESP8266SAM;<br />
sam-&gt;Say(out, "Can you hear me now?");<br />
delay(500);<br />
sam-&gt;Say(out, "I can't hear you!");<br />
delete sam;</p>
</blockquote>
<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/2314">@ChrisWR</a> will this work with ATOM Echo Smart Speaker Development Kit?  <a href="https://m5stack.com/collections/m5-atom" target="_blank" rel="noopener noreferrer nofollow ugc">https://m5stack.com/collections/m5-atom</a></p>
]]></description><link>https://community.m5stack.com/post/12534</link><guid isPermaLink="true">https://community.m5stack.com/post/12534</guid><dc:creator><![CDATA[makadodo]]></dc:creator><pubDate>Wed, 17 Feb 2021 23:41:57 GMT</pubDate></item><item><title><![CDATA[Reply to How could I make text to speech using the speaker? on Sun, 09 Aug 2020 23:22:41 GMT]]></title><description><![CDATA[<p dir="auto">I see some examples, like here :<br />
<a href="https://www.xtronical.com/i2sinternetradio/" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.xtronical.com/i2sinternetradio/</a><br />
There is a line:<br />
//    audio.connecttospeech("Wenn die Hunde schlafen, kann der Wolf gut Schafe stehlen.", "de");<br />
It seems to be another way, but you can choose the language.<br />
Could this work on the M5stickC with the SPK HAT?<br />
What do I put on DIN connection,  Bit clock, and Left Right Clock?</p>
]]></description><link>https://community.m5stack.com/post/9612</link><guid isPermaLink="true">https://community.m5stack.com/post/9612</guid><dc:creator><![CDATA[xis]]></dc:creator><pubDate>Sun, 09 Aug 2020 23:22:41 GMT</pubDate></item><item><title><![CDATA[Reply to How could I make text to speech using the speaker? on Sun, 09 Aug 2020 23:09:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/2314">@chriswr</a> It works on the M5stickC :)</p>
<p dir="auto">Can you explain the line " out = new AudioOutputI2S(0, 1, 32);" ?<br />
What do the numbers 0, 1, 32 mean?<br />
Thank you.</p>
]]></description><link>https://community.m5stack.com/post/9611</link><guid isPermaLink="true">https://community.m5stack.com/post/9611</guid><dc:creator><![CDATA[xis]]></dc:creator><pubDate>Sun, 09 Aug 2020 23:09:40 GMT</pubDate></item><item><title><![CDATA[Reply to How could I make text to speech using the speaker? on Thu, 30 Jan 2020 01:09:49 GMT]]></title><description><![CDATA[<p dir="auto">Try this for the M5stickC  could work, ...</p>
<pre><code>#include &lt;M5StickC.h&gt;
#include &lt;Arduino.h&gt;
#include &lt;ESP8266SAM.h&gt;  //https://github.com/earlephilhower/ESP8266SAM
#include &lt;AudioOutputI2S.h&gt;  //https://github.com/earlephilhower/ESP8266Audio

AudioOutputI2S *out = NULL;

void setup()
{ 
  out = new AudioOutputI2S(0, 1, 32);
  out-&gt;begin();
}

void loop()
{
  ESP8266SAM *sam = new ESP8266SAM;
  sam-&gt;Say(out, "Can you hear me now?");
  delay(500);
  sam-&gt;Say(out, "I can't hear you!");
  delete sam;
}
</code></pre>
]]></description><link>https://community.m5stack.com/post/7244</link><guid isPermaLink="true">https://community.m5stack.com/post/7244</guid><dc:creator><![CDATA[ChrisWR]]></dc:creator><pubDate>Thu, 30 Jan 2020 01:09:49 GMT</pubDate></item><item><title><![CDATA[Reply to How could I make text to speech using the speaker? on Thu, 30 Jan 2020 01:09:26 GMT]]></title><description><![CDATA[<p dir="auto">This works on the M5stack, for the stickC I cannot test tho..</p>
<pre><code>#include &lt;M5Stack.h&gt;
#include &lt;M5StackUpdater.h&gt;
#include &lt;Arduino.h&gt;
#include &lt;ESP8266SAM.h&gt;  //https://github.com/earlephilhower/ESP8266SAM
#include &lt;AudioOutputI2S.h&gt;  //https://github.com/earlephilhower/ESP8266Audio

AudioOutputI2S *out = NULL;

void setup()
{
  M5.begin();
  Wire.begin();
  if(digitalRead(BUTTON_A_PIN) == 0){
    Serial.println("Will load menu binary");
    updateFromFS(SD);
    ESP.restart();
  }  
  out = new AudioOutputI2S(0, 1, 32);
  out-&gt;begin();
}

void loop()
{
  ESP8266SAM *sam = new ESP8266SAM;
  sam-&gt;Say(out, "Can you hear me now?");
  delay(500);
  sam-&gt;Say(out, "I can't hear you!");
  delete sam;
}
</code></pre>
]]></description><link>https://community.m5stack.com/post/7243</link><guid isPermaLink="true">https://community.m5stack.com/post/7243</guid><dc:creator><![CDATA[ChrisWR]]></dc:creator><pubDate>Thu, 30 Jan 2020 01:09:26 GMT</pubDate></item></channel></rss>