手把手的运用Toolkit插件在诗情画意中完成AI诗朗诵
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">本文分享自华为云社区《<a style="color: black;">【云驻共创】手把手的<span style="color: black;">运用</span>Toolkit插件在诗情画意中完成AI诗朗诵-云社区-华为云</a>》,作者: 红目香薰。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">云原生时代,<span style="color: black;">研发</span>者们的编程方式、编程习惯都<span style="color: black;">出现</span>了天翻地覆的变化,<span style="color: black;">大众</span><span style="color: black;">逐步</span>地习惯在云端构建自己的应用。<span style="color: black;">做为</span>新一代的<span style="color: black;">研发</span>者们,<span style="color: black;">怎样</span>更快速<span style="color: black;">认识</span>云,学习云,<span style="color: black;">运用</span>云,更<span style="color: black;">方便</span>、更智能的<span style="color: black;">研发</span>代码,从而<span style="color: black;">提高</span><span style="color: black;">咱们</span>的<span style="color: black;">研发</span>效率,是当前最热门的<span style="color: black;">专题</span>之一,而Huawei Cloud Toolkit,<span style="color: black;">做为</span>连接华为云的百宝箱,是集成在各大IDE平台上的插件集合,会在方方面面<span style="color: black;">提高</span>着<span style="color: black;">研发</span>者的效率。</p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">插件介绍</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">本段落<span style="color: black;">重点</span>介绍华为云的以下三块内容:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">1、和云端<span style="color: black;">创立</span>链接——华为云API<span style="color: black;">研发</span>套件</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">2、<span style="color: black;">研发</span>更"智能"——华为云CodeArts Snap</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">3、<span style="color: black;">保护</span>代码质量与安全——华为云CodeArts Check</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">华为云API<span style="color: black;">研发</span>套件助力<span style="color: black;">研发</span>者快速集成华为云,可做到<span style="color: black;">方便</span>连接200+的华为云服务,引用7000+的华为云API服务,在IDE中集成华为云的功能,让<span style="color: black;">研发</span>者与云端华为云<span style="color: black;">创立</span>连接。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">智能编码方面集<span style="color: black;">成为了</span>华为云自主<span style="color: black;">开发</span>的代码大模型和软件分析技术,全场景函数级、行级代码生成,同规模算力一次<span style="color: black;">经过</span>业界<span style="color: black;">第1</span>,这会<span style="color: black;">帮忙</span><span style="color: black;">研发</span>者更为<span style="color: black;">有效</span>的<span style="color: black;">运用</span>自动语义生成,达到快速<span style="color: black;">研发</span>的目的,使<span style="color: black;">全部</span>过程更智能。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">代码质量与安全上华为云CodeArts Check插件<span style="color: black;">能够</span>做到<span style="color: black;">保护</span>代码的质量与安全,<span style="color: black;">帮忙</span><span style="color: black;">研发</span>者<span style="color: black;">精细</span>的实施代码<span style="color: black;">检测</span>,以及<span style="color: black;">供给</span>了代码的一键格式化、一键自动修复的功能,<span style="color: black;">能够</span><span style="color: black;">保证</span>编程规范的落地。IDE插件与云端服务构筑了三层代码防护体系。</p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">1、华为云API:云原生<span style="color: black;">研发</span>者<span style="color: black;">必须</span>的coding利器</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">华为云<span style="color: black;">经过</span>API<span style="color: black;">供给</span>服务全面开放能力,为<span style="color: black;">研发</span>者构建华为云应用和变现<span style="color: black;">基本</span>,是<span style="color: black;">研发</span>者核心关注的"生产要素"之一,各云服务<span style="color: black;">供给</span>SDK,<span style="color: black;">帮忙</span><span style="color: black;">研发</span>者快速集成API,面对海量的<span style="color: black;">各样</span>各样的<span style="color: black;">研发</span>者,华为云<span style="color: black;">供给</span>多种语言SDK应用到各行各业,面对各行各业海量诉求,<span style="color: black;">怎样</span>更快速、更<span style="color: black;">方便</span>地找到契合的API,并且快速集成到应用中,<span style="color: black;">作为</span><span style="color: black;">研发</span>者<span style="color: black;">提高</span><span style="color: black;">研发</span>效率的当务之急。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-axegupay5k/31b48c67d2654a0b9d22c96ae5d1c3ac~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=9cTJzPWeRca1GpqFI1IxYaYRgEk%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">华为云的OpenAPI<span style="color: black;">供给</span>了各类的<span style="color: black;">制品</span>服务,如计算类、存储类、人工智能类、运营类、应用中间件、管理与监管等等<span style="color: black;">许多</span>的功能品类的API服务<span style="color: black;">能够</span>让<span style="color: black;">咱们</span>快速的找到<span style="color: black;">咱们</span><span style="color: black;">必须</span>的<span style="color: black;">详细</span>需求来<span style="color: black;">处理</span><span style="color: black;">咱们</span>的各类问题。并且有着<span style="color: black;">海量</span>的错误码提示,加快<span style="color: black;">反常</span>问题的<span style="color: black;">处理</span>高速、<span style="color: black;">有效</span>的完成<span style="color: black;">咱们</span>的<span style="color: black;">研发</span>需求。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">能够</span>在人工智能的开放接口中看到,自然语言处理、人机对话、人脸识别、图像识别、<span style="color: black;">举荐</span>系统等等的功能<span style="color: black;">能够</span>更好的<span style="color: black;">经过</span>AI的形式<span style="color: black;">帮忙</span><span style="color: black;">咱们</span><span style="color: black;">加强</span>工作的效率。为开发者打造更好的应用云体验。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/8d0a01798fa64c39943b7cafa1141a63~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=e1lrCNYl2kLnvJ3TSRUogDpRhrI%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在API插件中,华为云<span style="color: black;">供给</span>了如下功能:</p>对接华为云API开放平台,全面覆盖华为云200+云服务、7000+API, 支持用户检索API、查看API文档、调试API、 以及<span style="color: black;">供给</span>SDK示例代码供用户学习<span style="color: black;">怎样</span><span style="color: black;">运用</span>API。<span style="color: black;">供给</span>华为云SDK代码片段补全功能,SDK依赖包自动引入,加速用户集成华为云API。对接华为云<span style="color: black;">研发</span>体验馆Codelabs, <span style="color: black;">供给</span>500+云服务代码示例,向导式教程<span style="color: black;">帮忙</span>用户快速学习。<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">华为云<span style="color: black;">供给</span>的API插件支持多IDE的平台,<span style="color: black;">能够</span>让<span style="color: black;">咱们</span><span style="color: black;">研发</span>更加得心应手,以及对应的热门<span style="color: black;">研发</span>语言代码的补全支持,下图<span style="color: black;">能够</span>看到<span style="color: black;">平常</span>的语言Java、Python、Go、JavaScript等语言都是支持的。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/88646365a782419a9b957daa67cb98bd~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=zGQwIOJggApPYI5Kzc7WaBoOTHo%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">例如<span style="color: black;">咱们</span>拿PyCharm Community Edition 举例,<span style="color: black;">能够</span>看到<span style="color: black;">咱们</span>点开插件安装的时候搜索Huawei就能看到华为的猪都插件都<span style="color: black;">能够</span>下载<span style="color: black;">运用</span>。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/e6abb145f0ce4e4483429c305973aa25~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=jXLK%2BFBpGPD16Q2%2B9pHV3ru4n04%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">这儿</span><span style="color: black;">咱们</span>看到<span style="color: black;">第1</span>个<span style="color: black;">便是</span>CodeArts Snap智能编程助手,接下来<span style="color: black;">咱们</span>就来介绍一下它吧。</p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">2、华为代码大模型的应用:华为云CodeArts Snap智能编程助手</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">沉淀华为自主<span style="color: black;">开发</span>代码大模型和软件分析技术,以IDE插件形式赋能<span style="color: black;">研发</span>者<span style="color: black;">有效</span>、可信<span style="color: black;">研发</span>,支持主流编程语言和IDE生态,大体分为JetBrains的IDE生态与Visual Studio的IDE生态,下图为两种生态工具的截图:</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/c7ee678e06c7484081454725d7586b78~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=dUGQWy9tZeMeNwGwbpv6N6WfWiw%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">华为云CodeArts Snap智能编程助手插件的核心价值特性有:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">1、全场景函数级、行级代码生成。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">2、支持中英文描述,<span style="color: black;">经过</span>自然语言一键生成完整函数级代码</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">3、同规模同算力一次<span style="color: black;">经过</span>率业界<span style="color: black;">第1</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">4、专业<span style="color: black;">研发</span>者编程量减少20%</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">协同华为云CodeArts软件<span style="color: black;">研发</span>平台服务政府、国央企、传统大企和互联网企业。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/f38c0c3ee84344368ba22cf378982d29~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=yr1VO5D%2BGLFpvGWmVgiLNef3vcM%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Snap在软件<span style="color: black;">开发</span>生产线起到非常重要的<span style="color: black;">功效</span>。</p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">3、华为云CodeArts Check IDE插件:实时<span style="color: black;">精细</span><span style="color: black;">保护</span>软件质量与安全</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">华为云Check插件,助力<span style="color: black;">研发</span>者实时<span style="color: black;">精细</span><span style="color: black;">检测</span>,在Check插件中,华为云<span style="color: black;">供给</span>了如下功能:</p>集成华为云Check云服务轻量级<span style="color: black;">检测</span>规则,<span style="color: black;">精细</span>覆盖质量类、风格类与安全类关键<span style="color: black;">检测</span>能力,与云服务共筑三层代码防护体系,兼顾效率与质量。<span style="color: black;">供给</span>丰富的过滤选项,支持用户分级<span style="color: black;">归类</span>查看规则,加速用户学习<span style="color: black;">认识</span>规则的<span style="color: black;">运用</span>。支持文件/文件夹/项目级扫描,<span style="color: black;">同期</span><span style="color: black;">供给</span>一键格式化能力及自动修复功能。<span style="color: black;">供给</span><span style="color: black;">仔细</span>的缺陷修复<span style="color: black;">指点</span>,<span style="color: black;">包含</span>缺陷描述信息,遵从规范,正确示例,错误示例,修改<span style="color: black;">意见</span>。兼容多平台: VSCodelDE、 Intellij IDEA、 CodeArts IDE; 并<span style="color: black;">供给</span>Java, C, C++ 3种语言的检测能力。<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">支持华为云CodeArts Check云服务构筑三级防护体系,<span style="color: black;">有效</span>开展代码<span style="color: black;">检测</span>活动。</p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">Huawei Cloud Toolkit初体验</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">体验<span style="color: black;">位置</span>:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">https://developer.huaweicloud.com/develop/toolkit.html?utm_source=hw_zz&ticket=</p>ST-8951111-XM1Xi9kdd7fzZxXe4NwquHSE-sso&locale=zh-cn
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/03b2fe7a097347aeb51482f769975b35~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=8hFEArLfz9N1gGECUOuuoMovGfw%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">迈向云原生之路:华为云Toolkit实战</h1>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">实战一Huawei Cloud API:</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">研发</span>者在IntelliJ IDEA上,基于华为云NLP自然语言处理服务API实现一个AI作诗的应用。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">1、</span>准备工作</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">环境搭建:下载安装IntelliJ IDEA,配置好maven、JDK等环境</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">插件安装:文件-> 设置->插件,下载安装Huawei Cloud API插件</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">2、</span><span style="color: black;">重点</span>流程:</strong></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/7b9a925b2b6a4e888c74518141657c20~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=h9oNfL03AsboeHkWAsJyL0cS6WQ%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">1.选:打开Huawei Cloud API插件,<span style="color: black;">选取</span>"人工智能"->"自然语言处理" ->"语言生成服务"-> "RunPoem (诗歌生成)"</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">2.学:仔细查看接口详情,<span style="color: black;">包含</span>输入参数和输出模型定义,以及SDK示例代码</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">3.写:在业务代码<span style="color: black;">必须</span>调用AP|的<span style="color: black;">地区</span>,直接输入RunPoem, IDE会自动补全调用代码,<span style="color: black;">亦</span>将依赖SDK包导入至工程</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">4.Debug:调试写好的代码,查看API返回结果<span style="color: black;">是不是</span>符合预期</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">扩展内容:<span style="color: black;">大众</span><span style="color: black;">能够</span><span style="color: black;">选取</span>插件中展示的其他有意思的API进行调试<span style="color: black;">研发</span>,<span style="color: black;">例如</span>人脸识别、文字识别、图像识别服务的API等等, <span style="color: black;">包含</span>且不限于:<span style="color: black;">能够</span><span style="color: black;">运用</span>自然语言处理服务的AP|来判断一段文本的情感表达; <span style="color: black;">运用</span>人脸识别服务的API进行人脸比对,人脸检测;<span style="color: black;">运用</span>文字识别,服务的API进行证件<span style="color: black;">照片</span>文字扫描提取;<span style="color: black;">运用</span>图像识别服务的API分析并识别<span style="color: black;">照片</span>中<span style="color: black;">包括</span>的政治<span style="color: black;">名人</span>、明星及网红<span style="color: black;">名人</span>。</p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">实战一操作过程</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">首要</span><span style="color: black;">必须</span>先在插件商店安装华为云的Cloud API插件,点击【Install】安装<span style="color: black;">就可</span>,安装完毕<span style="color: black;">必须</span>重新<span style="color: black;">起步</span>计算机。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/ba365a09870d486192e03fc1abb8aef7~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=17ASVlqCrNla98A60Fih6U%2BlCrQ%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">安装完毕后<span style="color: black;">能够</span>看到华为的标识:</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/f51e4d4950364f0e84afd86b80e1bc90~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=ZJXor1M1JGjIw0Os1Nl3eoTVxhU%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">必须</span>登录账号:</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/f557c2f0ef9e4591b473680ebaf5abf2~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=hU%2B26szO0y5H%2F4k0tJNXK9JVirw%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">登录成果效果:</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/e77bbb780cec4a52a1bdbfa71f37e822~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=kyFVbKeiXG%2BxGpWCli5KemQ6HCY%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">为了演示方便,<span style="color: black;">咱们</span>下载一个中文插件:</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/3b2ec51c045040d3bf698d160c40f40d~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=o%2B6tKgChBnyQRWpnlNnqoSIUsds%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">这回看着中文演示方便多了。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/6ac703f8bf8b404d9932273324e0a2dd~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=sLrdZN5%2BuZ0oD%2BEabnRZsZ2Z8Xs%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">咱们</span><span style="color: black;">运用</span>诗歌生成的API:</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/bfd1bcce043d4c59876a886dbcf24234~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=ZFaJoVXI%2Bkpm1%2Bdw%2FbPhEmw5sqI%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">为了操作方便,<span style="color: black;">咱们</span><span style="color: black;">选取</span>Python语言来测试。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/48d566c2d14d466b8441996a2b8d1abc~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=ThkXPRYmnM%2BNOGQEIhTe8su4dMg%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">复制代码后直接引入到编辑文件中,<span style="color: black;">这儿</span>能看到有<span style="color: black;">无</span>的库<span style="color: black;">必须</span><span style="color: black;">咱们</span>单独引入。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">调用前<span style="color: black;">必须</span>开通服务:</p>https://console.huaweicloud.com/nlp/#/nlp/overview
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/7c43122d5e0c448f8fc3a2d9e4f4a6eb~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=42gLXYUcexoJi9pwDgY%2BPuWn1mU%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">开通成功提示:</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/392094e0a562439a8f410e746bb7c308~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=hLPjD1lIo8rHR4eJd0O7Z9Aq8Ak%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">调试效果:</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/ed8edda410df491682c7d1880ae65606~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=m%2BI0rBwLycVqaNeP4IQUnehLPaM%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">再来一次:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">"红目香薰",</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">"红心不作小桃粧,",</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">"笑倚东风百媚香。",</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">"若使落花深见妒,",</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">"一朝应怨夕阳长。"</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">代码测试,<span style="color: black;">这儿</span>少什么包直接pip安装什么包就OK了,国内的华为镜像,超级块。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/fd22d6aa18b249709d125bdd767f75f6~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=dNgkGCfUHRFcxEmLXFDRjCJA92s%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">不报错后<span style="color: black;">必须</span>单独的签名一下:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">签名<span style="color: black;">位置</span>:</p>https://support.huaweicloud.com/devg-apisign/api-sign-provide.html
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/10261a4badfa4bb280c83eeafa5b720a~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=SAHp7ZfYEyJAYi%2Bwpp2lyXS9qz0%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">我的凭证</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/26d61a85b441435ba3666f59f1930fe0~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=CTnz5RuuFcRdAgSVCht9YmvXIEY%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">添加秘钥</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/20e6ff2482614da3a15c24efaa481cf0~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=e49m7FeDkVr%2Fehc%2BrGUt7vH57eg%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">能够</span>看到已开通</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/83cf17c3f2304c41912b7a692d687ec3~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=b9ddoA2304RQv866PnTYNjal05w%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">有了对应的AK/SK就能<span style="color: black;">拜访</span>了,运行成功效果:</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p26-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/7c97ffce51f54bbf913988478bd0279f~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=hBiyy4tvexf5pwz85K8tj%2BKtBTg%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">到<span style="color: black;">这儿</span>呢,<span style="color: black;">第1</span>个实战就结束了,后面的实战对应的开通以及AK/SK获取与这个操作<span style="color: black;">过程</span>相同。</p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">实战二CodeArts Snap:</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">主题说明:<span style="color: black;">研发</span>者在IntellijJ IDEA上,基于华为云CodeArts Snap智能编程助手实现一个语音合成的应用</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">1、</span>准备工作</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">环境搭建:下载安装IntelliJ IDEA,配置好maven、JDK等环境</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">插件安装:文件-> 设置->插件,下载安装Huawei Cloud CodeArts Snap插件</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">2、</span><span style="color: black;">重点</span>流程:</strong></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/821b537fc03d4f34a1f6fd12de13f447~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=EQW62JDn%2BNbUv8KvkcfGBECEZUs%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">1.搜:打开Huawei Cloud API插件,搜素关键字"语音合成"</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">2.选:找到由SIS云服务<span style="color: black;">供给</span>一个语音合成接口RunTts, 查看接口功能描述,确认是想要的</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">3.学:仔细查看接口详情,<span style="color: black;">包含</span>输入参数和输出模型定义</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">4.用:输入参数,<span style="color: black;">运用</span>API插件的在线调试能力,查看接口返回值</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">5.写:<span style="color: black;">运用</span>Huawei Cloud CodeArts Snap插件,输入想要实现的<span style="color: black;">规律</span><span style="color: black;">做为</span>注释,快捷键Alt +C,<span style="color: black;">选取</span>想要生成的代码</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">6.Debug:调试写好的代码,完成语音合成应用</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">扩展内容:<span style="color: black;">大众</span><span style="color: black;">能够</span><span style="color: black;">选取</span>插件中展示的其他有意思的API进行调试<span style="color: black;">研发</span>,<span style="color: black;">同期</span><span style="color: black;">亦</span><span style="color: black;">能够</span>在自己的代码工程中<span style="color: black;">运用</span>CodeArts Snap插件,<span style="color: black;">包含</span>且不限于直接ALT+C/Enter<span style="color: black;">按照</span>上下文智能生成代码;输入注释,按ALT+C/Enter生成<span style="color: black;">按照</span>注释内容和上 下文智能生成代码。</p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">实战二操作过程</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">先安装插件啊,安装完成<span style="color: black;">能够</span>看到右侧菜单栏中就有了CodeArts Snap插件了。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/3c81b5a9a1454023afdcf495a4f36b2d~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=QWPNM%2FGWAeX0RNVfL8r%2FnOvljf0%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">找到对应的语音合成接口。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/00b95933382c4a8bb0a0a564267cf8e7~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=nfzkMYQt%2FHfy29mwUEsvzOb08k0%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">API操作:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">这儿</span>要写上text,<span style="color: black;">亦</span><span style="color: black;">便是</span><span style="color: black;">必须</span>合成的文本内容,下面的选项是生成文件的格式,采样率以及<span style="color: black;">运用</span>的语音音色。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/9788d2865ee043ff940fa7e1885ba832~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=dc56GEoBTdytQpYu2npY%2B7cZYew%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">调试测试成功。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/a7959684e2b1482082e06cee151bf2af~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=w4EB2n6PTxjrBLukyUdtXS6M11E%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">运行后<span style="color: black;">能够</span>正常播放:</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/3017e8183e4e42f595160ce9b6e088d7~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=eiQlWqSoMsDutwzA%2Bud33zH9NCI%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">源码留在<span style="color: black;">这儿</span>,我写了将base64字符串解码为字节流的函数。</p># coding: utf-<span style="color: black;">8</span> <span style="color: black;">import</span> base64 from huaweicloudsdkcore.auth.credentials <span style="color: black;">import</span>BasicCredentials from huaweicloudsdksis.v1.region.sis_region<span style="color: black;">import</span> SisRegion from huaweicloudsdkcore.exceptions <span style="color: black;">import</span> exceptions from huaweicloudsdksis.v1 <span style="color: black;">import</span> * def base64_to_file(base64_string, file_path): # 将base64字符串解码为字节流 decoded_bytes = base64.b64decode(base64_string) # 将字节流写入文件 with <span style="color: black;">open</span>(file_path, <span style="color: black;">wb</span>)<span style="color: black;">as</span> file: file.write(decoded_bytes) <span style="color: black;">if</span> __name__ == <span style="color: black;">"__main__"</span>: # The AK and SK used <span style="color: black;">for</span> authentication are hard-coded or stored <span style="color: black;">in</span>plaintext, which has great security risks. It<span style="color: black;">is</span> recommended that the AK and SK be stored <span style="color: black;">in</span> ciphertext <span style="color: black;">in</span>configuration files or environment variables and decrypted during use to ensure security. # In<span style="color: black;">this</span> example, AK and SK are stored <span style="color: black;">in</span> environment variables <span style="color: black;">for</span> authentication. Before running <span style="color: black;">this</span> example, <span style="color: black;">set</span>environment variables CLOUD_SDK_AK and CLOUD_SDK_SK<span style="color: black;">in</span> the local environment ak = <span style="color: black;">"OPZYI*******4"</span> sk = <span style="color: black;">"t7XDJTV8MeOf***************34yh4OVdI"</span> projectId = <span style="color: black;">"e10b8f0d1e59477cb65ab1c6ad1d6eac"</span>credentials = BasicCredentials(ak, sk, projectId) client = SisClient.new_builder() \ .with_credentials(credentials) \ .with_region(SisRegion.value_of(<span style="color: black;">"cn-east-3"</span>)) \ .build() <span style="color: black;">try</span>: request = RunTtsRequest() configbody = TtsConfig( audio_format=<span style="color: black;">"mp3"</span>, sample_rate=<span style="color: black;">"16000"</span>, _property=<span style="color: black;">"chinese_xiaoyan_common"</span> ) request.body = PostCustomTTSReq( config=configbody, text=<span style="color: black;">"期待新的一年您更继续创造<span style="color: black;">更加多</span>的价值——红目香薰·留"</span>) response = client.run_tts(request) # 将base64转换成文件 print(response.result.<span style="color: black;">data</span>) base64_to_file(response.result.<span style="color: black;">data</span>, <span style="color: black;">"a.mp3"</span>) except exceptions.ClientRequestException <span style="color: black;">as</span>e: print(e.status_code) print(e.request_id) print(e.error_code) print(e.error_msg)<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">字打错了,<span style="color: black;">然则</span>直接生<span style="color: black;">成为了</span>。能证明一点,肯定是<span style="color: black;">刚才</span>生成的。<span style="color: black;">咱们</span>最后来<span style="color: black;">按照</span>实战<span style="color: black;">一辈子</span>成的诗句来朗读一下,到<span style="color: black;">这儿</span>实验二又结束了。</p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">实战三CodeArts Check:</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">主题说明:<span style="color: black;">研发</span>者在IntelliJ IDEA上,基于华为云CodeArts Check进行代码<span style="color: black;">检测</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">1、</span>准备工作</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">环境搭建:下载安装IntelliJ IDEA,配置好maven、JDK等环境</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">插件安装:文件-> 设置->插件,下载安装Huawei Cloud CodeArts Check插件</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">2、</span><span style="color: black;">重点</span>流程:</strong></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/e2c6ea506eb04022b845000e04c3806f~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=d7asPFqPvV7zHF9A%2F2rjGxexX1s%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">1.用:打开<span style="color: black;">目的</span><span style="color: black;">检测</span>代码文件,鼠标右键呼出菜单,点击"CodeArts Check文件<span style="color: black;">检测</span>"。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">2.学:侧边栏点击"CodeArts Check"打开窗口,查看文件代码问题<span style="color: black;">检测</span>结果。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3.写:点击问题查看规则详情,<span style="color: black;">根据</span>说明修改代码,写出安全、简洁、规范的代码。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">扩展内容:<span style="color: black;">大众</span><span style="color: black;">能够</span>在设置窗口自定义代码<span style="color: black;">检测</span>规范,<span style="color: black;">日前</span>支持C++&Java;插件支持文件<span style="color: black;">检测</span>、项目<span style="color: black;">检测</span>、格式化,<span style="color: black;">亦</span><span style="color: black;">能够</span>指定目录进行<span style="color: black;">检测</span></p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">实战三操作过程</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">先安装CodeArts Check插件</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/05d4417090d5440faa819ec8513c6b45~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=Pmkv0AjewEEAzc4%2BLb9Z79tLr1M%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">安装完毕还是<span style="color: black;">必须</span>重启的。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/32ff9f3770f742d2926b8b72b8484934~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=VYHGchjvmHU17LL3EYEdMFNjxLM%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">运用</span><span style="color: black;">检测</span>实战一二的代码。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/3d4af2fc12e9476aa9a3673c0075dd37~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=KNNWevVlhLRj1Tdig5Cc3dvOTOM%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">点击就<span style="color: black;">能够</span>操作,<span style="color: black;">或</span>鼠标右键<span style="color: black;">选取</span>文件<span style="color: black;">检测</span>,<span style="color: black;">咱们</span>更换一个代码测试一下,<span style="color: black;">发掘</span><span style="color: black;">已然</span>找到其中的优化<span style="color: black;">方法</span>了。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/1c05abfeff314cc88ce3cc7f0bfe4105~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=fkaTNay8hhWOpcqmN5Yle0kAgh8%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">这儿</span>报的是代码规范:</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/db4dd9b35534427b93d280114e32e918~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723947983&x-signature=ca7wsdYawf%2FrllI3snSFKmau8ko%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">至此,<span style="color: black;">咱们</span>第三个实战又结束了。</p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">总结</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">咱们</span>在整篇<span style="color: black;">文案</span>中<span style="color: black;">认识</span>了华为云的<span style="color: black;">许多</span>插件以及API接口的<span style="color: black;">运用</span>,并且结合实战一与实战二将AI生成的诗词进行了朗读的操作,在<span style="color: black;">文案</span>中<span style="color: black;">亦</span>穿插了音频,<span style="color: black;">能够</span>试听一下。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">咱们</span><span style="color: black;">经过</span>华为云插件的<span style="color: black;">运用</span><span style="color: black;">能够</span>大大的<span style="color: black;">加强</span>工作以及<span style="color: black;">研发</span>的效率,并且<span style="color: black;">咱们</span>在华为云所<span style="color: black;">供给</span>的接口中<span style="color: black;">能够</span>看到<span style="color: black;">许多</span>的<span style="color: black;">归类</span>与功能,<span style="color: black;">非常多</span>功能都能拿过来直接<span style="color: black;">运用</span>,方便<span style="color: black;">咱们</span>的工作,当<span style="color: black;">咱们</span>把华为云所<span style="color: black;">供给</span>的API<span style="color: black;">运用</span><span style="color: black;">熟悉</span>后相信<span style="color: black;">必定</span>会为您带来<span style="color: black;">非常多</span>意想不到的价值。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">关注<a style="color: black;">#华为云<span style="color: black;">研发</span>者联盟#</a> 点击下方,<span style="color: black;">第1</span>时间<span style="color: black;">认识</span>华为云<span style="color: black;">鲜嫩</span>技术~</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><a style="color: black;">华为云博客_大数据博客_AI博客_云计算博客_<span style="color: black;">研发</span>者中心-华为云</a></p>
回顾历史,我们不难发现:无数先辈用鲜血和生命铺就了中华民族复兴的康庄大道。 你的话语如春风拂面,让我感到无比温暖。 楼主发的这篇帖子,我觉得非常有道理。 论坛的成功是建立在我们诚恳、务实、高效、创新和团结合作基础上,我们要把这种精神传递下去。
页:
[1]