diff --git a/awesometts/router.py b/awesometts/router.py index d2950a7..604ce3c 100644 --- a/awesometts/router.py +++ b/awesometts/router.py @@ -464,7 +464,7 @@ def substitute(match): if lower == 'text': return text if lower == 'voice': - return options['voice'].lower() + return options['voice'].lower() if isinstance(options['voice'], str) else 'unknown' try: return note[key] # exact field match