ros-drivers / audio_common

Common code for working with audio in ROS
BSD 3-Clause "New" or "Revised" License
86 stars 152 forks source link

FlitePlugin: Lazy loading default voice path #229

Closed furushchev closed 1 year ago

furushchev commented 1 year ago

Fixes https://github.com/ros-drivers/audio_common/issues/228

This PR is for reducing the time to import the python module by deferring the usage of the rospkg.Rospack.get_path to when it is needed for the first time.

It also fixes invalid code which refers to a member variable which does not exist. (self._default_voice)