System Prompts - ToAudioNumber/ToAudioCurrency Functions

Hi everyone,

I have some questions related to “System Prompts” with ToAudioNumber() and ToAudioCurrency() functions using Portuguese (Pt-br).

ToAudioCurrency()
For currency in “EUR”, does this function use “currency_euro”, “currency_euros”, “currency_eurocent” and “currency_eurocents” system prompts?
I’m asking this because I overwritten those voice prompts and when I tested it for currency that has centimes I heard other system prompts instead of “currency_eurocent” and “currency_eurocents”.
Additionally, “currency_euro” and “currency_euros” system prompts are being used correctly and in order to convert numbers to Currency it’s used MakeCurrency(X,"EUR").

ToAudioNumber() and ToAudioCurrency()
Do these functions use “num_million” and “num_millions”?
I’m asking this because for numbers which use the plural of “million” in Portuguese (“milhões”) these functions don’t use plural.
For instance, instead of saying “Dois milhões” (num_2 + num_millions) or “duzentos milhões” ((num_200 + num_millions) it's said “Dois milhÃO” (num_2 + num_million) and “duzentos milhÃO" (num_200 + num_million)

Can you tell me which are the rules to concatenate prompts to saying numbers in Portuguese?
For instance for ToAudioNumber(201) plays num_200 +conjuctive_and + num_1 which is correct, however for ToAudioNumber(271) this “rule” isn’t being applied as it plays num_200 + num_70 +conjuctive_and + num_1 instead of num_200 + conjuctive_and num_70 +conjuctive_and + num_1.

This post is related to: https://developer.mypurecloud.ie/forum/t/system-prompts-prompt-upload-toaudio-functions/2348/1

Sorry if this sounds confusing and thank you in advance.

Best regards,
Ana Laia

Additionally we noticed that for some numbers like "2018" the system prompt "conjunctive_and" is misplaced.
It should be "Dois mil E dezoito" (num_2 + num_thousand + conjunctive_and + num_18) and not "Dois E mil dezoito" (num_2 + conjunctive_and + num_thousand + num_18)

Forget this last comment, it's working correctly.

However, we have the same questions that we posted.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.