lclichen / LiteLoaderQQNT-TTS

TTS plugin for LiteLoaderQQNT.
GNU General Public License v3.0
32 stars 0 forks source link

mac环境下node无法使用child_process调用/usr/local/bin/ffmpeg #8

Open zyzdai opened 7 months ago

zyzdai commented 7 months ago

An unknown error occurred. Details: Error: Command failed: ffmpeg -y -i "/Users/zyzdai/Library/Containers/com.tencent.qq/Data/Documents/LiteLoader/data/text_to_speech/tts.wav" -acodec pcm_s16le -f s16le -ac 1 -ar 24000 "/Users/zyzdai/Library/Containers/com.tencent.qq/Data/Documents/LiteLoader/data/text_to_speech/tts.wav.wav" -loglevel error /bin/sh: ffmpeg: command not found 插件代码在windows环境下可完美运行。

An unknown error occurred. Details: Error: Command failed: /usr/local/bin/ffmpeg -y -i "/Users/zyzdai/Library/Containers/com.tencent.qq/Data/Documents/LiteLoader/data/text_to_speech/tts.wav" -acodec pcm_s16le -f s16le -ac 1 -ar 24000 "/Users/zyzdai/Library/Containers/com.tencent.qq/Data/Documents/LiteLoader/data/text_to_speech/tts.wav.wav" -loglevel error /bin/sh: /usr/local/bin/ffmpeg: Operation not permitted

Codebglh commented 6 months ago

the same problem

Codebglh commented 6 months ago

4a5437e0601a8e08b4cc86b93c8021fb

molanp commented 6 months ago

考虑在新版本允许mac设备指定ffmpeg位置

lclichen commented 6 months ago

第一个报错应该可以通过环境变量相关的设置解决,第二个报错可能是权限问题?MacOS上可能会禁止应用执行外部命令,但是我目前没有Mac设备,因此无法进行相关测试。

LanYunDev commented 4 months ago

+1 https://github.com/xtaw/LiteLoaderQQNT-Audio-Sender/issues/21