Yandex SpeechKit: Say Order Numbers, Dates, and Amounts

Vladimir Lomtev•
Yandex SpeechKit: Say Order Numbers, Dates, and Amounts

Prepare a separate utterance text for Yandex SpeechKit from the order fields. Pass the number 004207 as “zero zero four two zero seven,” expand the date with the month, and speak the amount together with the currency unit. Then add stress marks or pauses in the format supported by your API version. This lets you check the digits and the meaning before synthesis, and in a test call you can find out whether they are distinguishable by ear.

This material was prepared by Vladimir Lomtev’s AI studio. The documentation was reviewed on November 19, 2026. The guide is intended for a team that already has access to speech synthesis in Yandex SpeechKit and a test environment for a voice bot. The end-to-end example is a delivery message with cash on delivery. All data in the examples is fictional.

1. Choose markup based on the API version

TTS (text-to-speech) is speech synthesis from text. Yandex SpeechKit offers two prompt formats for synthesis. In TTS markup, stress and pauses are defined with special symbols inside the text. SSML (Speech Synthesis Markup Language) is XML markup with tags for pauses and pronunciation. TTS markup overview and syntax · SSML documentation

What the bot already uses Where to send the utterance How to define pronunciation
SpeechKit API v1, text The text field TTS markup, for example couri+er
SpeechKit API v1, SSML The ssml field The root tag <speak>, with supported tags inside
SpeechKit API v3, gRPC UtteranceSynthesis with text The text request field TTS markup for a Russian utterance

Check in the integration settings or in the test environment request which version and field the bot uses. In API v1, pass the utterance in one of two fields, text or ssml. For the API v3 example below, the text mode of the UtteranceSynthesis method is used. If you use a third-party telephony platform, check whether it passes markup to SpeechKit and which parameters are available in its interface. SpeechKit API v1 method · gRPC UtteranceSynthesis v3 method

2. Prepare spoken values for the order fields

Take from the order system the number, delivery date in the agreed time zone, payment method, and amount with currency. For the date, first obtain the calendar day in the delivery time zone if the source stores time as a UTC timestamp. Keep the order number as a string from the export through to the utterance template. If you convert 004207 to a number, the original two leading zeros will disappear.

Field in the system Training value Rule for this utterance What the customer should hear
Order number "004207" Say each digit as its own word Zero zero four two zero seven
Delivery date 2026-11-21 Say the day and month, and add the year if the date would be ambiguous without it November twenty-first
Amount due 1250.50 RUB Process rubles and kopeks separately and agree on the forms One thousand two hundred fifty rubles fifty kopeks
Payment method Cash on delivery State the confirmed method Payable on delivery…

When assembling the phrase, use the form that fits the template. In “The courier will arrive on November twenty-first,” you need the genitive case. For the amount, use the agreed pair of numeral and currency unit. For example, “one ruble,” “two rubles,” or “five rubles.” If the amount is needed inside a phrase like “for a total of…,” check the case of the numeral and the unit in the full sentence.

In the example, the business logic states the amount only for confirmed cash on delivery. For prepaid orders, use a separate utterance, “The order has already been paid for,” if that status is confirmed. For an unknown amount, provide a transition to clarification in your flow. An empty field by itself does not tell you anything about the payment amount.

3. Build the utterance for SpeechKit

For the text field, put a plus sign before the stressed vowel in the word “courier.” The tag sil<[400]> sets a pause between the two sentences in the example. Pauses at the beginning and end of a sentence are ignored, so check them within the full utterance. Stress and Pauses in TTS Markup

Order number zero zero four two zero seven. sil<[400]> The c+ourier will arrive on November twenty-first. Upon receipt, the amount due is one thousand two hundred fifty rubles and fifty kopeks.

For the field ssml in API v1, you can keep digits in the content of <sub> and specify how they should be read in the alias attribute. The date and amount here have already been expanded into words when the text was assembled. In the list of supported Yandex SpeechKit tags, there are <sub> and <break>. For character-by-character reading of this number, it is enough to prepare the string for alias. SSML Tags in SpeechKit

