Prevent TTS Voice output
# support
d
Is it possible prevent a LLM output from being passed to TTS? One of our assistants uses a prompt that "needs time to think." https://platform.openai.com/docs/guides/prompt-engineering/strategy-give-models-time-to-think The assistant has simple intermediate steps that help it arrive at the correct solution. Without the simple intermediate steps, the assistant will not answer correctly. We do not want the output of these simple steps spoken to the user though. We only want the final solution spoken to the user. Can we prevent the output of the simple steps from being passed to TTS?
v
message has been deleted
@dudleykong Yes, absolutely! You can control which parts of the output are passed to the Text-to-Speech (TTS) system. To achieve this, you would typically structure your code to separate the intermediate processing steps from the final output. Only the final output, which you want the user to hear, should be sent to the TTS engine. Here's a general approach you can take: 1. **Intermediate Processing**: Run the LLM with the necessary prompts to perform the intermediate steps. Capture the output of these steps in variables within your code, but do not send this output to TTS. 2. **Final Solution**: Once you have the final solution from the LLM, you can then pass only this part of the output to the TTS system. This way, the user will only hear the final solution, and the intermediate steps will remain as part of the backend processing. If you need assistance with implementing this in your system or have any specific questions about the process, feel free to ask!
You can continue this conversation by mentioning me in the message.
d
@User That works. I was also hoping for a solution from the Vapi Create Assistant web UI, but sounds like that will not be possible.
s
Yes, just add voice input to your server message under the advanced section. You will receive it.
a
@Sahil could you please explain why Voice Input message would be useful?
s
Ah, sorry. I must have misread the question. The answer is no you cannot prevent TTS Voice Output.
j
@Sahil I second this question. is the voice-input server message showing voice inputs do not ultimately get spoken (maybe due to formatting or bc of an interruption)? Or what is the logic there? I'm also equally confused by the model-output server message
5 Views