直接上手吧。
1. 小程序后台添加插件:微信同声传译以及在app.json进行配置
具体可看另外一篇博客:https://blog.csdn.net/qq_41638795/article/details/98080498
2. 代码实现
页面如下:
21. wxml代码如下:
<view class="yuyinWrap">
<textarea class='yuyinCon' placeholder='请输入内容' value='{
{content}}' bindinput='conInput'></textarea>
<view class=''>
<button class="yuyinBtn start" bindtap='wordYun'>开始</button>
<button class="yuyinBtn" bindtap='end'>结束</button>
</view>
</view>
wcss代码如下:
.yuyinWrap {
position: relative;
margin-top:300rpx;
}
.yuyinCon {
border: 1px solid #ccc;
marg