<speak>
  Order number <sub alias="zero zero four two zero seven">004207</sub><break time="400ms"/>
  The courier will arrive on November twenty-first.
  Upon receipt, the amount due is one thousand two hundred fifty rubles and fifty kopeks.
</speak>

When auto-inserting, generate SSML as XML. The serializer escapes special characters in text and attributes. When submitting the API v1 form, use URL encoding for the entire field value: if you insert c+ourier into the form without encoding, the decoder may read the plus sign as a space. For API v3 gRPC, pass the TTS markup as a string in the corresponding request field. API v1 form parameters · API v3 request fields

For the sample strings in this article, XML parsing and the reversibility of API v1 form encoding were checked locally. After decoding the text field, the plus sign in c+ourier was preserved. The XML parser read the number 004207, its spoken replacement, and the pause attribute 400ms. Cloud synthesis and a test call remain steps for your team.

4. Synthesize and listen to a test call

Send the line through your existing test integration. First listen to the audio returned by the API, then the same line through a test number or another channel the customer will use. Specify the actual voice and speaking rate in the test. For API v1, a successful response contains binary audio in the selected format. API v1 response

Ask a colleague who has not seen the input data to write down the number, date, and amount they heard. Compare the note with the order system and separately mark the point where a replay was needed. Words can sound natural even if the listener missed one of the two zeros.

Sample check Pass criterion
Number with leading zeros The listener wrote down 004207 on the first listen
Date near the end of the month The listener wrote down the correct day and month for the delivery time zone
Payment with kopeks The listener wrote down 1250,50 ₽, and the meaning of “due on delivery” was preserved
Prepayment or missing amount The intended scenario branch was spoken without an unconfirmed amount

These are suggested checks for one line. Start with fictional orders. If real calls are needed later, use the data and working channels your team has approved for that test.

5. Find the stage where the error occurred

Check the order fields, the pre-send string, the audio from SpeechKit, and the recording of the test call in sequence. That way you can return to the point where the error appeared and fix the specific rule.

  • The zeros disappeared in the string before synthesis. Check the number type in the export and the template. Insert the words from the source string.
  • The day shifted by one day. Compare the source time and delivery time zone before forming the calendar date. Repeat the check on an example near midnight.
  • The stress changed after the form was submitted. Look at what happens to the + sign after URL encoding. If the field was submitted correctly, listen to the full phrase with the selected voice.
  • The robot is reading the tags or not playing the pause. Check the API version, the field, and the syntax. If the field and format are correct, verify the pause placement and the result in the full phrase. The documentation describes markup as a hint for synthesis. TTS markup · SSML
  • The audio file is clear, but the digits run together in the call. Repeat the check with the working telephony setup. Try changing the speaking rate or breaking the number into groups while keeping the original digit order, then ask a colleague to write down what they heard again.

If you are just building a call system, the integration of synthesis, telephony, and order data is described in a separate article. Voice AI architecture for a call center

How to configure a line during delivery

Vladimir Lomtev’s AI Studio can help determine which fields your order system passes into the voice channel, connect the data source to the bot scenario, and test synthesized lines in trial calls. For the first discussion, one current line, a de-identified field example, and a recording that shows where the meaning is lost are enough.

Discuss the project

What to hand off to the team after setup

Save the line template, the rules for reading the number, date, and amount, the API version, and the voice settings. Add sample orders with expected values and listening results. If a colleague reconstructed 004207, the correct date, and the amount through the same channel the customer uses, the team has a verified example for retesting after changing the template, voice, or telephony.

Request an audit

Share your contact details and we will follow up.

← All articles

Comments (0)

Loading comments…

Leave a comment
No registration required

Book a strategy call
for agentic operations

Tell us which workflow you want to improve. We will map feasibility, risks, and the fastest MVP path.

By submitting, you agree to our privacy policy

Contacts

Global Operations

Serving U.S. clients remotely
with private cloud and on-prem options

Strategy calls by request

We respond after reviewing your workflow context.

info@agentsunrise.pro

For partnership inquiries

Have a proposal?

Write to us in messengers

© 2026 AgentSunrise