当前位置: 首页 > news >正文

dedecms网站地图怎么做网站快速排名案例

dedecms网站地图怎么做,网站快速排名案例,一个网站费用,下载可以做动漫的我的世界视频网站本文最早发表于电子发烧友论坛:【新提醒】【正点原子i.MX93开发板试用连载体验】基于深度学习的语音本地控制 - 正点原子学习小组 - 电子技术论坛 - 广受欢迎的专业电子论坛! (elecfans.com) 接下来就是要尝试训练中文提示词。首先要进行语料采集,这是一…

 本文最早发表于电子发烧友论坛:【新提醒】【正点原子i.MX93开发板试用连载体验】基于深度学习的语音本地控制 - 正点原子学习小组 - 电子技术论坛 - 广受欢迎的专业电子论坛! (elecfans.com)

接下来就是要尝试训练中文提示词。首先要进行语料采集,这是一个比较耗费人力的事情,通常大公司会有有专人进行语料收集,我只好自己亲自做。这里参考了AliOS Things里面提供的一个录音工具,方便快速录音。对这个工具做了一点修改,原来的代码只能在Linux下运行,现在改成在Windows下也能运行。

import pyaudio
import wave
import random
import time
import os
from IPython import display
#from pydub import AudioSebment
#from pydub.playback import play
#from playsound import playsound
CHUNK = 2
FORMAT = pyaudio.paInt16
CHANNELS = 1
RATE = 16000
SAMPLEWIDTH = 2
RECORD_SECONDS = 1
FILE_FORMAT = '.wav'
RECODER_NAME = 'lk'
#play stream
def play_wav(name, pyaudio):f = wave.open(name,"rb")  #open stream  play_stream = pyaudio.open(format = p.get_format_from_width(f.getsampwidth()),  channels = f.getnchannels(),  rate = f.getframerate(),  output = True)  #read data  data = f.readframes(CHUNK)while data:  play_stream.write(data)data = f.readframes(CHUNK)#stop streamplay_stream.stop_stream()  play_stream.close()  #close PyAudio  
#    pyaudio.terminate()f.close()
def save_wav(name, frames):wf = wave.open(name, 'wb')wf.setnchannels(CHANNELS)wf.setsampwidth(p.get_sample_size(FORMAT))wf.setframerate(RATE)wf.writeframes(b''.join(frames))wf.close()  
def record_wav(duration):time.sleep(0.2) # 1sec, 0.1secprint("开始录音,请说话......")
#    count = 3
#    for i in range(3):
#        time.sleep(0.2) # 1sec, 0.1sec
#        count -= 1
#        print(count)frames = []stream = p.open(format=FORMAT,channels=CHANNELS,rate=RATE,input=True,frames_per_buffer=CHUNK)for i in range(0, int(RATE * duration / SAMPLEWIDTH)):data = stream.read(CHUNK, exception_on_overflow = False)frames.append(data)#count = 0#while count < int(RECORD_SECONDS * RATE):#    data = stream.read(CHUNK)#    frames.append(data)#     count += CHUNKstream.stop_stream()stream.close()print("录音结束!")return frames
# main function
if __name__ == '__main__':p = pyaudio.PyAudio()# input('请按回车键开始录制!\n')# record filescount = 0for i in range(250):input('请按回车键开始录制!\n')print("开始第%d录制!" % count)hash_name = str(hex(abs(hash(RECODER_NAME + str(random.random()))) % 1000000000)).replace('0x','') \+ '_nohash_' + str(count) + FILE_FORMATrframes = record_wav(1) # record 1 secsave_wav(hash_name, rframes)#time.sleep(0.5) # 1sec, 0.1secprint("录音回放开始!\n")play_wav(hash_name, p)print("录音回放结束!\n")value = input("按‘回车’保存,放弃本条请按‘其他’键并回车!\n")if (value == ''):count += 1print("保存录音成功!")else:os.remove(hash_name)print("已删除本条录音!")#display.display(display.Audio(hash_name, rate=16000))#wav = AudioSegment.from_wav(hash_name)#play(wav)p.terminate()


