This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FastAPI 标准项目模板文档 | |
## 1. 项目概述 | |
本项目是一个基于 FastAPI 的标准 Web 应用模板,采用分层架构设计,包含完整的认证系统、数据库操作、定时任务等功能模块。该模板旨在为新项目提供一个标准化的起点,减少重复工作,提高开发效率。 | |
### 1.1 技术栈 | |
- **核心框架**: FastAPI | |
- **ASGI 服务器**: Uvicorn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 微信公众号HTML手动清理与插入剪贴板内容 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.3 | |
// @description 在微信公众号页面添加按钮,手动清除或插入剪贴板内容到指定路径 | |
// @author Xsir | |
// @match *://mp.weixin.qq.com/cgi-bin/appmsg* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Required packages: | |
# pip install SpeechRecognition mlx-whisper pyaudio | |
# Note: This script requires Apple Silicon Mac for MLX Whisper | |
import speech_recognition as sr | |
import numpy as np | |
import mlx_whisper | |
r = sr.Recognizer() | |
mic = sr.Microphone(sample_rate=16000) |