Skip to content

Commit

Permalink
Changed caching to default behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
iory committed Jul 12, 2021
1 parent b90a8b5 commit 8dc33fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions 3rdparty/google_cloud_texttospeech/bin/text2wave
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ else:
VoiceSelectionParams = google.cloud.texttospeech.types.VoiceSelectionParams

cache_enabled = os.environ.get(
'GOOGLE_CLOUD_TEXTTOSPEECH_CACHE_ENABLED', False)
cache_enabled = cache_enabled or cache_enabled == 'true'
'GOOGLE_CLOUD_TEXTTOSPEECH_CACHE_ENABLED', True)
cache_enabled = cache_enabled is True \
or cache_enabled == 'true' # for launch env tag.


def get_cache_dir():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
doc="English speaking speed (default: 100)" />
<arg name="japanese_speed" default="100"
doc="Japanese speaking speed (default: 100)" />
<arg name="cache" default="false"
doc="Cache generated sound file (default: false)" />
<arg name="cache" default="true"
doc="Cache generated sound file (default: true)" />

<node name="sound_play" if="$(arg use_english)"
pkg="sound_play" type="soundplay_node.py"
Expand Down

0 comments on commit 8dc33fe

Please sign in to comment.