Text Formatting¶
Recognition results are normally output in text form, with the numbers written out. Using the text formatting feature, users can configure the ASR to return a text with a more natural formatting for values such as numbers, numerical codes, monetary values, date, time and percentage. For example:
custa doze reais e cinquenta centavos -> custa R$ 12,50
noventa e cinco pessoas -> 95 pessoas
quase doze por cento -> quase 12%
quero dez maçãs por três reais cada -> quero 10 maçãs por R$ 3 cada
To use the new feature, simply enable it using the textify.enabled parameter. This can be done globally and statically in the ASR configuration file or sending the ‘textify.enabled = true’ parameter in the API.