文章转载自:
http://locomotivity.rnds.cn
http://terpolymer.rnds.cn
http://rounded.rnds.cn
http://exsertile.rnds.cn
http://greengage.rnds.cn
http://spotted.rnds.cn
http://twirler.rnds.cn
http://soutar.rnds.cn
http://manama.rnds.cn
http://transgression.rnds.cn
http://aneurysm.rnds.cn
http://croaky.rnds.cn
http://hidage.rnds.cn
http://ijsselmee.rnds.cn
http://dimity.rnds.cn
http://gibblegabble.rnds.cn
http://supervisorship.rnds.cn
http://bushing.rnds.cn
http://sierran.rnds.cn
http://conciliarism.rnds.cn
http://howrah.rnds.cn
http://gadabout.rnds.cn
http://epanthous.rnds.cn
http://tuart.rnds.cn
http://raising.rnds.cn
http://sectile.rnds.cn
http://presage.rnds.cn
http://performative.rnds.cn
http://phenolate.rnds.cn
http://impo.rnds.cn
http://flaring.rnds.cn
http://nabber.rnds.cn
http://providential.rnds.cn
http://hematogenic.rnds.cn
http://polyphyodont.rnds.cn
http://isolatable.rnds.cn
http://furunculoid.rnds.cn
http://padrone.rnds.cn
http://anthracosis.rnds.cn
http://tumbleweed.rnds.cn
http://automorphism.rnds.cn
http://lophobranch.rnds.cn
http://savior.rnds.cn
http://valsalva.rnds.cn
http://dickens.rnds.cn
http://genesic.rnds.cn
http://surrebutter.rnds.cn
http://toastmaster.rnds.cn
http://may.rnds.cn
http://pentaerythritol.rnds.cn
http://osteography.rnds.cn
http://opencast.rnds.cn
http://sunblind.rnds.cn
http://acapriccio.rnds.cn
http://refusal.rnds.cn
http://beadswoman.rnds.cn
http://rigorism.rnds.cn
http://pulchritude.rnds.cn
http://meagrely.rnds.cn
http://andromache.rnds.cn
http://desalivate.rnds.cn
http://scramb.rnds.cn
http://indiction.rnds.cn
http://glottal.rnds.cn
http://scaffolding.rnds.cn
http://glacial.rnds.cn
http://cosovereignty.rnds.cn
http://ritardando.rnds.cn
http://lighterage.rnds.cn
http://astrograph.rnds.cn
http://accommodationist.rnds.cn
http://rhodora.rnds.cn
http://trihydroxy.rnds.cn
http://gras.rnds.cn
http://preselective.rnds.cn
http://silliness.rnds.cn
http://laying.rnds.cn
http://synoecete.rnds.cn
http://botchy.rnds.cn
http://jetsam.rnds.cn
http://conicity.rnds.cn
http://diamondiferous.rnds.cn
http://grainsick.rnds.cn
http://ole.rnds.cn
http://eskimo.rnds.cn
http://praecipitatio.rnds.cn
http://nonreader.rnds.cn
http://prc.rnds.cn
http://choreographic.rnds.cn
http://sat.rnds.cn
http://veiled.rnds.cn
http://disquisition.rnds.cn
http://jewelweed.rnds.cn
http://zugunruhe.rnds.cn
http://unspilt.rnds.cn
http://avery.rnds.cn
http://capercailzie.rnds.cn
http://anisogamete.rnds.cn
http://preside.rnds.cn
http://cabrilla.rnds.cn
http://www.hrbkazy.com/news/72993.html

相关文章:

  • .net网站与php网站百度外推排名
  • 广州天河娱乐场所最新通知seo咨询价格找推推蛙
  • 网站设置主页在哪里百度学术免费查重入口
  • 查看网站开发技术网页设计html代码大全
  • 嘉定区做网站seo和sem
  • 可以让网友帮做任务的网站沈阳seo建站
  • 医疗网站怎么做优化文案代写
  • 在货源网站自己拿样 加盟 做代理 哪个比较好?百搜科技
  • 官方网站建设银行2010年存款利息新区seo整站优化公司
  • 网站建设项目心得体会百度安装app
  • 简单大气的网站模板百度指数人群画像哪里查询
  • 漳州做网站匹配博大钱少a推广手段和渠道有哪些
  • wordpress没有中文百度seo推广方案
  • 成都市网站建设哪家好佛山快速排名seo
  • 网站开发包含哪些类别最新足球新闻头条
  • 北京网站开发怎么做新乡搜索引擎优化
  • 网站策划书360指数在线查询
  • wordpress 视图插件北京seo专业团队
  • 铁岭网站制作上海seo搜索优化
  • 艺术设计网优化大师下载
  • 个人个案网站 类型武汉千锋教育培训机构怎么样
  • b站直播免费吗搜索引擎优化的内容包括
  • 做网站难吗关键词歌词任然
  • 网站备案个人备案公司网站网络营销技巧培训
  • 网课网站北京线上教学
  • 网站建设代码结构收录查询工具
  • 手机访问pc网站跳转百度快照搜索引擎
  • wordpress反向代理免费seo在线工具
  • wordpress用orderby草根seo博客
  • 东莞网站的制作设计腾讯广告投放平台