<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:wfw="http://wellformedweb.org/CommentAPI/">
<channel>
<title>解说文案 - 知识储备</title>
<link>https://www.xwean.com/%E7%9F%A5%E8%AF%86%E5%82%A8%E5%A4%87.html</link>
<atom:link href="https://www.xwean.com/feed/%E7%9F%A5%E8%AF%86%E5%82%A8%E5%A4%87.html" rel="self" type="application/rss+xml" />
<language>zh-CN</language>
<description></description>
<lastBuildDate>Thu, 03 Apr 2025 21:14:00 +0800</lastBuildDate>
<pubDate>Thu, 03 Apr 2025 21:14:00 +0800</pubDate>
<item>
<title>二奢类目算法调整(测试)</title>
<link>https://www.xwean.com/2040.html</link>
<guid>https://www.xwean.com/2040.html</guid>
<pubDate>Thu, 03 Apr 2025 21:14:00 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[流量审核1.机器审核→抓取铭感词汇,进行匹配2.初审→人工复核3.复审→播放量大于10W,有举报,标黄4.三审→播放大于300万→判定优质内容,提示优化内容自然流1.2W 是个门槛,进行评级算法...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<h3>流量审核</h3><p>1.机器审核→抓取铭感词汇,进行匹配</p><p>2.初审→人工复核</p><p>3.复审→播放量大于10W,有举报,标黄</p><p>4.三审→播放大于300万→判定优质内容,提示优化内容</p><p>自然流1.2W 是个门槛,进行评级</p><h3>算法的调整</h3><p>监管方要求,禁止出现信息茧房</p><p>推送机制→兴趣多样性 言外之意,用户多模态抓取推送,多标签混合建模</p><p>女生→二奢</p><p>​    →美妆</p><p>​    →追星</p><p>用户过往在抖音上喜欢的内容,多样性///</p><h3>本地推</h3><p>内容成长快 上dou+</p><p>内容少的 上本地推</p><p>上实物的标准,本地推 抖音小店  平台可以拖则  白号断开交易链路</p><p>报白5个连锁店,或者入住其他连锁品牌</p><p><strong>禁止销售 语境 语意</strong></p><h3>搜索</h3><p>搜索内容和标签进行匹配  包含站外方向</p><p>精准的搜索喜欢,助推视频流量</p><p>作品里面植入产品</p><hr><p><a href="https://www.xwean.com/go/aHR0cHM6Ly85NTE1Mi5kb3V5aW4uY29tLw">https://95152.douyin.com/</a></p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.xwean.com/2040.html#comments</comments>
<wfw:commentRss>https://www.xwean.com/feed/%E7%9F%A5%E8%AF%86%E5%82%A8%E5%A4%87.html</wfw:commentRss>
</item>
<item>
<title>Deepseek 本地部署(成功版)</title>
<link>https://www.xwean.com/2038.html</link>
<guid>https://www.xwean.com/2038.html</guid>
<pubDate>Wed, 05 Feb 2025 22:09:00 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[Deepseek 本地部署(成功版)Error: 1 documents failed toadd.Forbidden access to file:"https://cdn.useanythi...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<h3>Deepseek 本地部署(成功版)</h3><p><img src="http://pic2.xwean.com/typora1/2023/202502052101335.png" alt="image-20250202205157324" title="image-20250202205157324"></p><p>Error: 1 documents failed toadd.<br>Forbidden access to file:"https://cdn.useanything.com/support/models/Xenova/all-MiniLM-L6-v2/tokenizer config.json" 解决办法</p><h3>跟着步骤来 肯定能成功</h3><h4>Ollama部署版本</h4><p>首先打开官网</p><p><a href="https://www.xwean.com/go/aHR0cHM6Ly9vbGxhbWEuY29tL2Rvd25sb2Fk">https://ollama.com/download</a></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101315.png" alt="image-20250202205405868" title="image-20250202205405868"></p><p><strong>直接下载Windows版本</strong></p><p>​    <em>可能有些网速不够快 , 提供下载安装版本</em></p><p>通过网盘分享的文件：OllamaSetup_2.exe<br>链接: <a href="https://www.xwean.com/go/aHR0cHM6Ly9wYW4uYmFpZHUuY29tL3MvMTNjV0paWjRNRGJuc1lHbGZldFJSalE_cHdkPTJoeTI">https://pan.baidu.com/s/13cWJZZ4MDbnsYGlfetRRjQ?pwd=2hy2</a> 提取码: 2hy2 </p><p>下载安装就能用</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101390.png" alt="image-20250202210810876" title="image-20250202210810876"></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101350.png" alt="image-20250202210826637" title="image-20250202210826637"></p><p>记住安装位置,到时候可能会用得上</p><p>安装完毕不会有任何提示,但实际上已经安装完毕</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101356.png" alt="image-20250202210935044" title="image-20250202210935044"></p><p>如果觉得C盘放模型会占地方,可以换其他的盘</p><p>先检查一下版本</p><p>win+r</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101353.png" alt="image-20250202211039123" title="image-20250202211039123"></p><p><code>ollama -v</code></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101337.png" alt="image-20250202211127233" title="image-20250202211127233"></p><p>出现这个表示已经安装成功,此时先不要着急上模型,如果放在C盘 直接安装即可 <strong>首先退出Ollama 再操作</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101359.png" alt="image-20250202211235392" title="image-20250202211235392"></p><p>右键计算机 选择属性</p><p>不知道win10  和 win11是不是一样 但都是进入属性进行设置 </p><p><strong>右键计算机---属性---高级系统设置---环境变量</strong></p><p>如下选择</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101323.png" alt="image-20250202211642672" title="image-20250202211642672"></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101341.png" alt="image-20250202211917978" title="image-20250202211917978"></p><p>直接复制<code>OLLAMA_MODELS</code></p><p>下面一行在D盘新建文件夹后直接复制路径</p><p>然后确定--确定--确定 即可</p><p>当一切准备完毕</p><p>回到ollama    <a href="https://www.xwean.com/go/aHR0cHM6Ly9vbGxhbWEuY29tL2Rvd25sb2Fk">https://ollama.com/download</a></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101519.png" alt="image-20250202212301095" title="image-20250202212301095"></p><p>回到deepeek官网 发现深度思考是R1模型</p><p><img src="http://pic2.xwean.com/typora1/2023/202502022124351.png" alt="image-20250202212405317" title="image-20250202212405317"></p><p><img src="http://pic2.xwean.com/typora1/2023/202502022124270.png" alt="image-20250202212431234" title="image-20250202212431234"></p><p>每个模型的大小都不一样 根据自己的显卡来</p><p>4090 可以直接莽32b+</p><p>3060卡 据说14b好像是极限..</p><p><code>ollama run deepseek-r1:14b</code></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101673.png" alt="image-20250202213008776" title="image-20250202213008776"></p><p>然后就是漫长的过程...</p><p><em>百度网网盘</em></p><p>通过网盘分享的文件：--ollama---models<br>链接: <a href="https://www.xwean.com/go/aHR0cHM6Ly9wYW4uYmFpZHUuY29tL3MvMTFWWC1lRENmSmc1aF9JXzN0d2NjdGc_cHdkPXZnd2Y">https://pan.baidu.com/s/11VX-eDCfJg5h_I_3twcctg?pwd=vgwf</a> 提取码: vgwf </p><p><img src="http://pic2.xwean.com/typora1/2023/202502052111353.png" alt="image-20250205211135303" title="image-20250205211135303"></p><p>下载好了之后 可以直接放到原始地址,也可以放到变量地址</p><p>原始地址<code>C:\Users\Administrator\.ollama</code>    Users是自己的用户名</p><p>然后 win+r</p><p><code>ollama list</code></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052115981.png" alt="image-20250205211531946" title="image-20250205211531946"></p><p>尝试启动</p><p><code>ollama run deepseek-r1:14b</code></p><p>出现这个</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052117593.png" alt="image-20250205211737515" title="image-20250205211737515"></p><p>代表启动成功</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052118892.png" alt="image-20250205211826846" title="image-20250205211826846"></p><p>完成</p><p>退出输入 <code>/bye</code></p><p><strong>需要注意的  如果放在机械硬盘里 启动可能稍微慢一点 ~</strong></p><hr><h4>知识库</h4><p>打开刚才下载的文件</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052120167.png" alt="image-20250205212032137" title="image-20250205212032137"></p><p>进行安装</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052121971.png" alt="image-20250205212112942" title="image-20250205212112942"></p><p>安装到哪其实都行 就看你固态够不够大</p><p>首次打开</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052131070.png" alt="image-20250205213159021" title="image-20250205213159021"></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052135007.png" alt="image-20250205213514953" title="image-20250205213514953"></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052137979.png" alt="999" title="999"></p><p>都完事了 进入到这个界面</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052138755.png" alt="image-20250205213828711" title="image-20250205213828711"></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052141359.png" alt="image-20250205214151313" title="image-20250205214151313"></p><p>简单设置一下</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052142293.png" alt="image-20250205214258255" title="image-20250205214258255"></p><p>这个地方</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052143064.png" alt="image-20250205214327009" title="image-20250205214327009"></p><p>再进行简单设置</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052145602.png" alt="image-20250205214547547" title="image-20250205214547547"></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052223824.png" alt="image-20250205222323757" title="image-20250205222323757"></p><p>然后</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052223707.png" alt="image-20250205222344644" title="image-20250205222344644"></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052223747.png" alt="image-20250205222356685" title="image-20250205222356685"></p><p>当出现<img src="http://pic2.xwean.com/typora1/2023/202502052302687.png" alt="5eeff2e1a9800f8283ebfa7959a1147" title="5eeff2e1a9800f8283ebfa7959a1147"><br>挂个梯子就好了</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052230948.png" alt="image-20250205223021910" title="image-20250205223021910"></p><p>或者直接把文档扔进去都行</p><hr><p>下课!</p><p><strong>注意 回答的质量完全取决于你知识库的丰富程度</strong></p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.xwean.com/2038.html#comments</comments>
<wfw:commentRss>https://www.xwean.com/feed/%E7%9F%A5%E8%AF%86%E5%82%A8%E5%A4%87.html</wfw:commentRss>
</item>
<item>
<title>Lama-Cleaner 本地安装使用教程 Ai去除水印</title>
<link>https://www.xwean.com/2031.html</link>
<guid>https://www.xwean.com/2031.html</guid>
<pubDate>Tue, 17 Sep 2024 12:14:00 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[Lama-Cleaner 本地安装使用教程 Ai去除水印本来可以花钱解决的问题.....但就是想尝试一下免费的科技的意义  似乎是改变生活的...流程开始1需要安装Python去官网下载即可ht...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<h3>Lama-Cleaner 本地安装使用教程 Ai去除水印</h3><p>本来可以花钱解决的问题.....但就是想尝试一下免费的</p><ul><li>科技的意义  似乎是改变生活的...</li></ul><p><strong>流程开始</strong></p><p>1</p><p>需要安装<code>Python</code></p><p>去官网下载即可</p><p><code>https://www.python.org/downloads/windows/</code></p><p>安装时,要选择,就最下面的下√</p><p><code>Add python.exe to PATH</code></p><p>2</p><p>安装<code>pytorch</code></p><p>官网地址  <code>https://pytorch.org/</code></p><p><img src="http://pic2.xwean.com/typora1/2023/202409171114495.png" alt="image-20240917111447355" title="image-20240917111447355"></p><p>注意一个问题</p><p>如果直接<code>win+R cmd</code>运行的话 会出现???????????  <em>应该是之前安装过python的 会出现这个状态</em></p><p>此时升级一下<code>python</code></p><p><code>python -m pip install --upgrade pip</code></p><p>建议是进入安装目录 在地址栏输入<code>cmd</code></p><p><img src="http://pic2.xwean.com/typora1/2023/202409171133991.png" alt="image-20240917113333962" title="image-20240917113333962"></p><p>然后等待即可</p><p><img src="http://pic2.xwean.com/typora1/2023/202409171133133.png" alt="image-20240917113356098" title="image-20240917113356098"></p><p>一会....</p><p><img src="http://pic2.xwean.com/typora1/2023/202409171139197.png" alt="image-20240917113844837" title="image-20240917113844837"></p><p>这就安装完毕了</p><p>3</p><p>安装<code>Lama-Cleaner</code></p><p><code>pip install Lama-Cleaner</code></p><p>注意 变量或者路径错误 都会导致错误</p><ul><li><p>出现报错检查</p><ul><li>我的电脑-属性-高级-环境变量</li><li>找到正确的环境变量 - 地址栏打开cmd</li></ul></li></ul><p>升级命令 最高级的就不需要了</p><p><img src="http://pic2.xwean.com/typora1/2023/202409171212158.png" alt="image-20240917121209116" title="image-20240917121209116"></p><p><code>python.exe -m pip install --upgrade pip</code></p><p>4</p><p>运行</p><p>在刚才的<code>cmd</code>里面直接输入</p><p><code>lama-cleaner --model=lama --device=cpu --port=8011</code></p><p>第一次运行 会自动下载东西</p><p><img src="http://pic2.xwean.com/typora1/2023/202409171216740.png" alt="image-20240917121605706" title="image-20240917121605706"></p><p>等到完毕后</p><p>在浏览器输入 <code>http://127.0.0.1:8011/</code></p><p>如图</p><p><img src="http://pic2.xwean.com/typora1/2023/202409171216121.png" alt="image-20240917121654069" title="image-20240917121654069"></p><p><strong>注意一点</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202409171217328.png" alt="image-20240917121734297" title="image-20240917121734297"></p><p><code>lama-cleaner --model=lama --device=cpu --port=8011</code></p><p>其中的cpu 代表只用cpu进行工作</p><p>如果有N卡 </p><p>建议使用这个命令</p><p><code>lama-cleaner --model=lama --device=cuda --port=8011</code></p><p>然后重新打开即可</p><p>5</p><p>快捷键</p><p><img src="http://pic2.xwean.com/typora1/2023/202409171220506.png" alt="image-20240917122012471" title="image-20240917122012471"></p><p><img src="http://pic2.xwean.com/typora1/2023/202409171220975.png" alt="image-20240917122031937" title="image-20240917122031937"></p><p>如果做局域网</p><p>则需要使用这条命令</p><p><code> lama-cleaner --model=lama --device=cuda --port=8011  --host=0.0.0.0</code></p><p><strong>延伸</strong></p><p>可以部署在自己的服务器上,然后绑定域名 做个收费的项目......  (未测试)</p><p>或者部署在自家电脑上 然后通过隧道服务 巴拉巴拉 进行远程访问..... (测试成功,工程量还行吧,技术稍微有点敏感,不做教程了)</p><p><img src="http://pic2.xwean.com/typora1/2023/202409171224564.png" alt="image-20240917122423528" title="image-20240917122423528"></p><p>在右上角的设置 还可以选择很多模型进行处理</p><p><strong>最后</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202409171227621.png" alt="image-20240917122731518" title="image-20240917122731518"></p><p>效果非常不错!!</p><p><strong>下课</strong></p><p>所以,某个软件你收费那么贵 还用自己的电脑算力跑软件,真会玩!!</p>
]]></content:encoded>
<slash:comments>1</slash:comments>
<comments>https://www.xwean.com/2031.html#comments</comments>
<wfw:commentRss>https://www.xwean.com/feed/%E7%9F%A5%E8%AF%86%E5%82%A8%E5%A4%87.html</wfw:commentRss>
</item>
<item>
<title>幻剪  混剪神器 图片搜索片段</title>
<link>https://www.xwean.com/2029.html</link>
<guid>https://www.xwean.com/2029.html</guid>
<pubDate>Sat, 17 Aug 2024 16:40:41 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[幻剪  混剪神器 图片搜索片段用视频中的图片搜索整个素材中出现的片段跟着操作走 必定会成功!首先下载幻剪内侧地址:最新安装包下载地址：https://www.123pan.com/s/9dgKV...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<h3>幻剪  混剪神器 图片搜索片段</h3><p><strong>用视频中的图片搜索整个素材中出现的片段</strong></p><p>跟着操作走 必定会成功!</p><p>首先下载幻剪</p><p>内侧地址:</p><p>最新安装包下载地址：<br><code>https://www.123pan.com/s/9dgKVv-Cmd0v.html?</code></p><p><strong>提取码:KRlk</strong></p><p>如图</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171612458.png" alt="image-20240817161246297" title="image-20240817161246297"></p><p>--</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171613863.png" alt="image-20240817161321834" title="image-20240817161321834"></p><p><strong>用心不用旧</strong></p><p>安装地址建议选择在 SSD 固态硬盘中  据说速度更快</p><p><code>CPU 建议最低配 i5 7200 +</code></p><p><code>内侧 8G</code></p><p><code>N卡</code></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171615922.png" alt="image-20240817161505899" title="image-20240817161505899"></p><p>直接打开</p><p><strong>但在打开之前先准备好素材</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171617847.png" alt="image-20240817161716827" title="image-20240817161716827"></p><p>举例说明,,,,</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171618843.png" alt="image-20240817161825786" title="image-20240817161825786"></p><p>登录之后</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171618372.png" alt="image-20240817161848337" title="image-20240817161848337"></p><p>输入邀请码</p><p><code>JiTdkQ</code></p><p><font color="red"><strong>先白嫖几天会员再说</strong></font>~</p><p>一定要注意  这个地方</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171622491.png" alt="image-20240817162226452" title="image-20240817162226452"></p><p>素材时长一定要小于素材库容量</p><p>幻剪 不是按照素材大小决定容量的 而是用素材的时长决定的</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171625727.png" alt="image-20240817162503640" title="image-20240817162503640"></p><p>文件夹或者单个素材直接导入</p><p>完事直接索引就好,期间不需要任何操作  <strong>看完再操作!!! </strong>   <code>看完在操作</code></p><p><code>如果遇到提示下载模型,直接下载就行</code></p><p><strong>如果要提速</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171626343.png" alt="image-20240817162610256" title="image-20240817162610256"></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171626331.png" alt="image-20240817162623247" title="image-20240817162623247"></p><p>--</p><p><strong>导出的并发数可以是2  主要是看配置</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171627984.png" alt="image-20240817162747959" title="image-20240817162747959"></p><p>重要的是这个</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171628680.png" alt="image-20240817162821655" title="image-20240817162821655"></p><p>8G内侧 i7cpu 8G显存 这样的及以上配置  建议调到2</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171629548.png" alt="image-20240817162922511" title="image-20240817162922511"></p><p>当所有的东西准备完毕后 </p><p>检查 没有失败就是成功</p><p>发现失败  右键重新索引</p><p><strong>重点!</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171630405.png" alt="image-20240817163048327" title="image-20240817163048327"></p><p><strong>语言一定要选对  要不白扯</strong></p><p><strong>如果有字幕文件,一定要和素材文件同名</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171632157.png" alt="image-20240817163221146" title="image-20240817163221146"></p><p><strong>搜索素材3个方式</strong></p><ul><li>如果有字幕文件最好 速度也是最快  只要搜索相应的字幕 <code>就能出现画面</code></li><li>如果搜索画面  这直接输入关键词 就能根据关键词找到画面</li><li>如果输入图片  (剪贴板 截图粘贴  或者图片地址),也能迅速找到画面</li></ul><p><strong>分开演示</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171637012.png" alt="image-20240817163713934" title="image-20240817163713934"></p><p>搜爆炸  就能在全部已经索引的素材中找到爆炸的场景</p><p>然后选中素材<code>右键</code>导出</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171640570.png" alt="image-20240817164010538" title="image-20240817164010538"></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171640525.png" alt="image-20240817164035467" title="image-20240817164035467"></p><p><strong>此时会有人问 为何不批量导出 ?</strong></p><p>答: 当你看到这篇文章的时候,已经支持批量了.如果不支持 下面留言,我跟软件作者单挑去!</p><p><strong>下一步进行图片寻找片段</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171645355.png" alt="image-20240817164546217" title="image-20240817164546217"></p><p>找一个差不多点的</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171646510.png" alt="image-20240817164606242" title="image-20240817164606242"></p><p>就这个吧</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171646905.png" alt="image-20240817164632876" title="image-20240817164632876"></p><p>剪贴板直接复制就行</p><p><code>就是截图 直接Ctrl+V</code></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171648661.png" alt="image-20240817164816588" title="image-20240817164816588"></p><p>右键导出</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171648432.png" alt="image-20240817164838351" title="image-20240817164838351"></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171649154.png" alt="image-20240817164938093" title="image-20240817164938093"></p><p>如果觉得少 </p><p>还可以一直放下翻</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171650938.png" alt="image-20240817165014707" title="image-20240817165014707"></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171650232.png" alt="image-20240817165027059" title="image-20240817165027059"></p><p>下课!!</p><p>交流群↓</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171651396.png" alt="image-20240817165113363" title="image-20240817165113363"></p><p>有问题留言</p><p><strong>有问题直接评论留言</strong></p>
]]></content:encoded>
<slash:comments>2</slash:comments>
<comments>https://www.xwean.com/2029.html#comments</comments>
<wfw:commentRss>https://www.xwean.com/feed/%E7%9F%A5%E8%AF%86%E5%82%A8%E5%A4%87.html</wfw:commentRss>
</item>
<item>
<title>谷歌浏览器 Edge浏览器 整个网页截图</title>
<link>https://www.xwean.com/2028.html</link>
<guid>https://www.xwean.com/2028.html</guid>
<pubDate>Sat, 10 Aug 2024 10:54:14 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[谷歌浏览器 Edge浏览器 整个网页截图2中方法第一种,用自带的命令进行操作谷歌浏览器 和 微软的Edge浏览器 本身的区别不大就用谷歌浏览器做演示例如这种随着往下滑动 永无止境根本到不了头F1...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<h3>谷歌浏览器 Edge浏览器 整个网页截图</h3><p><strong>2中方法</strong></p><p>第一种,用自带的命令进行操作</p><p>谷歌浏览器 和 微软的Edge浏览器 本身的区别不大</p><p>就用谷歌浏览器做演示</p><p>例如这种</p><p><img src="http://pic2.xwean.com/typora1/2023/202408101035505.png" alt="image-20240810103522406" title="image-20240810103522406"></p><p>随着往下滑动 永无止境根本到不了头</p><p><code>F12</code></p><p><img src="http://pic2.xwean.com/typora1/2023/202408101036324.png" alt="image-20240810103632282" title="image-20240810103632282"></p><p>如果不是中文,可以点击右上角的齿轮 更改为中文操作</p><p><img src="http://pic2.xwean.com/typora1/2023/202408101037422.png" alt="image-20240810103714388" title="image-20240810103714388"></p><p><strong>调整语言后,重启浏览器生效</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202408101040820.png" alt="image-20240810104021793" title="image-20240810104021793"></p><p><code>Ctrl</code>+<code>Shift</code>+<code>P</code></p><p>但有时候快捷键会失灵,直接点击</p><p><img src="http://pic2.xwean.com/typora1/2023/202408101051294.png" alt="image-20240810105113266" title="image-20240810105113266"></p><p>得到如下结果<img src="http://pic2.xwean.com/typora1/2023/202408101051856.png" alt="www.baidu.com_" title="www.baidu.com_"></p><p>整体效果还算可以</p><p><strong>但如果网页上嵌套各种模块 根本无法截图整张</strong></p><p>例如动态数据分析</p><p>用到这个插件</p><ul><li>​    通过百度网盘分享的文件：GoFullPage插件.zip<br>​    链接：<a href="https://www.xwean.com/go/aHR0cHM6Ly9wYW4uYmFpZHUuY29tL3MvMVhxZ1M1d2stTkd0SkNuUUJlSFgwX3c_cHdkPXlneWo">https://pan.baidu.com/s/1XqgS5wk-NGtJCnQBeHX0_w?pwd=ygyj</a> <br>​    提取码：ygyj</li></ul><p><img src="http://pic2.xwean.com/typora1/2023/202408101057497.png" alt="image-20240810105709468" title="image-20240810105709468"></p><p><strong>安转方法如下</strong></p><p>依次</p><p><img src="http://pic2.xwean.com/typora1/2023/202408101058437.png" alt="image-20240810105831416" title="image-20240810105831416"></p><p><img src="http://pic2.xwean.com/typora1/2023/202408101058256.png" alt="image-20240810105849228" title="image-20240810105849228"></p><p>或者直接复制 浏览器打开</p><p><code>chrome://extensions/</code></p><p><img src="http://pic2.xwean.com/typora1/2023/202408101059248.png" alt="image-20240810105928204" title="image-20240810105928204"></p><p>打开开发者模式</p><p>直接将下载好的压缩包扔里面</p><p><img src="http://pic2.xwean.com/typora1/2023/202408101100308.png" alt="image-20240810110004282" title="image-20240810110004282"></p><p><img src="http://pic2.xwean.com/typora1/2023/202408101100470.png" alt="image-20240810110021440" title="image-20240810110021440"></p><p><img src="http://pic2.xwean.com/typora1/2023/202408101100221.png" alt="image-20240810110056155" title="image-20240810110056155"></p><p><img src="http://pic2.xwean.com/typora1/2023/202408101101460.png" alt="image-20240810110114439" title="image-20240810110114439"></p><p><img src="http://pic2.xwean.com/typora1/2023/202408101101275.png" alt="image-20240810110124249" title="image-20240810110124249"></p><p><strong>其实安装不安装都可以</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202408101102795.png" alt="image-20240810110207769" title="image-20240810110207769"></p><p>出现照相机图标 就OK了</p><p><img src="http://pic2.xwean.com/typora1/2023/202408101102231.png" alt="image-20240810110249124" title="image-20240810110249124"></p><p>针对网页里的嵌套 也可以用</p><p>右上角的设置里面</p><p>可以详细设置</p><p><img src="http://pic2.xwean.com/typora1/2023/202408101104475.png" alt="image-20240810110458366" title="image-20240810110458366"></p><p>下课!</p>
]]></content:encoded>
<slash:comments>1</slash:comments>
<comments>https://www.xwean.com/2028.html#comments</comments>
<wfw:commentRss>https://www.xwean.com/feed/%E7%9F%A5%E8%AF%86%E5%82%A8%E5%A4%87.html</wfw:commentRss>
</item>
<item>
<title>ChatGPT  发音提取 </title>
<link>https://www.xwean.com/2026.html</link>
<guid>https://www.xwean.com/2026.html</guid>
<pubDate>Thu, 04 Jul 2024 22:17:16 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[ChatGPT 发音提取众所周知 GPT的发音不仅声音好,而且还高度拟人化所以为什么不直接下载搞呢?于是....正文如下首先在魔法环境中打开https://chromewebstore.goog...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<h4>ChatGPT 发音提取</h4><p>众所周知 GPT的发音不仅声音好,而且还高度拟人化</p><p>所以为什么不直接下载搞呢?</p><p>于是....正文如下</p><p>首先在魔法环境中打开</p><p><a href="https://www.xwean.com/go/aHR0cHM6Ly9jaHJvbWV3ZWJzdG9yZS5nb29nbGUuY29tL2RldGFpbC9hdWRpb3R0cy1zaW1wbGUtdGV4dC10by1zL2xoYmRqYW9tbmFvYmZsam1oa21jZmhobmloYWFhbmdo">https://chromewebstore.google.com/detail/audiotts-simple-text-to-s/lhbdjaomnaobfljmhkmcfhhnihaaangh</a></p><p><img src="http://pic2.xwean.com/typora1/2023/202407042218760.png" alt="image-20240704221811609" title="image-20240704221811609"></p><p><strong>直接点击安装即可,然后关闭浏览器 重新打开就好</strong></p><p>然后</p><p><img src="http://pic2.xwean.com/typora1/2023/202407042220068.png" alt="发音" title="发音"></p><p>直接点击朗读</p><p><img src="http://pic2.xwean.com/typora1/2023/202407042222091.png" alt="image-20240704222201067" title="image-20240704222201067"></p><p>下载的是<code>.acc</code>文件,可以直接使用,也可以转码</p><p>当然,<strong>没有</strong>魔法环境也不怕</p><p>已经打包好文件和秘钥 拿来就能用</p><p>把<code>.crx</code>直接拖入到<code>chrome</code>就能用</p><p><img src="http://pic2.xwean.com/typora1/2023/202407042224643.png" alt="image-20240704222444618" title="image-20240704222444618"></p><p>下载地址:</p><p>链接：<a href="https://www.xwean.com/go/aHR0cHM6Ly9wYW4uYmFpZHUuY29tL3MvMUlGaE53a1hkcWRsYnp1S2NZODlyd3c_cHdkPTZiOGQ">https://pan.baidu.com/s/1IFhNwkXdqdlbzuKcY89rww?pwd=6b8d</a> <br>提取码：6b8d </p><p>更新时间为文章时间</p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.xwean.com/2026.html#comments</comments>
<wfw:commentRss>https://www.xwean.com/feed/%E7%9F%A5%E8%AF%86%E5%82%A8%E5%A4%87.html</wfw:commentRss>
</item>
<item>
<title>Anthropic 初次评测claude.ai</title>
<link>https://www.xwean.com/2014.html</link>
<guid>https://www.xwean.com/2014.html</guid>
<pubDate>Sat, 22 Jun 2024 21:58:00 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[据说这是openai的人搞出来的关于Pro功能，Openai是20美元 商店里买是19.99美元claude的Pro是20美元，商店里还没有测试同样，没有PayPal支付功能，而且币种只有外卡获...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>据说这是openai的人搞出来的</p><p>关于Pro功能，Openai是20美元 商店里买是19.99美元<br>claude的Pro是20美元，商店里还没有测试</p><p><img src="http://pic2.xwean.com/typecho/2024/06/1022568316.png" alt="2024-06-22T13:50:50.png" title="2024-06-22T13:50:50.png"></p><p>同样，没有PayPal支付功能，而且币种只有外卡<br>获得外卡的渠道就不说了</p><p><strong>不过</strong><br>值的说的是 Claude注册 是需要验证手机号的<br>似乎...不支持</p><p>进去之后</p><p><img src="http://pic2.xwean.com/typecho/2024/06/1640672606.png" alt="2024-06-22T13:54:34.png" title="2024-06-22T13:54:34.png"></p><p>输入完名字之后直接开始使用</p><p>于是将之前总结的营销号格式扔了进去，并同时要求写一篇关于吃香蕉通便的营销文案</p><p><img src="http://pic2.xwean.com/typecho/2024/06/1630383217.png" alt="2024-06-22T13:57:32.png" title="2024-06-22T13:57:32.png"><br><strong>这是Claude</strong>生成的文案</p><p><img src="http://pic2.xwean.com/typecho/2024/06/3700216564.png" alt="2024-06-22T13:58:37.png" title="2024-06-22T13:58:37.png"><br><img src="http://pic2.xwean.com/typecho/2024/06/2014209420.png" alt="2024-06-22T13:58:50.png" title="2024-06-22T13:58:50.png"><br><strong>这是GPT-4o</strong>给出的答案</p><p>不难看出，都是在一本正经的胡说八道<br>...</p><p>例如，询问了一下北京今天的天气<br><img src="http://pic2.xwean.com/typecho/2024/06/1807749396.png" alt="2024-06-22T14:00:10.png" title="2024-06-22T14:00:10.png"></p><p><img src="http://pic2.xwean.com/typecho/2024/06/2331873844.png" alt="2024-06-22T14:00:53.png" title="2024-06-22T14:00:53.png"></p><p>至于说哪个更有优势，看自己怎么说吧</p><p><strong>但是</strong><br>基于Openai写出的GPTs，不知道能否直接在Claude上直接使用</p><p><img src="http://pic2.xwean.com/typecho/2024/06/695118830.png" alt="2024-06-22T14:03:00.png" title="2024-06-22T14:03:00.png"><br>打开的官网是这样的<br><a href="https://www.xwean.com/go/aHR0cHM6Ly93d3cuYW50aHJvcGljLmNvbS8">https://www.anthropic.com/</a></p><p><strong>最后</strong><br>咱先不说技术上的测试与评价，也不管是基于什么样的模型去延展，或者是什么样的算法<br>总体而言，自己感觉哪个最适合自己才是最好的</p><p>这里没有用3.5去对3.5  因为在Openai上用了很长时间的Pro 上来直接就默认使用更高一级的版本。</p><p>行吧，官网已经放在文章里了，感兴趣的自己去尝试，不过都是Claude写代码厉害.. 还没试过</p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.xwean.com/2014.html#comments</comments>
<wfw:commentRss>https://www.xwean.com/feed/%E7%9F%A5%E8%AF%86%E5%82%A8%E5%A4%87.html</wfw:commentRss>
</item>
<item>
<title>简单的IP查询页面制作（二） </title>
<link>https://www.xwean.com/2011.html</link>
<guid>https://www.xwean.com/2011.html</guid>
<pubDate>Tue, 04 Jun 2024 12:06:45 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[接上一个文章https://xwean.com/1959.html做个代码备份NGINX 新增代理→nginx.conf        # 新增Node.js应用的反向代理配置        l...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>接上一个文章</p><p><a href="https://xwean.com/1959.html">https://xwean.com/1959.html</a></p><p>做个代码备份</p><p><img src="http://pic2.xwean.com/typecho/2024/06/1409205433.png" alt="2024-06-04T04:05:47.png" title="2024-06-04T04:05:47.png"></p><p><strong>NGINX 新增代理</strong>→nginx.conf</p><pre><code class="lang-conf">
        # 新增Node.js应用的反向代理配置
        location /get-ip-info {
            proxy_pass http://localhost:3000;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection &#039;upgrade&#039;;
            proxy_set_header Host $host;
            proxy_cache_bypass $http_upgrade;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Real-IP $remote_addr;
        }

        location /get-weather {
            proxy_pass http://localhost:3000;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection &#039;upgrade&#039;;
            proxy_set_header Host $host;
            proxy_cache_bypass $http_upgrade;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Real-IP $remote_addr;
        }
    }


</code></pre><p>前端→index.html</p><pre><code class="lang-html">&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;zh-CN&quot;&gt;
&lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot;&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
    &lt;title&gt;看看天气咋样&lt;/title&gt;
    &lt;style&gt;
        body {
            font-family: &#039;Arial&#039;, sans-serif;
            background-color: #f0f0f0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            flex-direction: column;
        }

        .container {
            background-color: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            width: 300px;
            text-align: center;
            margin-bottom: 20px; /* 与底部文字保持距离 */
        }

        .info-box {
            background-color: #E9ECEF;
            padding: 10px;
            margin: 10px 0;
            border-radius: 5px;
        }

        .footer {
            color: black; /* 设置底部文字颜色 */
            font-size: 12px; /* 设置底部文字大小 */
        }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;div class=&quot;container&quot;&gt;
        &lt;h1&gt;我的天气！&lt;/h1&gt;
        &lt;div id=&quot;ip&quot; class=&quot;info-box&quot;&gt;IP地址：加载中...&lt;/div&gt;
        &lt;div id=&quot;location&quot; class=&quot;info-box&quot;&gt;位置：加载中...&lt;/div&gt;
        &lt;div id=&quot;weather&quot; class=&quot;info-box&quot;&gt;天气：加载中...&lt;/div&gt;
        &lt;div id=&quot;time&quot; class=&quot;info-box&quot;&gt;当前时间：加载中...&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class=&quot;footer&quot;&gt;
        私人网盘正在开发中....
        ozxuu@outlook.com
    &lt;/div&gt;
    &lt;script&gt;
        // 获取IP和位置信息
        fetch(&#039;/get-ip-info&#039;)
            .then(response =&gt; response.json())
            .then(data =&gt; {
                document.getElementById(&#039;ip&#039;).textContent = `IP地址：${data.ip}`;
                document.getElementById(&#039;location&#039;).textContent = `位置：${data.country} - ${data.city} - ${data.region}`;
                
                // 使用获取到的位置信息请求天气数据
                return fetch(`/get-weather?city=${data.city}`);
            })
            .then(response =&gt; response.json())
            .then(data =&gt; {
                document.getElementById(&#039;weather&#039;).textContent = `天气：${data.weather[0].main}, 温度：${data.main.temp}°C`;
            })
            .catch(error =&gt; console.error(&#039;获取信息失败&#039;, error));

        // 显示当前时间
        document.getElementById(&#039;time&#039;).textContent = `当前时间：${new Date().toLocaleTimeString()}`;
    &lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre><p>后端→index.js</p><pre><code class="lang-JavaScript">
require(&#039;dotenv&#039;).config(); // 加载环境变量

const express = require(&#039;express&#039;);
const fetch = require(&#039;node-fetch&#039;);
const morgan = require(&#039;morgan&#039;);
const fs = require(&#039;fs&#039;);
const path = require(&#039;path&#039;);

const app = express();
const PORT = process.env.PORT || 3000;

// 创建一个写入流，并将日志写入到指定文件中
const accessLogStream = fs.createWriteStream(path.join(__dirname, &#039;access.log&#039;), { flags: &#039;a&#039; });

// 设置morgan日志记录中间件，将日志输出到文件中
app.use(morgan(&#039;combined&#039;, { stream: accessLogStream }));

// 获取IP地址信息的路由
app.get(&#039;/get-ip-info&#039;, async (req, res) =&gt; {
    const ipinfoToken = process.env.IPINFO_TOKEN;
    // 获取请求者的IP地址
    const visitorIp = req.headers[&#039;x-forwarded-for&#039;]?.split(&#039;,&#039;).shift() || req.connection.remoteAddress;

    if (!visitorIp) {
        res.status(500).json({ error: &#039;无法获取位置IP&#039; });
        return;
    }

    try {
        // 调用IPinfo API获取访问者的IP地址信息
        const ipinfoResponse = await fetch(`https://ipinfo.io/${visitorIp}?token=${ipinfoToken}`);
        const ipinfoData = await ipinfoResponse.json();

        // 如果返回的数据不包含IP信息，则停止并返回错误
        if (!ipinfoData || !ipinfoData.ip) {
            res.status(500).json({ error: &#039;无法获取位置IP&#039; });
            return;
        }

        res.json(ipinfoData); // 将访问者的IP地址信息发送给前端
    } catch (error) {
        console.error(&#039;Error fetching IP info:&#039;, error);
        res.status(500).json({ error: &#039;Server Error&#039; });
    }
});

// 获取天气信息的路由
app.get(&#039;/get-weather&#039;, async (req, res) =&gt; {
    const openWeatherMapApiKey = process.env.OPENWEATHERMAP_API_KEY;
    const city = req.query.city; // 从查询参数中获取城市名称

    if (!city) {
        res.status(400).json({ error: &#039;城市名称是必需的&#039; });
        return;
    }

    try {
        // 根据城市名称获取天气信息
        const weatherResponse = await fetch(`https://api.openweathermap.org/data/2.5/weather?q=${city}&amp;appid=${openWeatherMapApiKey}&amp;units=metric`);
        const weatherData = await weatherResponse.json();

        // 如果API返回了错误
        if (weatherData.cod != 200) {
            res.status(weatherData.cod).json({ error: weatherData.message });
            return;
        }

        res.json(weatherData); // 将天气信息发送给前端
    } catch (error) {
        console.error(&#039;Error fetching weather data:&#039;, error);
        res.status(500).json({ error: &#039;Server Error&#039; });
    }
});

app.listen(PORT, () =&gt; {
    console.log(`Server running on port ${PORT}`);
});

</code></pre><p>其他→package.json</p><pre><code class="lang-JavaScrip">
{
  &quot;name&quot;: &quot;myapp&quot;,
  &quot;version&quot;: &quot;1.0.0&quot;,
  &quot;description&quot;: &quot;&quot;,
  &quot;main&quot;: &quot;index.js&quot;,
  &quot;scripts&quot;: {
    &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;
  },
  &quot;keywords&quot;: [],
  &quot;author&quot;: &quot;&quot;,
  &quot;license&quot;: &quot;ISC&quot;,
  &quot;dependencies&quot;: {
    &quot;dotenv&quot;: &quot;^16.4.5&quot;,
    &quot;express&quot;: &quot;^4.18.3&quot;,
    &quot;morgan&quot;: &quot;^1.10.0&quot;,
    &quot;node-fetch&quot;: &quot;^2.6.1&quot;
  }
}
</code></pre><p><strong>全部地址---百度网盘---我的资源---简单IP地址看天气---压缩包</strong></p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.xwean.com/2011.html#comments</comments>
<wfw:commentRss>https://www.xwean.com/feed/%E7%9F%A5%E8%AF%86%E5%82%A8%E5%A4%87.html</wfw:commentRss>
</item>
<item>
<title>下载神器 全能下！初次体验Gopeed</title>
<link>https://www.xwean.com/2005.html</link>
<guid>https://www.xwean.com/2005.html</guid>
<pubDate>Mon, 22 Apr 2024 22:39:41 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[下载神器 全能下！初次体验Gopeed偶然间看到了一片文章...上干货官网地址：https://gopeed.com/zh-CN度盘链接链接：https://pan.baidu.com/s/1q...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<h3>下载神器 全能下！初次体验Gopeed</h3><p><strong>偶然间看到了一片文章...</strong></p><p>上干货</p><p>官网地址：</p><p><a href="https://www.xwean.com/go/aHR0cHM6Ly9nb3BlZWQuY29tL3poLUNO">https://gopeed.com/zh-CN</a></p><p>度盘链接</p><p>链接：<a href="https://www.xwean.com/go/aHR0cHM6Ly9wYW4uYmFpZHUuY29tL3MvMXF2cTFCQVB3VU9ISHQ4QTdEdmlseFE_cHdkPWdpa2s">https://pan.baidu.com/s/1qvq1BAPwUOHHt8A7DvilxQ?pwd=gikk</a> <br>提取码：gikk </p><p><img src="http://pic2.xwean.com/typora1/2023/202404222220498.png" alt="image-20240422222006359" title="image-20240422222006359"></p><p>GitHub地址</p><p><a href="https://www.xwean.com/go/aHR0cHM6Ly9naXRodWIuY29tL0dvcGVlZExhYi9nb3BlZWQ_dGFiPXJlYWRtZS1vdi1maWxl">https://github.com/GopeedLab/gopeed?tab=readme-ov-file</a></p><p><img src="http://pic2.xwean.com/typora1/2023/202404222221040.png" alt="image-20240422222122000" title="image-20240422222122000"></p><p><img src="http://pic2.xwean.com/typora1/2023/202404222221711.png" alt="image-20240422222149674" title="image-20240422222149674"></p><p><strong>万星之下无虚名！</strong></p><p>安装开始！</p><p><img src="http://pic2.xwean.com/typora1/2023/202404222223170.png" alt="image-20240422222343123" title="image-20240422222343123"></p><p><img src="http://pic2.xwean.com/typora1/2023/202404222224059.png" alt="image-20240422222415033" title="image-20240422222415033"></p><p>突然想了一下 </p><p>某雷比着大很多吧？！</p><p><img src="" alt="image-20240422222506330" title="image-20240422222506330"></p><p>界面很轻爽</p><p><img src="http://pic2.xwean.com/typora1/2023/202404222225871.png" alt="image-20240422222546842" title="image-20240422222546842"></p><p>会看一下文档 似乎还不错 可以接管浏览器</p><p><img src="http://pic2.xwean.com/typora1/2023/202404222226772.png" alt="image-20240422222625724" title="image-20240422222625724"></p><p><img src="http://pic2.xwean.com/typora1/2023/202404222226779.png" alt="image-20240422222633734" title="image-20240422222633734"></p><p><img src="http://pic2.xwean.com/typora1/2023/202404222226150.png" alt="image-20240422222649062" title="image-20240422222649062"></p><p><img src="http://pic2.xwean.com/typora1/2023/202404222229051.png" alt="image-20240422222725940" title="image-20240422222725940"></p><p>还是实测一下win版本</p><p><img src="http://pic2.xwean.com/typora1/2023/202404222229148.png" alt="image-20240422222940121" title="image-20240422222940121"></p><p><img src="http://pic2.xwean.com/typora1/2023/202404222230524.png" alt="image-20240422223000485" title="image-20240422223000485"></p><p><img src="http://pic2.xwean.com/typora1/2023/202404222230818.png" alt="image-20240422223048786" title="image-20240422223048786"></p><p>随便找个YouTube的视频测试一下</p><p><img src="http://pic2.xwean.com/typora1/2023/202404222232595.png" alt="image-20240422223259567" title="image-20240422223259567"></p><p><img src="http://pic2.xwean.com/typora1/2023/202404222233052.png" alt="image-20240422223329024" title="image-20240422223329024"></p><p><img src="http://pic2.xwean.com/typora1/2023/202404222233187.png" alt="image-20240422223348160" title="image-20240422223348160"></p><p><img src="http://pic2.xwean.com/typora1/2023/202404222234302.png" alt="image-20240422223412269" title="image-20240422223412269"></p><p>下载是下载完了 估计是我哪个地方没设置对，默认是720P的</p><p>然后测试一下种子文件</p><p><img src="http://pic2.xwean.com/typora1/2023/202404222237231.png" alt="image-20240422223700200" title="image-20240422223700200"></p><p><img src="http://pic2.xwean.com/typora1/2023/202404222237997.png" alt="image-20240422223711969" title="image-20240422223711969"></p><p><img src="http://pic2.xwean.com/typora1/2023/202404222237293.png" alt="image-20240422223739263" title="image-20240422223739263"></p><p>关闭Tun模式  速度似乎上来一点  </p><p><strong>应该是网络的问题，或者是种子的问题，毕竟这种子是今天才上的</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202404222240480.png" alt="image-20240422224019449" title="image-20240422224019449"></p><p>换个三体试试</p><p>速度上来了，应该是种子的问题。除此之外 <strong>一定要有稳定的网络，虽然我用的是混线，而且还是强制混线，建议大家都来试试</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202404222241400.png" alt="image-20240422224129370" title="image-20240422224129370"></p><p>速度可以的！</p><p><strong>下课</strong></p><hr>
]]></content:encoded>
<slash:comments>1</slash:comments>
<comments>https://www.xwean.com/2005.html#comments</comments>
<wfw:commentRss>https://www.xwean.com/feed/%E7%9F%A5%E8%AF%86%E5%82%A8%E5%A4%87.html</wfw:commentRss>
</item>
<item>
<title>火山引擎 语音合成 完全自费 亲测好用！懒癌患者滑到最后！</title>
<link>https://www.xwean.com/1976.html</link>
<guid>https://www.xwean.com/1976.html</guid>
<pubDate>Thu, 04 Apr 2024 19:48:28 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[火山引擎 语音合成 完全自费 亲测好用！说在前面不是魔音和逗哥用不起，而是自研更有性价比为此，找到了最简单的demo【官方提供】#coding=utf-8&#039;&#039;&#039;re...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<h3>火山引擎 语音合成 完全自费 亲测好用！</h3><p>说在前面</p><p><strong>不是魔音和逗哥用不起，而是自研更有性价比</strong></p><p>为此，找到了最简单的demo【官方提供】</p><pre><code class="lang-python">#coding=utf-8

&#039;&#039;&#039;
requires Python 3.6 or later
pip install requests
&#039;&#039;&#039;
import base64
import json
import uuid
import requests

# 填写平台申请的appid, access_token以及cluster
appid = &quot;************&quot;
access_token= &quot;***********&quot;
cluster = &quot;volcano_tts&quot;

voice_type = &quot;BV102_streaming&quot;
host = &quot;openspeech.bytedance.com&quot;
api_url = f&quot;https://{host}/api/v1/tts&quot;

header = {&quot;Authorization&quot;: f&quot;Bearer;{access_token}&quot;}

request_json = {
    &quot;app&quot;: {
        &quot;appid&quot;: appid,
        &quot;token&quot;: &quot;access_token&quot;,
        &quot;cluster&quot;: cluster
    },
    &quot;user&quot;: {
        &quot;uid&quot;: &quot;********&quot;
    },
    &quot;audio&quot;: {
        &quot;voice_type&quot;: voice_type,
        &quot;encoding&quot;: &quot;mp3&quot;,
        &quot;speed_ratio&quot;: 1.0,
        &quot;volume_ratio&quot;: 1.0,
        &quot;pitch_ratio&quot;: 1.0,
    },
    &quot;request&quot;: {
        &quot;reqid&quot;: str(uuid.uuid4()),
        &quot;text&quot;: &quot;字节跳动语音合成&quot;,
        &quot;text_type&quot;: &quot;plain&quot;,
        &quot;operation&quot;: &quot;query&quot;,
        &quot;with_frontend&quot;: 1,
        &quot;frontend_type&quot;: &quot;unitTson&quot;

    }
}

if __name__ == &#039;__main__&#039;:
    try:
        resp = requests.post(api_url, json.dumps(request_json), headers=header)
        print(f&quot;resp body: \n{resp.json()}&quot;)
        if &quot;data&quot; in resp.json():
            data = resp.json()[&quot;data&quot;]
            file_to_save = open(&quot;test_submit.mp3&quot;, &quot;wb&quot;)
            file_to_save.write(base64.b64decode(data))
    except Exception as e:
        e.with_traceback()
</code></pre><p>将其中的<code>***********</code>替换成对应的就可以实现</p><p><a href="https://www.xwean.com/go/aHR0cDovL3BpYzIueHdlYW4uY29tL3R5cGVjaG8vMjAyNC8wNC8xMDA5Njg5NjI1Lm1wMw">test_submit.mp3</a></p><p>感觉还行！</p><p><strong>于是就扩展了第一版代码</strong></p><h4>第一版代码</h4><pre><code class="lang-python">import tkinter as tk
from tkinter import ttk, scrolledtext, messagebox, filedialog
import requests
import uuid
import base64

def synthesis(text, appid, cluster, voice_type, speed, token):
    url = &quot;https://openspeech.bytedance.com/api/v1/tts&quot;
    headers = {
        &quot;Content-Type&quot;: &quot;application/json&quot;,
        &quot;Authorization&quot;: f&quot;Bearer;{token}&quot;
    }
    body = {
        &quot;app&quot;: {&quot;appid&quot;: appid, &quot;cluster&quot;: cluster},
        &quot;user&quot;: {&quot;uid&quot;: &quot;default_uid&quot;},
        &quot;audio&quot;: {
            &quot;voice_type&quot;: voice_type,
            &quot;encoding&quot;: &quot;mp3&quot;,
            &quot;speed_ratio&quot;: speed,
            &quot;volume_ratio&quot;: 1.0,
            &quot;pitch_ratio&quot;: 1.0
        },
        &quot;request&quot;: {
            &quot;reqid&quot;: str(uuid.uuid4()),
            &quot;text&quot;: text,
            &quot;operation&quot;: &quot;query&quot;
        }
    }
    response = requests.post(url, json=body, headers=headers)
    response_data = response.json()
    if response.status_code == 200 and response_data.get(&quot;code&quot;) == 3000:
        audio_data = base64.b64decode(response_data[&quot;data&quot;])
        return audio_data
    else:
        raise Exception(f&quot;合成失败: {response_data.get(&#039;message&#039;, &#039;未知错误&#039;)}&quot;)

def convert_to_speech():
    text = text_input.get(&quot;1.0&quot;, tk.END).strip()
    if not text:
        messagebox.showwarning(&quot;警告&quot;, &quot;请输入要转换的文本！&quot;)
        return

    selected_voice = voice_type_combobox.get()
    voice_type = voice_mapping[selected_voice]

    try:
        audio_data = synthesis(text, appid_entry.get(), cluster_entry.get(), voice_type, speed_scale.get(), token_entry.get())
        save_path = filedialog.asksaveasfilename(defaultextension=&quot;.mp3&quot;, filetypes=[(&quot;MP3文件&quot;, &quot;*.mp3&quot;)])
        if save_path:
            with open(save_path, &#039;wb&#039;) as f:
                f.write(audio_data)
            messagebox.showinfo(&quot;成功&quot;, &quot;音频已成功保存！&quot;)
    except Exception as e:
        messagebox.showerror(&quot;错误&quot;, str(e))

root = tk.Tk()
root.title(&quot;文本转语音&quot;)

voice_mapping = {
    &quot;通用女声&quot;: &quot;BV001_streaming&quot;,
    &quot;通用男声&quot;: &quot;BV002_streaming&quot;,
    &quot;儒雅青年&quot;: &quot;BV102_streaming&quot;,
    &quot;知性姐姐-双语&quot;: &quot;BV034_streaming&quot;,
    &quot;温柔小哥&quot;: &quot;BV033_streaming&quot;,
    &quot;活泼女声&quot;: &quot;BV005_streaming&quot;,
    &quot;奶气萌娃&quot;: &quot;BV051_streaming&quot;,
    &quot;亲切女声&quot;: &quot;BV007_streaming&quot;,
    &quot;阳光男声&quot;: &quot;BV056_streaming&quot;,
    &quot;东北老铁&quot;: &quot;BV021_streaming&quot;
}

# 界面布局
ttk.Label(root, text=&quot;AppID：&quot;).grid(column=0, row=0, sticky=tk.W)
ttk.Label(root, text=&quot;Cluster：&quot;).grid(column=0, row=1, sticky=tk.W)
ttk.Label(root, text=&quot;Access Token：&quot;).grid(column=0, row=2, sticky=tk.W)
ttk.Label(root, text=&quot;音色选择：&quot;).grid(column=0, row=3, sticky=tk.W)
ttk.Label(root, text=&quot;朗读速度：&quot;).grid(column=0, row=4, sticky=tk.W)

appid_entry = ttk.Entry(root)
appid_entry.grid(column=1, row=0, sticky=tk.EW)

cluster_entry = ttk.Entry(root)
cluster_entry.grid(column=1, row=1, sticky=tk.EW)

token_entry = ttk.Entry(root)
token_entry.grid(column=1, row=2, sticky=tk.EW)

voice_type_combobox = ttk.Combobox(root, values=list(voice_mapping.keys()))
voice_type_combobox.grid(column=1, row=3, sticky=tk.EW)
voice_type_combobox.current(0)

speed_var = tk.DoubleVar(value=1)
speed_scale = ttk.Scale(root, from_=0.2, to=3, variable=speed_var, orient=tk.HORIZONTAL)
speed_scale.grid(column=1, row=4, sticky=tk.EW)
speed_label = ttk.Label(root, textvariable=speed_var)
speed_label.grid(column=2, row=4, sticky=tk.W)

ttk.Label(root, text=&quot;文本内容：&quot;).grid(column=0, row=5, sticky=tk.NW)
text_input = scrolledtext.ScrolledText(root, height=10)
text_input.grid(column=0, row=6, columnspan=3, sticky=tk.EW)

convert_button = ttk.Button(root, text=&quot;转换为语音&quot;, command=convert_to_speech)
convert_button.grid(column=0, row=7, columnspan=3, sticky=tk.EW)

root.mainloop()
</code></pre><p>运行以后是这个样子<br><img src="http://pic2.xwean.com/typecho/2024/04/1917842050.png" alt="2024-04-04T11:19:24.png" title="2024-04-04T11:19:24.png"></p><p>做个测试<br><img src="http://pic2.xwean.com/typecho/2024/04/4281456089.png" alt="2024-04-04T11:21:07.png" title="2024-04-04T11:21:07.png"></p><p>文件如下</p><p><a href="https://www.xwean.com/go/aHR0cDovL3BpYzIueHdlYW4uY29tL3R5cGVjaG8vMjAyNC8wNC8yMTExNTI2MzEzLm1wMw">111.mp3</a></p><p>效果还不错对吧</p><p>为了做的更好一点，于是添加了度数</p><h4>第二版代码</h4><pre><code class="lang-python">import tkinter as tk
from tkinter import ttk, scrolledtext, messagebox, filedialog
import requests
import uuid
import base64
import threading

# 文字转语音合成函数
def synthesis(text, appid, cluster, voice_type, speed, token):
    url = &quot;https://openspeech.bytedance.com/api/v1/tts&quot;
    headers = {
        &quot;Content-Type&quot;: &quot;application/json&quot;,
        &quot;Authorization&quot;: f&quot;Bearer;{token}&quot;
    }
    body = {
        &quot;app&quot;: {&quot;appid&quot;: appid, &quot;cluster&quot;: cluster},
        &quot;user&quot;: {&quot;uid&quot;: &quot;default_uid&quot;},
        &quot;audio&quot;: {
            &quot;voice_type&quot;: voice_type,
            &quot;encoding&quot;: &quot;mp3&quot;,
            &quot;speed_ratio&quot;: speed,
            &quot;volume_ratio&quot;: 1.0,
            &quot;pitch_ratio&quot;: 1.0
        },
        &quot;request&quot;: {
            &quot;reqid&quot;: str(uuid.uuid4()),
            &quot;text&quot;: text,
            &quot;operation&quot;: &quot;query&quot;
        }
    }
    response = requests.post(url, json=body, headers=headers)
    response_data = response.json()
    if response.status_code == 200 and response_data.get(&quot;code&quot;) == 3000:
        audio_data = base64.b64decode(response_data[&quot;data&quot;])
        return audio_data
    else:
        raise Exception(f&quot;合成失败: {response_data.get(&#039;message&#039;, &#039;未知错误&#039;)}&quot;)

# GUI的转换函数
def convert_to_speech():
    text = text_input.get(&quot;1.0&quot;, tk.END).strip()
    if not text:
        messagebox.showwarning(&quot;警告&quot;, &quot;请输入要转换的文本！&quot;)
        return

    selected_voice = voice_type_combobox.get()
    voice_type = voice_mapping[selected_voice]

    try:
        audio_data = synthesis(text, appid_entry.get(), cluster_entry.get(), voice_type, speed_var.get(), token_entry.get())
        save_path = filedialog.asksaveasfilename(defaultextension=&quot;.mp3&quot;, filetypes=[(&quot;MP3文件&quot;, &quot;*.mp3&quot;)])
        if save_path:
            with open(save_path, &#039;wb&#039;) as f:
                f.write(audio_data)
            messagebox.showinfo(&quot;成功&quot;, &quot;音频已成功保存！&quot;)
    except Exception as e:
        messagebox.showerror(&quot;错误&quot;, str(e))

# 使用线程显示启动信息提示
def show_startup_message_threaded():
    messagebox.showinfo(&quot;信息提示&quot;, &quot;xwean.com&quot;)

# 启动信息提示线程
def start_startup_message_thread():
    startup_thread = threading.Thread(target=show_startup_message_threaded)
    startup_thread.start()

# 实时更新朗读速度显示，并保留两位小数
def update_speed_label(event=None):
    speed_label.config(text=f&quot;{speed_scale.get():.2f}&quot;)

root = tk.Tk()
root.title(&quot;文本转语音&quot;)

voice_mapping = {
    &quot;通用女声&quot;: &quot;BV001_streaming&quot;,
    &quot;通用男声&quot;: &quot;BV002_streaming&quot;,
    &quot;儒雅青年&quot;: &quot;BV102_streaming&quot;,
    &quot;知性姐姐-双语&quot;: &quot;BV034_streaming&quot;,
    &quot;温柔小哥&quot;: &quot;BV033_streaming&quot;,
    &quot;活泼女声&quot;: &quot;BV005_streaming&quot;,
    &quot;奶气萌娃&quot;: &quot;BV051_streaming&quot;,
    &quot;亲切女声&quot;: &quot;BV007_streaming&quot;,
    &quot;阳光男声&quot;: &quot;BV056_streaming&quot;,
    &quot;东北老铁&quot;: &quot;BV021_streaming&quot;
}

# 界面布局
ttk.Label(root, text=&quot;AppID：&quot;).grid(column=0, row=0, sticky=tk.W)
ttk.Label(root, text=&quot;Cluster：&quot;).grid(column=0, row=1, sticky=tk.W)
ttk.Label(root, text=&quot;Access Token：&quot;).grid(column=0, row=2, sticky=tk.W)
ttk.Label(root, text=&quot;音色选择：&quot;).grid(column=0, row=3, sticky=tk.W)
ttk.Label(root, text=&quot;朗读速度：&quot;).grid(column=0, row=4, sticky=tk.W)

appid_entry = ttk.Entry(root)
appid_entry.grid(column=1, row=0, sticky=tk.EW)

cluster_entry = ttk.Entry(root)
cluster_entry.grid(column=1, row=1, sticky=tk.EW)

token_entry = ttk.Entry(root)
token_entry.grid(column=1, row=2, sticky=tk.EW)

voice_type_combobox = ttk.Combobox(root, values=list(voice_mapping.keys()))
voice_type_combobox.grid(column=1, row=3, sticky=tk.EW)
voice_type_combobox.current(0)

speed_var = tk.DoubleVar(value=1.0)
speed_scale = ttk.Scale(root, from_=0.2, to=3, variable=speed_var, orient=tk.HORIZONTAL, command=update_speed_label)
speed_scale.grid(column=1, row=4, sticky=tk.EW)
speed_label = ttk.Label(root, text=&quot;1.00&quot;)  # 初始值
speed_label.grid(column=2, row=4, sticky=tk.W)

ttk.Label(root, text=&quot;文本内容：&quot;).grid(column=0, row=5, sticky=tk.NW)
text_input = scrolledtext.ScrolledText(root, height=10)
text_input.grid(column=0, row=6, columnspan=3, sticky=tk.EW)

convert_button = ttk.Button(root, text=&quot;转换为语音&quot;, command=convert_to_speech)
convert_button.grid(column=0, row=7, columnspan=3, sticky=tk.EW)

# 在GUI初始化完成后启动信息提示线程
root.after(100, start_startup_message_thread)

root.mainloop()</code></pre><p><strong>第二版 主要优化了朗读速度的数值显示问题，并且做了打开提示内容信息</strong></p><p><img src="http://pic2.xwean.com/typecho/2024/04/1410470558.png" alt="2024-04-04T11:23:08.png" title="2024-04-04T11:23:08.png"><br>添加了提示框</p><p><img src="http://pic2.xwean.com/typecho/2024/04/3775546085.png" alt="2024-04-04T11:23:36.png" title="2024-04-04T11:23:36.png"><br>也增加了滑动数值，下面试试</p><p><img src="http://pic2.xwean.com/typecho/2024/04/2708413340.png" alt="2024-04-04T11:25:18.png" title="2024-04-04T11:25:18.png"><br>3.0的速度<br><a href="https://www.xwean.com/go/aHR0cDovL3BpYzIueHdlYW4uY29tL3R5cGVjaG8vMjAyNC8wNC85MjEwODc5NDcubXAz">7766.mp3</a><br>然后是1.5 的速度</p><p><a href="https://www.xwean.com/go/aHR0cDovL3BpYzIueHdlYW4uY29tL3R5cGVjaG8vMjAyNC8wNC8zNzYwOTg5NTM5Lm1wMw">6633.mp3</a></p><p>感觉还行<br>但是又发现了一个新的问题<br>似乎每次下载都要手动输入以下名字</p><h4>第三版代码</h4><pre><code class="lang-python">import tkinter as tk
from tkinter import ttk, scrolledtext, messagebox, filedialog
import requests
import uuid
import base64
import threading
from datetime import datetime

# 文字转语音合成函数
def synthesis(text, appid, cluster, voice_type, speed, token):
    url = &quot;https://openspeech.bytedance.com/api/v1/tts&quot;
    headers = {
        &quot;Content-Type&quot;: &quot;application/json&quot;,
        &quot;Authorization&quot;: f&quot;Bearer;{token}&quot;
    }
    body = {
        &quot;app&quot;: {&quot;appid&quot;: appid, &quot;cluster&quot;: cluster},
        &quot;user&quot;: {&quot;uid&quot;: &quot;default_uid&quot;},
        &quot;audio&quot;: {
            &quot;voice_type&quot;: voice_type,
            &quot;encoding&quot;: &quot;mp3&quot;,
            &quot;speed_ratio&quot;: speed,
            &quot;volume_ratio&quot;: 1.0,
            &quot;pitch_ratio&quot;: 1.0
        },
        &quot;request&quot;: {
            &quot;reqid&quot;: str(uuid.uuid4()),
            &quot;text&quot;: text,
            &quot;operation&quot;: &quot;query&quot;
        }
    }
    response = requests.post(url, json=body, headers=headers)
    response_data = response.json()
    if response.status_code == 200 and response_data.get(&quot;code&quot;) == 3000:
        audio_data = base64.b64decode(response_data[&quot;data&quot;])
        return audio_data
    else:
        raise Exception(f&quot;合成失败: {response_data.get(&#039;message&#039;, &#039;未知错误&#039;)}&quot;)

# GUI的转换函数
def convert_to_speech():
    text = text_input.get(&quot;1.0&quot;, tk.END).strip()
    if not text:
        messagebox.showwarning(&quot;警告&quot;, &quot;请输入要转换的文本！&quot;)
        return

    selected_voice = voice_type_combobox.get()
    voice_info = voice_mapping[selected_voice]
    voice_type = voice_info[&quot;voice_type&quot;]

    try:
        audio_data = synthesis(text, appid_entry.get(), cluster_entry.get(), voice_type, speed_var.get(), token_entry.get())
        default_filename = datetime.now().strftime(&quot;%Y-%m-%d_%H-%M-%S.mp3&quot;)
        save_path = filedialog.asksaveasfilename(initialfile=default_filename, defaultextension=&quot;.mp3&quot;, filetypes=[(&quot;MP3文件&quot;, &quot;*.mp3&quot;)])
        if save_path:
            with open(save_path, &#039;wb&#039;) as f:
                f.write(audio_data)
            messagebox.showinfo(&quot;成功&quot;, &quot;音频已成功保存！&quot;)
    except Exception as e:
        messagebox.showerror(&quot;错误&quot;, str(e))

# 使用线程显示启动信息提示
def show_startup_message_threaded():
    messagebox.showinfo(&quot;信息提示&quot;, &quot;xwean.com&quot;)

# 启动信息提示线程
def start_startup_message_thread():
    startup_thread = threading.Thread(target=show_startup_message_threaded)
    startup_thread.start()

# 实时更新朗读速度显示，并保留两位小数
def update_speed_label(event=None):
    speed_label.config(text=f&quot;{speed_scale.get():.2f}&quot;)

root = tk.Tk()
root.title(&quot;文本转语音&quot;)

voice_mapping = {
    &quot;通用女声-通用场景-中文&quot;: {&quot;voice_type&quot;: &quot;BV001_streaming&quot;, &quot;场景&quot;: &quot;通用场景&quot;, &quot;语种&quot;: &quot;中文&quot;},
    &quot;通用男声-通用场景-中文&quot;: {&quot;voice_type&quot;: &quot;BV002_streaming&quot;, &quot;场景&quot;: &quot;通用场景&quot;, &quot;语种&quot;: &quot;中文&quot;},
    &quot;日语男声-多语种-日语&quot;: {&quot;voice_type&quot;: &quot;BV524_streaming&quot;, &quot;场景&quot;: &quot;多语种&quot;, &quot;语种&quot;: &quot;日语&quot;},
    &quot;甜宠少御-有声阅读-中文&quot;: {&quot;voice_type&quot;: &quot;BV113_streaming&quot;, &quot;场景&quot;: &quot;有声阅读&quot;, &quot;语种&quot;: &quot;中文&quot;},
    &quot;古风少御-有声阅读-中文&quot;: {&quot;voice_type&quot;: &quot;BV115_streaming&quot;, &quot;场景&quot;: &quot;有声阅读&quot;, &quot;语种&quot;: &quot;中文&quot;},
    &quot;炀炀-通用场景-中文&quot;: {&quot;voice_type&quot;: &quot;BV705_streaming&quot;, &quot;场景&quot;: &quot;通用场景&quot;, &quot;语种&quot;: &quot;中文&quot;},
    &quot;重庆小伙-方言-重庆话&quot;: {&quot;voice_type&quot;: &quot;BV019_streaming&quot;, &quot;场景&quot;: &quot;方言&quot;, &quot;语种&quot;: &quot;重庆话&quot;},
    &quot;广西表哥-方言-广西普通话&quot;: {&quot;voice_type&quot;: &quot;BV213_streaming&quot;, &quot;场景&quot;: &quot;方言&quot;, &quot;语种&quot;: &quot;广西普通话&quot;},
    &quot;气质女生-多语种-日语&quot;: {&quot;voice_type&quot;: &quot;BV522_streaming&quot;, &quot;场景&quot;: &quot;多语种&quot;, &quot;语种&quot;: &quot;日语&quot;},
    &quot;通用赘婿-有声阅读-中文&quot;: {&quot;voice_type&quot;: &quot;BV119_streaming&quot;, &quot;场景&quot;: &quot;有声阅读&quot;, &quot;语种&quot;: &quot;中文&quot;},
    &quot;擎苍-有声阅读-中文&quot;: {&quot;voice_type&quot;: &quot;BV701_streaming&quot;, &quot;场景&quot;: &quot;有声阅读&quot;, &quot;语种&quot;: &quot;中文&quot;},
    &quot;活力男声-Jackson-美式发音-英语&quot;: {&quot;voice_type&quot;: &quot;BV504_streaming&quot;, &quot;场景&quot;: &quot;美式发音&quot;, &quot;语种&quot;: &quot;英语&quot;},
    &quot;灿灿-通用场景-中文&quot;: {&quot;voice_type&quot;: &quot;BV700_streaming&quot;, &quot;场景&quot;: &quot;通用场景&quot;, &quot;语种&quot;: &quot;中文&quot;},
    &quot;活力女声-Ariana-美式发音-英语&quot;: {&quot;voice_type&quot;: &quot;BV503_streaming&quot;, &quot;场景&quot;: &quot;美式发音&quot;, &quot;语种&quot;: &quot;英语&quot;},
    &quot;儒雅青年-有声阅读-中文&quot;: {&quot;voice_type&quot;: &quot;BV102_streaming&quot;, &quot;场景&quot;: &quot;有声阅读&quot;, &quot;语种&quot;: &quot;中文&quot;},
    &quot;知性姐姐-双语-教育场景-中文&quot;: {&quot;voice_type&quot;: &quot;BV034_streaming&quot;, &quot;场景&quot;: &quot;教育场景&quot;, &quot;语种&quot;: &quot;中文&quot;},
    &quot;温柔小哥-教育场景-中文&quot;: {&quot;voice_type&quot;: &quot;BV033_streaming&quot;, &quot;场景&quot;: &quot;教育场景&quot;, &quot;语种&quot;: &quot;中文&quot;},
    &quot;活泼女声-视频配音-中文&quot;: {&quot;voice_type&quot;: &quot;BV005_streaming&quot;, &quot;场景&quot;: &quot;视频配音&quot;, &quot;语种&quot;: &quot;中文&quot;},
    &quot;奶气萌娃-特色音色-中文&quot;: {&quot;voice_type&quot;: &quot;BV051_streaming&quot;, &quot;场景&quot;: &quot;特色音色&quot;, &quot;语种&quot;: &quot;中文&quot;},
    &quot;亲切女声-客服场景-中文&quot;: {&quot;voice_type&quot;: &quot;BV007_streaming&quot;, &quot;场景&quot;: &quot;客服场景&quot;, &quot;语种&quot;: &quot;中文&quot;},
    &quot;阳光男声-视频配音-中文&quot;: {&quot;voice_type&quot;: &quot;BV056_streaming&quot;, &quot;场景&quot;: &quot;视频配音&quot;, &quot;语种&quot;: &quot;中文&quot;},
    &quot;东北老铁-方言-东北话&quot;: {&quot;voice_type&quot;: &quot;BV021_streaming&quot;, &quot;场景&quot;: &quot;方言&quot;, &quot;语种&quot;: &quot;东北话&quot;}
}


# 界面布局
ttk.Label(root, text=&quot;AppID：&quot;).grid(column=0, row=0, sticky=tk.W)
appid_entry = ttk.Entry(root)
appid_entry.grid(column=1, row=0, sticky=tk.EW)

ttk.Label(root, text=&quot;Cluster：&quot;).grid(column=0, row=1, sticky=tk.W)
cluster_entry = ttk.Entry(root)
cluster_entry.grid(column=1, row=1, sticky=tk.EW)

ttk.Label(root, text=&quot;Access Token：&quot;).grid(column=0, row=2, sticky=tk.W)
token_entry = ttk.Entry(root)
token_entry.grid(column=1, row=2, sticky=tk.EW)

ttk.Label(root, text=&quot;音色选择：&quot;).grid(column=0, row=3, sticky=tk.W)
voice_type_combobox = ttk.Combobox(root, values=list(voice_mapping.keys()))
voice_type_combobox.grid(column=1, row=3, sticky=tk.EW)
voice_type_combobox.current(0)

ttk.Label(root, text=&quot;朗读速度：&quot;).grid(column=0, row=4, sticky=tk.W)
speed_var = tk.DoubleVar(value=1.0)
speed_scale = ttk.Scale(root, from_=0.2, to=3, variable=speed_var, orient=tk.HORIZONTAL, command=update_speed_label)
speed_scale.grid(column=1, row=4, sticky=tk.EW)
speed_label = ttk.Label(root, text=&quot;1.00&quot;)
speed_label.grid(column=2, row=4, sticky=tk.W)

ttk.Label(root, text=&quot;文本内容：&quot;).grid(column=0, row=5, sticky=tk.NW)
text_input = scrolledtext.ScrolledText(root, height=10)
text_input.grid(column=0, row=6, columnspan=3, sticky=tk.EW)

convert_button = ttk.Button(root, text=&quot;转换为语音&quot;, command=convert_to_speech)
convert_button.grid(column=0, row=7, columnspan=3, sticky=tk.EW)

root.after(100, start_startup_message_thread)

root.mainloop()
</code></pre><p>更新的下载时，自动用时间命名！同时支持22款目前免费的声音，需要的朋友自己去官网搞一下！</p><p>OK！</p><p>最终教程！</p><hr><p>打开</p><p><a href="https://www.xwean.com/go/aHR0cHM6Ly93d3cudm9sY2VuZ2luZS5jb20v">https://www.volcengine.com/</a><br><img src="http://pic2.xwean.com/typecho/2024/04/2101821394.png" alt="2024-04-04T11:31:51.png" title="2024-04-04T11:31:51.png"></p><p>该注册的去注册，然后直接登录，建议先储值2元钱 以防欠费</p><p><img src="http://pic2.xwean.com/typecho/2024/04/1344847839.png" alt="2024-04-04T11:32:45.png" title="2024-04-04T11:32:45.png"></p><p>也可以先购买优惠包，但建议后买</p><p><img src="http://pic2.xwean.com/typecho/2024/04/2231253507.png" alt="2024-04-04T11:34:05.png" title="2024-04-04T11:34:05.png"></p><p>创建<br><img src="http://pic2.xwean.com/typecho/2024/04/764420809.png" alt="2024-04-04T11:34:50.png" title="2024-04-04T11:34:50.png"></p><p>选择<br><img src="http://pic2.xwean.com/typecho/2024/04/10707424.png" alt="2024-04-04T11:35:39.png" title="2024-04-04T11:35:39.png"></p><p>其实也可以多选 或者 都选 【但没测试过】<br><img src="http://pic2.xwean.com/typecho/2024/04/2094370530.png" alt="2024-04-04T11:36:10.png" title="2024-04-04T11:36:10.png"></p><p>这是自己创建的</p><p><img src="http://pic2.xwean.com/typecho/2024/04/1588898835.png" alt="2024-04-04T11:36:43.png" title="2024-04-04T11:36:43.png"></p><p>短语音 直接点击 语音合成  长的点击 长的<br><img src="http://pic2.xwean.com/typecho/2024/04/1249063767.png" alt="2024-04-04T11:37:39.png" title="2024-04-04T11:37:39.png"><br><img src="http://pic2.xwean.com/typecho/2024/04/38426158.png" alt="2024-04-04T11:38:06.png" title="2024-04-04T11:38:06.png"></p><p><strong>重要的</strong><br>1 音色购买，要是没有 就无法使用</p><p><img src="http://pic2.xwean.com/typecho/2024/04/3352164434.png" alt="2024-04-04T11:38:55.png" title="2024-04-04T11:38:55.png"></p><p>免费的直接全部开开！</p><p>完事以后<br><img src="http://pic2.xwean.com/typecho/2024/04/147942278.png" alt="2024-04-04T11:39:38.png" title="2024-04-04T11:39:38.png"></p><p>出现声音名称 和 编号</p><p>也就是这个地方</p><p><img src="http://pic2.xwean.com/typecho/2024/04/4008356056.png" alt="2024-04-04T11:40:23.png" title="2024-04-04T11:40:23.png"></p><p><strong>不过，第三版的已经整理完了，拿来就用  时间截止到2024年4月4日的所有免费声音</strong></p><p>开始填入</p><p><img src="http://pic2.xwean.com/typecho/2024/04/3341335238.png" alt="2024-04-04T11:42:04.png" title="2024-04-04T11:42:04.png"></p><p>然后就能合成了</p><p>其实长语言这地方没搞懂，没有<code>Cluster ID</code>估计是自动的吧，，，</p><p>教程到这里就结束了</p><p>封装</p><p><img src="http://pic2.xwean.com/typecho/2024/04/131198246.png" alt="2024-04-04T11:49:31.png" title="2024-04-04T11:49:31.png"></p><p><img src="http://pic2.xwean.com/typecho/2024/04/796490831.png" alt="2024-04-04T11:49:42.png" title="2024-04-04T11:49:42.png"></p><p><img src="http://pic2.xwean.com/typecho/2024/04/1894408045.png" alt="2024-04-04T11:49:55.png" title="2024-04-04T11:49:55.png"></p><p>封装的是第三版</p><p>链接：<a href="https://www.xwean.com/go/aHR0cHM6Ly9wYW4uYmFpZHUuY29tL3MvMXNGTV85V2YxVUdnSXh4Zm5EUExYSXc_cHdkPWt4cHA">https://pan.baidu.com/s/1sFM_9Wf1UGgIxxfnDPLXIw?pwd=kxpp</a> <br>提取码：kxpp </p><p>下载就能用</p><hr><hr><p>嫌麻烦？有付费版本的</p><p><a href="https://www.xwean.com/go/aHR0cHM6Ly9jb25zb2xlLnZvbGNlbmdpbmUuY29tL2FjY3Avd29ya3MtbWFuYWdlbWVudA">https://console.volcengine.com/accp/works-management</a><br><img src="http://pic2.xwean.com/typecho/2024/04/1415190890.png" alt="2024-04-04T11:51:58.png" title="2024-04-04T11:51:58.png"><br><img src="http://pic2.xwean.com/typecho/2024/04/3025563378.png" alt="2024-04-04T11:52:07.png" title="2024-04-04T11:52:07.png"><br><img src="http://pic2.xwean.com/typecho/2024/04/3040498913.png" alt="2024-04-04T11:52:15.png" title="2024-04-04T11:52:15.png"></p><p>这上面所有的声音都能用，需要什么看个人</p><p>可以对比一下 魔音 和 逗哥</p><p><strong>下课！</strong></p>
]]></content:encoded>
<slash:comments>1</slash:comments>
<comments>https://www.xwean.com/1976.html#comments</comments>
<wfw:commentRss>https://www.xwean.com/feed/%E7%9F%A5%E8%AF%86%E5%82%A8%E5%A4%87.html</wfw:commentRss>
</item>
</channel>
</rss>