4 Star 79 Fork 19

o3sky/o3sky-vtai-bi100

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
testSenseVoiceapi2.py 815 Bytes
一键复制 编辑 原始数据 按行查看 历史
# import requests
#
# url = "http://localhost:8001/transcribes"
#
# audio_input = {
# "file_path": "E:\\娱乐\\音频\\无心出来过的声音\\无心声音去噪.WAV",
# "device": "cuda:0",
# "model_dir": "D:\\develop\\code\\o3sky-vtai-bi100\\model\\SenseVoiceSmall",
# "vad_model": "fsmn-vad"
# }
#
# response = requests.get(url, json=audio_input)
#
# if response.status_code == 200:
# results = response.json()
# # 输出结果
# for result in results:
# print(f"Start: {result['start']} s, End: {result['end']} s, Text: {result['text']}")
# else:
# print("Error:", response.status_code, response.text)
import os
file_path = r"D:\develop\code\o3sky-vtai-bi100\project\cache\2024-09-13 15-52-00\uploaded.mp4"
directory = os.path.dirname(file_path)
print(directory)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/o3sky/o3sky-vtai-bi100.git
[email protected]:o3sky/o3sky-vtai-bi100.git
o3sky
o3sky-vtai-bi100
o3sky-vtai-bi100
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385