agents icon indicating copy to clipboard operation
agents copied to clipboard

STT from Deepgram: How to enable formatting in the runtime?

Open naman-scogo opened this issue 8 months ago • 2 comments

I am trying to register users' phone number and email ID using the voice assistant. However, when the user starts speaking their phone number(1234567890), the stt service returns one two three four 5:06 seven eight nine zero. Which then gets rejected by the LLM if we have a 10-digit validation for phone number in place. Now there are methods available to ask the Deepgram STT service to format the speech as per our requirement on the run time. So, right before the user is prompted to give the phone number we can trigger it on the run time, refer here. Although, I am not able to figure out how to send this event to the initialized STT service. Would be helpful if someone can provide a way or solution for it.

naman-scogo avatar Jun 16 '24 05:06 naman-scogo