Y
Y
ya_yshel_rabotati_v_teleg2019-07-16 11:52:18
MySQL
ya_yshel_rabotati_v_teleg, 2019-07-16 11:52:18

How to translate a number into a voice?

There is a format table:
5d2d8ee82196e482441313.png
The task in mysql is to make a procedure that from the number for example:
15000 would draw 15_num * 1000_num as a result, when played back, they would receive "Fifteen thousand"
1233 and from "1000_num * 200_num * 30_num * 3_num" ......
Not I can think of logic... any ideas ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2019-07-16
@xpert13

15_num* 1000_num will not be "Fifteen thousand", but will be "Fifteen One thousand" or "Fifteen thousand". You need different sound files under "thousand" and "thousands". Yes, and the logic of translating numbers into head reproduction should be implemented using programming languages, and not a selection from the database.

S
Stalker_RED, 2019-07-16
@Stalker_RED

Pick up a TTS-engine (they are free, online and offline, even one has been built into Windows for 20 years already) and generate sound through it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question