Legacy Dev Forum Posts

 View Only

Sign Up

System Prompts - ToAudioNumber/ToAudioCurrency Functions

  • 1.  System Prompts - ToAudioNumber/ToAudioCurrency Functions

    Posted 06-05-2025 19:09

    Ana_Laia | 2018-04-27 16:01:15 UTC | #1

    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 “currencyeuro”, “currencyeuros”, “currencyeurocent” and “currencyeurocents” 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 “currencyeurocent” and “currencyeurocents”. Additionally, “currencyeuro” and “currencyeuros” 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 “nummillion” and “nummillions”? 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” (num2 + nummillions) or “duzentos milhões” ((num200 + nummillions) it's said “Dois milhÃO” (num2 + nummillion) and “duzentos milhÃO" (num200 + nummillion)

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

    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


    Ana_Laia | 2018-05-04 12:54:20 UTC | #2

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


    Ana_Laia | 2018-05-04 12:55:39 UTC | #3

    Forget this last comment, it's working correctly.

    However, we have the same questions that we posted.


    system | 2018-06-04 12:55:43 UTC | #4

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


    This post was migrated from the old Developer Forum.

    ref: 2800