Android Question Voice Recognition returns formatted text

Rusty

Well-Known Member
Licensed User
Longtime User
I am trying to use voice recognition for things like social security number (###-##-####), phone number (###-###-####), dollars and cents (###,###,###.##)...etc.
When I use VR to speak the numbers, the result comes back with formatting for phone number.
i.e. I speak 1...2...3...4...5...6...7...8...9 and would like 123456789 returned but instead, I get 123-456-789
Is there a way to either:
specify the formatting to VR
or (preferred)
return un-formatted text from VR?
Thanks,
Rusty
 

wonder

Expert
Licensed User
Longtime User
Maybe this can help:
B4X:
Return vrOutputStr.Replace("-","")
 
Upvote 0

Rusty

Well-Known Member
Licensed User
Longtime User
Thanks Wonder,
That's what i've been doing to get past this, but thought if there is a way to eliminate the "formatting", i'd prefer it.
Regards,
Rusty
 
Upvote 0
Top