yangjiaxu 发表于 2021-2-8 23:01

【ESP32-Korvo测评】+ 04实现TTS-完成

本帖最后由 yangjiaxu 于 2021-2-8 23:04 编辑

<p>纠结了我好久的问题,终于暂时性的搞定了。</p>

<p>之前是想使用TTS的功能,(TTS意为从文本到语音),但是烧录官方提供的Chinese TTS例程之后,设备反复重启,后来看md文件之后,知道需要烧录一个dat文件,但是我鼓捣了一周还是没会烧录。官方提供的操作方式如下。</p>

<h4 style="margin-top:24px; margin-bottom:16px; text-align:start; text-indent:0px; -webkit-text-stroke-width:0px"><span style="font-size:16px"><span style="box-sizing:border-box"><span style="font-weight:600"><span style="line-height:1.25"><span style="color:#24292e"><span style="font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-variant-caps:normal"><span style="letter-spacing:normal"><span style="orphans:2"><span style="text-transform:none"><span style="white-space:normal"><span style="widows:2"><span style="word-spacing:0px"><span style="background-color:#ffffff"><span style="text-decoration-thickness:initial"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">2.烧写语音数据到指定分区:</font></font></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></h4>

<pre>
<code>source flash_voicedata.sh ../../components/esp-sr/esp-tts/esp_tts_chinese/esp_tts_voice_data_xiaole.dat/dev/ttyUSB0</code></pre>

<p></p>

<p>&nbsp;</p>

<p>我知道我搞不定了,那就研究这句命令是干啥的,</p>

<p>一看通过<span style="font-size:13.6px"><span style="box-sizing:border-box"><span style="font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, monospace"><span style="overflow-wrap:normal"><span style="overflow:auto"><span style="line-height:1.45"><span style="background-color:var(--color-bg-tertiary)"><span style="color:#24292e"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-variant-caps:normal"><span style="font-weight:400"><span style="letter-spacing:normal"><span style="orphans:2"><span style="text-transform:none"><span style="widows:2"><span style="word-spacing:0px"><span style="text-decoration-thickness:initial"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><code style="box-sizing:border-box; font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, monospace; font-size:13.6px; padding:0px; background:initial; border-radius:6px; word-break:normal; white-space:pre; border:0px; display:inline; overflow:visible; line-height:inherit; overflow-wrap:normal">flash_voicedata.sh文件实现对esp_tts_voice_data_xiaole.dat的操作,</code></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>

<p><span style="font-size:13.6px"><span style="box-sizing:border-box"><span style="font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, monospace"><span style="overflow-wrap:normal"><span style="overflow:auto"><span style="line-height:1.45"><span style="background-color:var(--color-bg-tertiary)"><span style="color:#24292e"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-variant-caps:normal"><span style="font-weight:400"><span style="letter-spacing:normal"><span style="orphans:2"><span style="text-transform:none"><span style="widows:2"><span style="word-spacing:0px"><span style="text-decoration-thickness:initial"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><code style="box-sizing:border-box; font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, monospace; font-size:13.6px; padding:0px; background:initial; border-radius:6px; word-break:normal; white-space:pre; border:0px; display:inline; overflow:visible; line-height:inherit; overflow-wrap:normal">那我后来就就把flash_voicedata.sh文件通过文本的形式打开,看看dat文件烧录地址是多少。</code></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>

<p></p>

<p>&nbsp;</p>

<p>打开之后得知,烧录地址,然后通过官方提供的烧录软件进行烧录。</p>

<p></p>

<p>把上面这个数据文件通过flash_download_tool工具进行烧录。</p>

<p></p>

<p>&nbsp;</p>

<p>最后,再按照md的流程继续操作。</p>

<p></p>

<p>&nbsp;</p>

<p>烧录成功之后的状态。</p>

<p></p>

<p>&nbsp;</p>

<p>最后,总算是暂时结了我的疑惑,虽然用的路子比较野,我再继续看看为啥按正规流程不能进行下去吧。</p>

<p>解决这个疑惑,就可以继续下一项了,加油吧,ESP32 语音快乐。</p>

<p>&nbsp;</p>

littleshrimp 发表于 2021-2-8 23:57

<p>数码小叶的这个帖子有没有参考价值
https://m.eeworld.com.cn/bbs_thread-1156701-1-1.html</p>

yangjiaxu 发表于 2021-2-11 17:27

<div class="quote">
<blockquote><font size="2"><a href="forum.php?mod=redirect&amp;goto=findpost&amp;pid=3041673&amp;ptid=1156781" target="_blank"><font color="#999999">littleshrimp 发表于 2021-2-8 23:57</font></a></font> 数码小叶的这个帖子有没有参考价值 https://m.eeworld.com.cn/bbs_thread-1156701-1-1.html</blockquote>
</div>

<p>是有用的,感谢大佬,我知道我没有跳转过去,所以用了直接烧录的方法,这个方法比较笨,哈哈哈,不过还好方向没错。最后,祝大佬除夕快乐啊。嘿嘿</p>

a9191389 发表于 2023-5-5 23:25

<p>这个声音有点难听啊</p>

yangjiaxu 发表于 2023-5-18 16:25

a9191389 发表于 2023-5-5 23:25
这个声音有点难听啊

<p>声音效果属实不是很棒,有可能跟用的喇叭有点关系</p>
页: [1]
查看完整版本: 【ESP32-Korvo测评】+ 04实现TTS-完成