摘要:
import subprocess import os import whisper import zhconv import json def time2ffmpeg_time(ti): h=int(ti//3600) ti%=3600 m=int(ti//60) ti%=60 s=int(ti) 阅读全文
摘要:
(特典代扣外壳改版本) 一:代扣各触点功能解释(以特典代扣改为例): 各触点编号(下同) 插卡识别————————————(1号脚) 组合/分离————————————(2号脚) 触发变身/必杀————————(3号脚) 功能键——————————————(4号脚) 台词键————————————— 阅读全文
摘要:
import wave import sys import json from vosk import Model, KaldiRecognizer, SetLogLevel # You can set log level to -1 to disable debug messages SetLog 阅读全文
摘要:
def download_file(url, filename): """将链接中的数据存储入文件中。 Args: url: 链接。 filename: 文件路径名。 Raises: KeyboardInterrupt: 用户按^C引发异常。 Exception: 发生异常。 """ if os.p 阅读全文
摘要:
寻找扬声器声音的可录制接口 import sounddevice as sd import wave import os devices=sd.query_devices() print(devices) for i in range(len(devices)): wf=wave.open(f'te 阅读全文
摘要:
2412201542 阅读全文
摘要:
DIM数据获取页 https://ruisan.blog.jp/b.html 教学原帖 https://ruisan.blog.jp/archives/9756028.html 以上为原文作者所贴,鉴于网络问题,价值不太大 bin数据获取:https://vbevo.wordpress.com/20 阅读全文
摘要:
import fitz # PyMuPDF import re from pathlib import Path from colorama import Fore import sys import os def search_pdf(pdf_path, format,keywords,conte 阅读全文
摘要:
def isIncrement(ls,guanxing=0.1): if len(ls)<2: return False o=0 score=0 cha=[ls[i+1]-ls[i] for i in range(len(ls)-1)] for i in range(len(cha)): if o* 阅读全文
摘要:
from functools import wraps import time class CacheManager: def __init__(self): self._cache = {} def get_cache_obj(self, key): """获取缓存对象""" return sel 阅读全文