# Singlemodal_Application **Repository Path**: bllose/singlemodal_application ## Basic Information - **Project Name**: Singlemodal_Application - **Description**: 单模态应用 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-06 - **Last Updated**: 2025-11-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Buzz [Buzz Document](https://chidiwilliams.github.io/buzz/docs) ## Whisper tiny > Download url > https://openaipublic.azureedge.net/main/whisper/models/65147644a518d12f04e32d6f3b26facc3f8dd46e5390956a9424a650c0ce22b9/tiny.pt **CLI Command** ``` Shell buzz add -t transcribe -m whisper -s tiny -l zh --txt --hide-gui /path/to/audio.mp3 ``` launch.json configuration ``` JSON { "name": "Debug CLI test", "type": "python", "request": "launch", "module": "pytest", "args": [ "${workspaceFolder}/tests/cli_test.py::TestCLI::test_cli", "-s", // 显示测试中的打印输出 "-v" // 详细输出测试过程 ], "cwd": "${workspaceFolder}", "env":{ "PYTHONPATH": "${workspaceFolder}" }, "justMyCode": false, "console": "integratedTerminal" } ``` ## Faster Whisper Tiny > META DATE > https://huggingface.co/api/models/Systran/faster-whisper-tiny/revision/main > Download Url > ## Related Issues ### ERROR:root:whisper_cpp load error: No module named 'buzz.whisper_cpp' ``` Shell pip install pywhispercpp ``` ### LINK : fatal error LNK1181: cannot open input file 'avformat.lib' ``` Shell conda install av==11.0.0 -c conda-forge ``` # Python ## 基础路径判断 ``` Python APP_BASE_DIR = ( getattr(sys, "_MEIPASS", os.path.dirname(os.path.abspath(__file__))) if getattr(sys, "frozen", False) else os.path.dirname(__file__) ) ``` - `getattr(sys, "frozen", False)` 判断程序是否被打包,比如PyInstaller打包后, `sys.frozen` 会被设置为 `True` - 若已打包则用`sys._MEIPASS`, PyInstaller 打包后,程序运行时临时解压资源的目录)作为基础目录。 如果不存在则使用当前文件的绝对路径的父目录。