From Cheat Engine
Revision as of 16:35, 1 May 2018 by Dark Byte (talk | contribs) (mention speak command)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

function playSound(stream, waittilldone)

function playSound(tablefile, waittilldone)

Plays a sound file

Function Parameters[edit]

Parameter Type Description
stream Stream A Stream object, can be MemoryStream or FileStream
tablefile TableFile A TableFile object, a file added and stored in the cheat table
waittilldone Boolean If true, the next LUA instruction will not execute until the sound is done playing


Calling from LUA


Calling from an AA Script:

  dd 1

  dd 2

Creating Files[edit]

I am unsure of the formats supported, but using Audacity worked for me. I recorded my microphone and selected just the portion I wanted, then used "File->Export Selected Audio" to export it as 'WAV (Microsoft) signed 16-bit PCM'.

You can use a free online text-to-speech wav file generator at or use Lua:speak

See also[edit]

Related Functions[edit]

Related Classes[edit]