In our Text to Speech service, credit usage is calculated based on the phonemes and punctuation marks:
Phoneme Count | Credit Consumption |
---|---|
1 phoneme | 1 credit |
1 credit equals 1 phoneme synthesized.
Info
Each punctuation mark (comma, period, etc.) within or at the end of a sentence consumes 1 credit.
Example 1: "Hello, my name is Jessica."
Word/Punctuation | Credits | Explanation |
---|---|---|
Hello | 5 | 5 phonemes |
, | 1 | 1 punctuation mark |
my | 2 | 2 phonemes |
name | 4 | 4 phonemes |
is | 2 | 2 phonemes |
Jessica | 7 | 7 phonemes |
. | 1 | 1 punctuation mark |
Total | 22 |
Example 2: "Hello, my name is Jessica"
Word/Punctuation | Credits | Explanation |
---|---|---|
Hello | 5 | 5 phonemes |
, | 1 | 1 punctuation mark |
my | 2 | 2 phonemes |
name | 4 | 4 phonemes |
is | 2 | 2 phonemes |
Jessica | 7 | 7 phonemes |
Total | 21 |
In the second example, since the sentence does not end with a period, the system adds one for a smooth ending, but this added period does not consume a credit.
By understanding these rules, you can better estimate the credits your text-to-speech tasks will consume.