SayAudioFile

class SayAudioFile(path: str, microphone_device: int | str | None = None, blocking: bool = True, **settings)[source]

Bases: BaseInstruction

Play voice audio loaded from a file.

property id: int

Return the unique instruction identifier.

Returns:

Instruction identifier.

Return type:

int

perform(*args, **kwargs)[source]

Execute the instruction.

Parameters:
  • args – Positional arguments required during execution.

  • kwargs – Keyword arguments required during execution.