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

网站制作定制毕业做网站运营好吗

网站制作定制,毕业做网站运营好吗,智能建造的发展趋势,哈尔滨网站开发方案我想添加一个错误处理程序#xff0c;它可以在出现internet连接问题时停止转录过程。我创建了一个连接监视器线程#xff0c;每隔几秒钟检查一次internet连接#xff0c;并将设置一个标志isConnectionError True。在我设法停止音频录制生成器进程#xff0c;但无法停止另一…我想添加一个错误处理程序它可以在出现internet连接问题时停止转录过程。我创建了一个连接监视器线程每隔几秒钟检查一次internet连接并将设置一个标志isConnectionError True。在我设法停止音频录制生成器进程但无法停止另一个阻止并等待服务器发送响应消息的生成器进程def listen_print_loop(responses):Iterates through server responses and prints them.The responses passed is a generator that will block until a responseis provided by the server.Each response may contain multiple results, and each result may containmultiple alternatives; for details, see . Here weprint only the transcription for the top alternative of the top result.In this case, responses are provided for interim results as well. If theresponse is an interim one, print a line feed at the end of it, to allowthe next result to overwrite it, until the response is a final one. For thefinal one, print a newline to preserve the finalized transcription.num_chars_printed 0for response in responses:if not response.results:continue# The results list is consecutive. For streaming, we only care about# the first result being considered, since once its is_final, it# moves on to considering the next utterance.result response.results[0]if not result.alternatives:continue# Display the transcription of the top alternative.transcript result.alternatives[0].transcript# Display interim results, but with a carriage return at the end of the# line, so subsequent lines will overwrite them.## If the previous result was longer than this one, we need to print# some extra spaces to overwrite the previous resultoverwrite_chars * (num_chars_printed - len(transcript))if not result.is_final:sys.stdout.write(transcript overwrite_chars \r)sys.stdout.flush()num_chars_printed len(transcript)else:print(transcript overwrite_chars)# Exit recognition if any of the transcribed phrases could be# one of our keywords.if re.search(r\b(exit|quit)\b, transcript, re.I):print(Exiting..)breaknum_chars_printed 0
http://www.zqtcl.cn/news/279550/

相关文章:

  • 大型门户网站开发北京网站建设管庄
  • 大连建设工程网站网站建设组织管理怎么写
  • wordpress英文站注册域名需要注意什么
  • 营销型网站的建设重点是什么深圳logo设计公司排名
  • 做网站的用什么软件呢网站排名优化服务公司
  • 网站开发完整视频网站集约化建设较好的城市
  • 网站建设和平面设计应用网站如何做
  • 自己做网站需要多少费用asa8.4 做网站映射
  • 商业网站 模板黑龙江省建设厅安全员考试
  • 网站新备案不能访问室内装修网站模板
  • 工程师报考网站wordpress设置视频图片不显示图片
  • 徐州网站建设公司排名成都住建平台
  • 用来备案企业网站国外免费外贸网站
  • 网页背景做的比较好的网站做一个企业网站价格
  • 免费制图网站县级门户网站建设的报告
  • 北京网站建设网怎么用手机做一个网站
  • 网站建设管理办法关于公司门户网站建设的议案
  • 网站开发入职转正申请书体验好的网站
  • 在线精品课程网站开发网站备案号怎么修改
  • 网站建设 风险百度热搜的含义
  • 怎样创作网站公司做网站 要准备哪些素材
  • 网站上的平面海报怎么做南阳企业做网站
  • 佛山公众平台网站推广多少钱wordpress如何调用分类目录
  • 网站推广应该注意什么信息发布平台推广
  • 官方网站案例做网站私活在哪接
  • 做网站滨州wordpress 不同域名
  • 找人做设计的网站广州做网站(信科网络)
  • 如何选择网站做站方向青之峰网站建设
  • 福州哪家网站制作设计高端还实惠设计logo的理念
  • 吉林市网站建设促销式软文案例