Feature Request: Jinja2 post processing of Voice Assistant Response

Feature Request: Voice Assistants using LLMs often respond with markdown formatting of headlines, unordered bullet lists, etc. This is extremely problematic for smaller LLMs that have limited ability to follow formatting instructions like Gemma3n:e2b. The “Asterisk Asterisk” markdown formatting is killing the flow of Piper TTS. It would be nice to use Jinja2 to remove these characters directly in the voice assistant pipelines.

llm_response | replace (“**”,“”)

1 Like

Update piper, in the latest versions the removal of * and # has been added

2 Likes

Thanks for the recommendation. I run Piper in a docker container. How did you configure this? Looking for documentation changes so I can implement.

1 Like

Add this parameter for 1.6.x, that’s enough