在 Apple Silicon Mac 上运行 TTS 时出现 MPS 设备限制错误
作者: kiwamizamurai创建于 2025年1月13日更新于 2026年2月26日
问题描述
当在使用 MPS (Metal Performance Shaders) 设备的 Apple Silicon Mac 上运行 TTS 时,会出现以下错误:
Error: Output channels > 65536 not supported at the MPS device. As a temporary fix, you can set the environment variable `PYTORCH_ENABLE_MPS_FALLBACK=1` to use the CPU as a fallback for this op. WARNING: this will be slower than running natively on MPS.此错误发生在调用 tts_to_file() 方法时的语音合成过程中。
内容来源: myshell-ai/MeloTTS