Utilities
1 year, 20 days ago
1.0 - 1.1
1.66K

g Make Speaker Talk

1 year, 19 days ago

I don't know if it's possible from LUA to make a routine that can speak a text. Like Cortana. I have a voice.exe that speaks that you send to it, i think it's possible to do.

1 year, 19 days ago

A call to an exe is afaik not possible from LUA (that would be a security nightmare). If someone would try to do something like this it would be an addition to the speaker itself, not the list of alarms I am providing.

1 year, 19 days ago

Or inside LUA, not exe : -- Define the NPC class
local NPC = {}

-- Constructor function to create a new NPC object
function NPC:new(name)
-- Create a new instance of the NPC class
local npc = {
name = name,
knowledge = {}
}

-- Define the speak method
function npc:speak(message)
    print(self.name .. " says: " .. message)
end

-- Define the learn method
function npc:learn(topic, information)
    self.knowledge[topic] = information
end

-- Return the created NPC object
return npc

end

-- Create a new NPC object
local npc = NPC:new("NPC")

-- Example usage
npc:speak("Hello, I am an NPC!")
npc:learn("Lua programming", "Lua is a powerful scripting language.")

-- Access the learned information
print(npc.knowledge["Lua programming"])

1 year, 19 days ago

You are very welcome to add this functionality to a new speaker mod.

New response