1

I am developing an android app in which user can search any text from a document using Speech to text functionality. I have implemented Android's Sppech recogniser class. If user speak swear or bad word it will return result in masked form e.g. "f***", which I can use for search. I want the word spoken by user not the masked version.

current case : user speak - "fuck" text received - "f***"

required : user speak - "fuck" text received - "fuck"

I have seen Gboard has setting option to "allow offensive word" while using whatsapp, setting it to true allows such words.

Searched for the solution but can found it. Any solution for this problem?

nikhil bansal
  • 449
  • 5
  • 15

0 Answers0