local lang = jarvis.context.language local raw = jarvis.system.clipboard.get() or "" local text = raw:gsub("^%s+", ""):gsub("%s+$", "") if text == "" then jarvis.system.notify( lang == "ru" and "Буфер" or "Clipboard", lang == "ru" and "Пусто" or "Empty" ) jarvis.audio.play_not_found() return { chain = false } end local preview_chars = 400 local to_speak = text if #to_speak > preview_chars then to_speak = to_speak:sub(1, preview_chars) .. (lang == "ru" and " ... и так далее" or " ... and so on") end jarvis.system.notify( lang == "ru" and "Буфер" or "Clipboard", text:sub(1, 120) ) jarvis.speak(to_speak, { lang = lang }) jarvis.audio.play_ok() return { chain = false }