Voice Input component "number"

PC974

Premier Customer
Basic Certified
Joined
Sep 22, 2024
Messages
18
Reaction score
8
Hello everyone,

I'm trying to work with the voice input component using Google STT/TTS.

I attempted to recognize the user's voice input for a postal code, but I'm facing some issues.

I'm using $POSTALCODE as a hint, without a dictionary value, but Google returns results like "85 500" or "8 5 500", depending on the input.

I need the format to be "85500" so I can compare it with another variable in my script.

Is this possible natively, or do I need to develop a custom C# script? Or perhaps I misconfigured the Voice Input component?
1743691209969.png

Best regards
 
Just add a C# script after the Voice Input, to remove the spaces:
return text.Replace(" ","");
 
or maybe in a CFD expression editor:
REPLACE("8 5 500"," ","")
 
Thanks ! the Replace Expression works fine :)
 

Members Online Now

Forum statistics

Threads
111,832
Messages
589,285
Members
164,662
Latest member
DejanMDS