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

网站如何不被百度搜到石家庄网络关键词推广

网站如何不被百度搜到,石家庄网络关键词推广,高端t恤定制网站,公司官网怎么注册流程时长比较短的音频#xff1a;https://huggingface.co/datasets/PolyAI/minds14/viewer/en-US 时长比较长的音频#xff1a;https://huggingface.co/datasets/librispeech_asr?row8 此次测试过程暂时只使用比较短的音频 使用fast_whisper测试 下载安装#xff0c;参考官方… 时长比较短的音频https://huggingface.co/datasets/PolyAI/minds14/viewer/en-US 时长比较长的音频https://huggingface.co/datasets/librispeech_asr?row8 此次测试过程暂时只使用比较短的音频 使用fast_whisper测试 下载安装参考官方网站即可 报错提示 Could not load library libcudnn_ops_infer.so.8. Error: libcudnn_ops_infer.so.8: cannot open shared object file: No such file or directory Please make sure libcudnn_ops_infer.so.8 is in your library path! 解决办法 找到有libcudnn_ops_infer.so.8 的路径在我的电脑中改文件所在的路径为 在终端导入  export LD_LIBRARY_PATH/opt/audio/venv/lib/python3.10/site-packages/nvidia/cudnn/lib:$LD_LIBRARY_PATH test_fast_whisper.py import subprocess import os import time import unittest import openpyxl from pydub import AudioSegment from datasets import load_datasetfrom faster_whisper import WhisperModelclass TestFastWhisper(unittest.TestCase):def setUp(self):passdef test_fastwhisper(self):# 替换为您的脚本路径# 设置HTTP代理os.environ[http_proxy] http://10.10.10.178:7890os.environ[HTTP_PROXY] http://10.10.10.178:7890# 不知道此处为什么不能生效必须要在终端中手动导入os.environ[LD_LIBRARY_PATH] /opt/audio/venv/lib/python3.10/site-packages/nvidia/cudnn/lib:$LD_LIBRARY_PATH# 设置HTTPS代理os.environ[https_proxy] http://10.10.10.178:7890os.environ[HTTPS_PROXY] http://10.10.10.178:7890print(load whisper)# 使用fast_whisper model_size large-v2# Run on GPU with FP16fast_whisper_model WhisperModel(model_size, devicecuda, compute_typefloat16)minds_14 load_dataset(PolyAI/minds14, en-US, splittrain) # for en-USworkbook openpyxl.Workbook()# 创建一个工作表worksheet workbook.active# 设置表头worksheet[A1] Audio Pathworksheet[B1] Audio Duration (seconds)worksheet[C1] Audio Size (MB)worksheet[D1] Correct Textworksheet[E1] Transcribed Textworksheet[F1] Cost Time (seconds)for index, each in enumerate(minds_14, start2):audioPath each[path]print(audioPath)# audioArray each[audio]audioDuration len(AudioSegment.from_file(audioPath))/1000audioSize os.path.getsize(audioPath)/ (1024 * 1024)CorrectText each[transcription]tran_start_time time.time()segments, info fast_whisper_model.transcribe(audioPath, beam_size5)segments list(segments) # The transcription will actually run here.print(Detected language %s with probability %f % (info.language, info.language_probability))text for segment in segments:text segment.textcost_time time.time() - tran_start_timeprint(Audio Path:, audioPath)print(Audio Duration (seconds):, audioDuration)print(Audio Size (MB):, audioSize)print(Correct Text:, CorrectText)print(Transcription Time (seconds):, cost_time)print(Transcribed Text:, text)worksheet[fA{index}] audioPathworksheet[fB{index}] audioDurationworksheet[fC{index}] audioSizeworksheet[fD{index}] CorrectTextworksheet[fE{index}] textworksheet[fF{index}] cost_time# breakworkbook.save(fast_whisper_output_data.xlsx)print(数据已保存到 fast_whisper_output_data.xlsx 文件)if __name__ __main__:unittest.main() 使用whisper测试 下载安装参考官方网站即可代码与上面代码类似 测试结果可视化 不太熟悉用numbers凑合着看一下就行 很明显fast_whisper速度要更快一些
http://www.huolong8.cn/news/102624/

相关文章:

  • 网站收录突然全部没有了欧派家居全屋定制价格多少钱一平
  • 广州企业网站seo定制开发公司
  • 做公司网站要钱吗济南如何挑选网站建设公司
  • 家具网站开发设计论文wordpress怎么降级
  • 淄博手机网站常熟滨江开发区人才网
  • 建站宝盒建站系统网站优化 前端怎么做
  • 网站设计项目总结网站开发主管岗位职责
  • 邯郸网站建设效果学校网站html模板
  • 取消网站备案时间素材网
  • 开普网站建设公司网站专题模板
  • 企业建网站程序凡科邮箱
  • 上海网站建设哪家公司好淘宝店采用哪些方法做网站推广
  • 龙岗 网站建设深圳信科成都网站建设 外包
  • 职业技能培训网站在什么网站上可以做免费广告
  • 做电影网站怎样赚钱wordpress aspnet_client
  • 网站建设错误代码50019网络建设与网站建设
  • 制作钓鱼网站的费用大连能做网站的公司有
  • 企业网站维护更新做ae动图的网站
  • 如何免费做网站并发布呼市做网站的公司
  • 自己做的网站把密码改忘了怎么办北京网站托管公司
  • 怎么做网站演示网站开发知识培训
  • 做网站插背景图片如何变大做网站的简称
  • 网站备案服务商网站建设和维护教程
  • 腾讯云快速建站做试卷的网站
  • 哪些网站适合推广陕西住房与建设厅网站
  • 网站建设前端需要看什么书微网站免费制作
  • 外贸网站设计注意事项网站用表格做的吗
  • 什么网站是免费的用华为云建立Wordpress网站
  • 企业网站开发模板下载动态发布网站和静态发布网站
  • 佛山网站建设推广订做手机主题 wordpress