o
    CZŽh  ã                   @   s2   d dl mZ ddlZe ¡ Zd	dd„Zdd„ ZdS )
é   )ÚEngineé    NFc                 C   s6   zt |  }W |S  ty   t| |ƒ}|t | < Y |S w )aƒ  
    Constructs a new TTS engine instance or reuses the existing instance for
    the driver name.

    @param driverName: Name of the platform specific driver to use. If
        None, selects the default driver for the operating system.
    @type: str
    @param debug: Debugging output enabled or not
    @type debug: bool
    @return: Engine instance
    @rtype: L{engine.Engine}
    )Ú_activeEnginesÚKeyErrorr   )Z
driverNameÚdebugZeng© r   ú?/var/www/auris/lib/python3.10/site-packages/pyttsx3/__init__.pyÚinit   s   
ý

ýr	   c                 C   s   t ƒ }| | ¡ | ¡  d S )N)r	   ZsayZ
runAndWait)ÚtextÚenginer   r   r   Úspeak   s   
r   )NF)r   r   ÚweakrefÚWeakValueDictionaryr   r	   r   r   r   r   r   Ú<module>   s
    
