更新speakerlib的路径

This commit is contained in:
HKXluo
2025-11-12 15:43:29 +08:00
parent 62b95e38b0
commit 91f9048755
2 changed files with 129 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ _G.Playprint = false -- 信息输出开关true开false关
_G.setVolume = 1 -- 音量控制0-3
local API_URL = "http://newgmapi.liulikeji.cn/api/ffmpeg"
local mypath = "/"..fs.getDir(shell.getRunningProgram())
-- 扬声器配置
local speakerlist = {
@@ -27,7 +28,7 @@ local function printlog(...)
end
local function loadSpeakerConfig()
local speaker_groups = fs.open("speaker_groups.cfg","r")
local speaker_groups = fs.open(mypath.."/speaker_groups.cfg","r")
if speaker_groups then
local content = speaker_groups.readAll()
speaker_groups.close()